@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-color: #0a0a0f;
  --card-bg: #12121a;
  --accent-primary: #00ff88;
  --accent-secondary: #00b4d8;
  --text-main: #e8e8e8;
  --text-muted: #8a8a9a;
  --border-color: #22222d;
  --danger: #ff3366;
  --warning: #ffcc00;
  --success: #00ff88;
  
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background animated grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo svg {
  color: var(--accent-primary);
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  background-color: #00e078;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 255, 136, 0.2);
}

.card:hover::before {
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  transition: var(--transition);
}

.card:hover .card-icon {
  color: var(--accent-primary);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Forms & Inputs */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 15px rgba(0, 255, 136, 0.1);
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger), 0 0 15px rgba(255, 51, 102, 0.1);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 4rem 0;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb span {
  color: var(--border-color);
}

/* Page Headers */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Tool Specific Layouts */
.tool-container {
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

/* SEO Articles */
.seo-article {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 4rem;
}

.seo-article h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-secondary);
}

.seo-article h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem 0;
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.seo-article ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: block;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Grids */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Tablet & Mobile Typography and Spacing */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem !important; }
  .page-title { font-size: 2.2rem; }
  .tools-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem !important; margin-bottom: 1rem !important; }
  .hero-subtitle { font-size: 1.1rem !important; margin-bottom: 2rem !important; }
  .container { padding: 0 1.5rem; }
  
  .page-title { font-size: 1.8rem; }
  .page-subtitle { font-size: 1rem; }
  
  .tools-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  
  .card { padding: 1.5rem; }
  
  /* Make inline styled hero container padding smaller */
  .hero > .container { padding: 3rem 0 4rem 0 !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  
  .features-grid { grid-template-columns: 1fr; }
  .nav-content { padding: 0.5rem 0; }
  
  .card-icon { width: 28px; height: 28px; }
  .card-title { font-size: 1.1rem; }
}

/* Loaders */
.skeleton-loader {
  display: none;
  width: 100%;
  margin-top: 2rem;
}
.skeleton-loader.active {
  display: block;
}
.skeleton-line {
  height: 20px;
  background: linear-gradient(90deg, #12121a 25%, #1a1a24 50%, #12121a 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.skeleton-line:nth-child(1) { width: 40%; height: 24px; }
.skeleton-line:nth-child(2) { width: 100%; }
.skeleton-line:nth-child(3) { width: 80%; }
@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Utilities */
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-mono { font-family: var(--font-mono); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* FAQ Accordion Styles */
.faq-accordion {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover {
  background: rgba(0, 255, 136, 0.05);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem 1.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}
