﻿/* CSS Variables - Light Theme Only */
:root {
  /* Typography Scale - Modular scale 1.25 */
  --text-xs: 0.75rem;    /* 12px - captions */
  --text-sm: 0.875rem;   /* 14px - small text */
  --text-base: 1rem;     /* 16px - body */
  --text-lg: 1.125rem;   /* 18px - large body */
  --text-xl: 1.25rem;    /* 20px - small headings */
  --text-2xl: 1.5rem;    /* 24px - subheadings */
  --text-3xl: 1.875rem;  /* 30px - h3 */
  --text-4xl: 2.25rem;    /* 36px - h2 */
  --text-5xl: 3rem;      /* 48px - h1 */
  --text-6xl: 3.75rem;   /* 60px - display */

  /* Fluid type scale */
  --text-display: clamp(2.5rem, 5vw, 4.5rem);
  --text-heading: clamp(2rem, 4vw, 3.5rem);
  --text-subheading: clamp(1.5rem, 3vw, 2.5rem);

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.75;

  /* Letter spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Font weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Max widths for readability */
  --measure-compact: 45ch;
  --measure-normal: 65ch;
  --measure-wide: 75ch;

  /* Font families */
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Libre Caslon Text', serif;

  --bg-main: #F9F8F5;
  --bg-card: #FFFFFF;
  --text-main: #0F0E0A;
  --text-muted: #6B6A62;
  --text-subtle: #A0998A;
  --border-light: #E8E4DA;
  --border-subtle: #EEEAE2;
  --accent: #e8a00a;
  --accent-bg: #FEF7E0;
  --accent-border: #F0C830;
  --accent-text: #8A6200;

  --hero-badge-bg: #FEF7E0;
  --hero-badge-border: #F0C830;
  --hero-badge-text: #8A6200;

  --stats-bg: #FDFCF8;
  --stats-border: #F0EDE5;
  --stats-divider: #E0D8C8;

  --left-zone-bg: #FDFAF4;
  --right-zone-bg: #FFFFFF;
  --zone-border: #EEEAE2;
  --left-zone-border: #EDE4CE;

  --line-bar1: #E8E4DA;
  --line-bar2: #F0EDE5;
  --h2-bar: #EDE4CE;

  --checklist-bg: #F9F8F5;
  --checklist-border: #EEEAE2;

  --ranking-bg: #F9F8F5;
  --ranking-border: #EEEAE2;

  --bottom-bg: #FDFCF8;
  --bottom-border: #EEEAE2;
  --kw-chip-bg: #EDE4CE;
  --kw-chip-text: #6B5020;
  --serp-badge-bg: #EBF5EE;
  --serp-badge-text: #156030;

  --platform-bg: #FFFFFF;
  --platform-border: #E0D8C8;
  --platform-text: #6B5020;

  --nav-bg: rgba(249,248,245,0.80);
  --nav-border: transparent;
  --nav-scrolled-bg: rgba(249,248,245,0.95);
  --nav-scrolled-border: #E8E4DA;

  --link-color: #4A4A42;
  --link-hover-color: #0F0E0A;
  --link-hover-bg: #F0EDE5;

  --cta-bg: #0F0E0A;
  --cta-color: #FFFFFF;
  --cta-hover-bg: #e8a00a;
  --cta-hover-color: #FFFFFF;

  --section-label: #A0998A;

  /* Animation Timing */
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 500ms;

  /* Easing Curves */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: clip;
}

html, body {
  overflow-x: clip;
}

/* Typography - Base */
body {
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-regular);
  margin: 0;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

/* Typography - Body paragraphs */
p {
  margin: 0;
  line-height: var(--leading-relaxed);
}

/* Typography - Labels and caps */
.label,
.label-uppercase {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* Section labels */
.section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-subtle);
  text-align: center;
  display: block;
  width: 100%;
  max-width: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}


.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:flex { display: flex !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:items-center { align-items: center !important; }
  .lg\:hidden { display: none !important; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:p-6 { padding: 24px; }
  .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
  .lg\:mx-6 { margin-left: 24px; margin-right: 24px; }
  .lg\:mb-6 { margin-bottom: 24px; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Spacing */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-7 { margin-bottom: 28px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-14 { margin-bottom: 56px; }
.mb-16 { margin-bottom: 64px; }

.mt-2 { margin-top: 8px; }
.mt-6 { margin-bottom: 24px; }
.mt-8 { margin-top: 32px; }

.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-7 { padding: 28px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.pt-28 { padding-top: 112px; }
.pb-20 { padding-bottom: 80px; }

/* Header / Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--duration-slow) var(--ease-out-quart),
              border-color var(--duration-slow) var(--ease-out-quart),
              box-shadow var(--duration-slow) var(--ease-out-quart),
              transform var(--duration-normal) var(--ease-out-quart);
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  border-bottom: 1px solid var(--nav-scrolled-border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.nav-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link-color);
  transition: all 0.15s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--link-hover-color);
  background: var(--link-hover-bg);
  transform: translateY(-1px);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav-cta {
    display: flex;
  }
}

.nav-login {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link-color);
  transition: color 0.15s;
}

.nav-login:hover {
  color: var(--link-hover-color);
}

.nav-get-started {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--cta-bg);
  color: var(--cta-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background var(--duration-normal) var(--ease-out-quart),
              color var(--duration-normal) var(--ease-out-quart),
              box-shadow var(--duration-normal) var(--ease-out-quart),
              transform var(--duration-fast) var(--ease-out-quart);
}

.nav-get-started:hover {
  background: var(--cta-hover-bg);
  color: var(--cta-hover-color);
  box-shadow: 0 2px 14px rgba(232,160,10,0.28);
  transform: translateY(-1px);
}

.nav-get-started:active {
  transform: translateY(0) scale(0.98);
}

.mobile-toggle {
  display: flex;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--link-color);
  transition: background 0.15s;
}

.mobile-toggle:hover {
  background: var(--link-hover-bg);
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--link-color);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.mobile-login {
  padding: 8px 0;
  text-align: center;
  font-weight: 500;
  color: var(--link-color);
}

.mobile-get-started {
  padding: 10px 0;
  text-align: center;
  font-weight: 600;
  background: var(--cta-bg);
  color: var(--cta-color);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.mobile-get-started:hover {
  background: var(--cta-hover-bg);
  color: var(--cta-hover-color);
}

/* Footer */
.footer {
  background: #1a1a1a;
  padding: 24px;
}

/* Logo Row */
.footer-logo-row {
  margin-bottom: 20px;
}

.footer-logo-row .footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-row .footer-logo img {
  height: 20px;
  width: auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand {
  flex: 1.2;
  min-width: 280px;
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 20px;
  width: auto;
}

.footer-desc {
  font-size: 12px;
  font-weight: 400;
  color: #8A8A80;
  line-height: 1.4;
  max-width: 380px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: #9A9A90;
}

.social-link:hover {
  background: rgba(255,255,255,0.14);
}

.footer-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #5A5A52;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-inline {
  flex-direction: row;
  gap: 16px;
}

.footer-links-inline .footer-link {
  white-space: nowrap;
  font-size: 11px;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: #8A8A80;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #FFFFFF;
}

/* Navigation Links */
.footer-nav-row {
  margin-left: 0;
  align-items: left;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #8A8A80;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 400;
  color: #5A5A52;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 400;
  color: #8A8A80;
}

.footer-copyright p {
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-lang-switcher {
  position: relative;
}

.footer-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #8A8A80;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.footer-lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.footer-lang-icon {
  flex-shrink: 0;
}

.footer-lang-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #2A2A28;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
  min-width: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 100;
}

.footer-lang-switcher:hover .footer-lang-dropdown,
.footer-lang-switcher:focus-within .footer-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-lang-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #8A8A80;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.footer-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.footer-lang-option.active {
  color: #e8a00a;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
}

.footer-status-text {
  font-size: 12px;
  font-weight: 500;
  color: #5A5A52;
}

.footer-bottom-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Language Switcher */
.language-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

.lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 180px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
  z-index: 100;
  display: none;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown-header {
  padding: 8px 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 13px;
}

.lang-option:hover {
  background: rgba(255,255,255,0.06);
}

.lang-option.selected {
  background: rgba(232,160,10,0.1);
}

.lang-option-text {
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.lang-option.selected .lang-option-text {
  color: var(--accent);
  font-weight: 600;
}

.lang-option-check {
  color: var(--accent);
}

/* ============================================
   Accessibility - Reduced Motion
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
