/* ============================================================
   TRILLHA v3 — Landing Page Premium Styles
   Brand Book v2.0 — Design Tokens + Components
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --brand-primary: #22C55E;
  --brand-primary-light: #4ade80;
  --brand-primary-dark: #16a34a;
  --brand-primary-rgb: 34, 197, 94;
  --brand-primary-50: #f0fdf4;
  --brand-primary-100: #dcfce7;

  --brand-secondary: #0F172A;
  --brand-secondary-light: #1e293b;
  --brand-secondary-medium: #334155;
  --brand-secondary-rgb: 15, 23, 42;

  --brand-white: #FFFFFF;
  --brand-gray-50: #f8fafc;
  --brand-gray-100: #f1f5f9;
  --brand-gray-200: #e2e8f0;
  --brand-gray-300: #cbd5e1;
  --brand-gray-400: #94a3b8;
  --brand-gray-500: #64748b;
  --brand-gray-600: #475569;
  --brand-gray-700: #334155;
  --brand-gray-800: #1e293b;
  --brand-gray-900: #0f172a;

  --brand-text: #1e293b;
  --brand-text-muted: #64748b;
  --brand-bg: #ffffff;
  --brand-bg-alt: #f8fafc;
  --brand-bg-card: #ffffff;
  --brand-border: #e2e8f0;

  --brand-success: #22c55e;
  --brand-warning: #f59e0b;
  --brand-error: #ef4444;
  --brand-info: #3b82f6;

  --brand-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --brand-shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --brand-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --brand-shadow-xl: 0 20px 50px rgba(0,0,0,0.12);

  --brand-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --brand-text-xs: 0.75rem;
  --brand-text-sm: 0.875rem;
  --brand-text-base: 1rem;
  --brand-text-md: 1.125rem;
  --brand-text-lg: 1.25rem;
  --brand-text-xl: 1.5rem;
  --brand-text-2xl: 1.875rem;
  --brand-text-3xl: 2.25rem;
  --brand-text-4xl: 3rem;
  --brand-text-5xl: 3.5rem;

  --brand-space-1: 0.25rem;
  --brand-space-2: 0.5rem;
  --brand-space-3: 0.75rem;
  --brand-space-4: 1rem;
  --brand-space-5: 1.25rem;
  --brand-space-6: 1.5rem;
  --brand-space-8: 2rem;
  --brand-space-10: 2.5rem;
  --brand-space-12: 3rem;
  --brand-space-16: 4rem;
  --brand-space-20: 5rem;
  --brand-space-24: 6rem;

  --brand-radius-sm: 6px;
  --brand-radius: 10px;
  --brand-radius-md: 14px;
  --brand-radius-lg: 20px;
  --brand-radius-xl: 28px;
  --brand-radius-full: 9999px;

  --brand-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --brand-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --brand-max-width: 1200px;
  --brand-header-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--brand-header-height);
}

body {
  font-family: var(--brand-font);
  color: var(--brand-text);
  background: var(--brand-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--brand-max-width);
  margin: 0 auto;
  padding: 0 var(--brand-space-6);
}

/* --- Section --- */
.section {
  padding: var(--brand-space-24) 0;
}

.section-alt {
  background: var(--brand-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--brand-space-12);
}

.section-tag {
  display: inline-block;
  font-size: var(--brand-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  background: var(--brand-primary-50);
  padding: var(--brand-space-2) var(--brand-space-4);
  border-radius: var(--brand-radius-full);
  margin-bottom: var(--brand-space-4);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--brand-header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all var(--brand-transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--brand-border);
  box-shadow: var(--brand-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--brand-max-width);
  margin: 0 auto;
  padding: 0 var(--brand-space-6);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 38px;
  width: 140px;
}

.main-nav {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--brand-space-8);
}

.nav-links a {
  font-size: var(--brand-text-sm);
  font-weight: 500;
  color: var(--brand-text-muted);
  transition: color var(--brand-transition);
}

.nav-links a:hover {
  color: var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--brand-space-4);
}

.nav-login-btn {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-space-2);
  font-family: var(--brand-font);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--brand-radius);
  cursor: pointer;
  transition: all var(--brand-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: var(--brand-space-2) var(--brand-space-4);
  font-size: var(--brand-text-sm);
}

.btn-md {
  padding: var(--brand-space-3) var(--brand-space-6);
  font-size: var(--brand-text-sm);
}

.btn-lg {
  padding: var(--brand-space-4) var(--brand-space-8);
  font-size: var(--brand-text-base);
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  transform: translateY(-1px);
  box-shadow: var(--brand-shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-text);
  border-color: var(--brand-border);
}

.btn-ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--brand-white);
}

/* --- Menu Toggle --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-text);
  border-radius: 2px;
  transition: all var(--brand-transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: calc(var(--brand-header-height) + var(--brand-space-16)) 0 var(--brand-space-16);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: var(--brand-space-12);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-size: var(--brand-text-4xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: var(--brand-space-6);
  color: var(--brand-secondary);
}

.text-brand {
  color: var(--brand-primary);
}

.hero-sub {
  font-size: var(--brand-text-lg);
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin-bottom: var(--brand-space-8);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--brand-space-4);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  aspect-ratio: 1 / 1;
  min-height: 320px;
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--brand-radius-lg);
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* --- Two Column Layout --- */
.two-col {
  display: flex;
  align-items: center;
  gap: var(--brand-space-12);
}

.two-col-image,
.two-col-text {
  flex: 1;
  min-width: 0;
}

.two-col-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 492;
  border-radius: var(--brand-radius-lg);
  box-shadow: var(--brand-shadow-lg);
}

.two-col-text h2 {
  font-size: var(--brand-text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--brand-space-6);
  color: var(--brand-secondary);
}

.two-col-text p {
  color: var(--brand-text-muted);
  margin-bottom: var(--brand-space-4);
  line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--brand-space-6);
}

.feature-card {
  background: var(--brand-bg-card);
  padding: var(--brand-space-8);
  border-radius: var(--brand-radius-md);
  border: 1px solid var(--brand-border);
  transition: all var(--brand-transition-slow);
  opacity: 0;
  transform: translateY(20px);
  text-align: center;
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow-lg);
  border-color: var(--brand-primary-100);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary-50);
  border-radius: var(--brand-radius);
  margin: 0 auto var(--brand-space-5);
}

.feature-icon i,
.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-primary);
}

.feature-icon i {
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: var(--brand-text-lg);
  font-weight: 600;
  margin-bottom: var(--brand-space-3);
  color: var(--brand-secondary);
}

.feature-card p {
  font-size: var(--brand-text-sm);
  color: var(--brand-text-muted);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--brand-secondary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: var(--brand-text-3xl);
  font-weight: 700;
  color: var(--brand-white);
  margin-bottom: var(--brand-space-6);
  letter-spacing: -0.03em;
}

.cta-inner p {
  font-size: var(--brand-text-lg);
  color: var(--brand-gray-400);
  max-width: 700px;
  margin: 0 auto var(--brand-space-8);
  line-height: 1.7;
}

.cta-inner strong {
  color: var(--brand-primary);
}

/* --- Steps Grid --- */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: var(--brand-space-6);
  opacity: 0;
  transform: translateY(20px);
}

.step-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-size: var(--brand-text-5xl);
  font-weight: 700;
  color: var(--brand-primary-100);
  line-height: 1;
  margin-bottom: var(--brand-space-4);
}

.step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  border-radius: var(--brand-radius-md);
  margin: 0 auto var(--brand-space-5);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.step-icon i,
.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--brand-white);
}

.step-icon i {
  font-size: 1.5rem;
}

.step-card h3 {
  font-size: var(--brand-text-lg);
  font-weight: 600;
  margin-bottom: var(--brand-space-3);
  color: var(--brand-secondary);
}

.step-card p {
  font-size: var(--brand-text-sm);
  color: var(--brand-text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--brand-primary);
  font-size: 1.25rem;
  opacity: 0.5;
}

/* --- FAQ --- */
.faq-list {
  max-width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--brand-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--brand-space-5) 0;
  background: none;
  border: none;
  font-family: var(--brand-font);
  font-size: var(--brand-text-base);
  font-weight: 600;
  color: var(--brand-secondary);
  cursor: pointer;
  text-align: left;
  transition: color var(--brand-transition);
}

.faq-question:hover {
  color: var(--brand-primary);
}

.faq-question span {
  flex: 1;
}

.faq-arrow {
  width: 12px;
  height: 12px;
  font-size: 0.75rem;
  color: var(--brand-text-muted);
  transition: transform var(--brand-transition);
  flex: none;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--brand-transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-detail {
  padding: 0 0 var(--brand-space-6);
}

.faq-detail h4 {
  font-size: var(--brand-text-sm);
  font-weight: 600;
  color: var(--brand-secondary);
  margin-bottom: var(--brand-space-2);
}

.faq-detail p {
  font-size: var(--brand-text-sm);
  color: var(--brand-text-muted);
  line-height: 1.7;
}

/* --- Contact / Demo Form --- */
.contact-inner {
  display: flex;
  gap: var(--brand-space-12);
  align-items: flex-start;
}

.contact-text {
  flex: 1;
  min-width: 0;
}

.contact-text h2 {
  font-size: var(--brand-text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--brand-space-4);
  color: var(--brand-secondary);
}

.contact-text p {
  font-size: var(--brand-text-lg);
  color: var(--brand-text-muted);
  line-height: 1.7;
  margin-bottom: var(--brand-space-6);
}

.contact-actions {
  flex: 1;
  min-width: 0;
}

.contact-social {
  display: flex;
  gap: var(--brand-space-4);
  margin-top: var(--brand-space-6);
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gray-100);
  border-radius: var(--brand-radius);
  color: var(--brand-text-muted);
  transition: all var(--brand-transition);
}

.contact-social a:hover {
  background: var(--brand-primary);
  color: var(--brand-white);
  transform: translateY(-2px);
}

/* --- Demo Form --- */
.demo-form {
  background: var(--brand-bg-card);
  padding: var(--brand-space-8);
  border-radius: var(--brand-radius-md);
  box-shadow: var(--brand-shadow-md);
  border: 1px solid var(--brand-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--brand-space-4);
  margin-bottom: var(--brand-space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--brand-space-4);
}

.form-group:last-of-type {
  margin-bottom: var(--brand-space-6);
}

.form-group label {
  font-size: var(--brand-text-sm);
  font-weight: 500;
  color: var(--brand-text);
  margin-bottom: var(--brand-space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--brand-font);
  font-size: var(--brand-text-sm);
  padding: var(--brand-space-3) var(--brand-space-4);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius-sm);
  background: var(--brand-bg);
  color: var(--brand-text);
  transition: all var(--brand-transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--brand-gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: var(--brand-space-4);
  background: var(--brand-primary);
  color: var(--brand-secondary);
  font-family: var(--brand-font);
  font-size: var(--brand-text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--brand-radius);
  cursor: pointer;
  transition: all var(--brand-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--brand-space-2);
}

.form-submit:hover {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

/* --- Footer --- */
.site-footer {
  background: var(--brand-secondary);
  padding: var(--brand-space-16) 0 0;
  color: var(--brand-gray-400);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--brand-space-12);
  padding-bottom: var(--brand-space-12);
  border-bottom: 1px solid var(--brand-secondary-medium);
}

.footer-brand p {
  margin-top: var(--brand-space-4);
  font-size: var(--brand-text-sm);
  color: var(--brand-gray-500);
}

.footer-logo {
  height: 36px;
  width: 132px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--brand-space-3);
}

.footer-links a {
  font-size: var(--brand-text-sm);
  color: var(--brand-gray-400);
  transition: color var(--brand-transition);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--brand-space-3);
}

.footer-legal a {
  font-size: var(--brand-text-sm);
  color: var(--brand-gray-500);
  transition: color var(--brand-transition);
}

.footer-legal a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  padding: var(--brand-space-6) 0;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--brand-text-xs);
  color: var(--brand-gray-500);
}

/* --- Scroll to Top --- */
.btn-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--brand-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--brand-transition);
  z-index: 999;
  font-size: 1rem;
}

.btn-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-top:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* --- Scroll Reveal Base --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Route Draw Animation --- */
@keyframes routeDraw {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

@keyframes nodePulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 6; opacity: 0.7; }
}

/* --- Responsive: Tablet --- */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--brand-space-8);
  }

  .menu-toggle {
    display: none;
  }

  .nav-login-btn {
    display: inline-flex;
    margin-left: var(--brand-space-4);
  }

  .hero h1 {
    font-size: var(--brand-text-5xl);
  }

  .feature-card,
  .step-card {
    opacity: 1;
    transform: none;
  }

  .step-connector {
    padding-top: 60px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: var(--brand-text-3xl);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-bg-shape {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
  }

  .two-col {
    flex-direction: column;
    text-align: center;
  }

  .two-col-image {
    display: flex;
    justify-content: center;
  }

  .two-col-text h2 {
    font-size: var(--brand-text-2xl);
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
    margin: var(--brand-space-2) 0;
  }

  .contact-inner {
    flex-direction: column;
  }

  .contact-text {
    text-align: center;
  }

  .contact-actions {
    width: 100%;
  }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--brand-header-height);
    left: 0;
    right: 0;
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow-md);
    padding: var(--brand-space-6);
    z-index: 999;
  }

  .main-nav.active .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--brand-space-4);
  }

  .main-nav.active .nav-links a {
    display: block;
    padding: var(--brand-space-3) 0;
    font-size: var(--brand-text-base);
  }

  .main-nav.active .nav-login-btn {
    display: block;
    width: 100%;
    margin-top: var(--brand-space-4);
    padding: var(--brand-space-3) var(--brand-space-4);
    text-align: center;
    border: 1px solid var(--brand-primary);
    border-radius: var(--brand-radius);
    color: var(--brand-primary);
    font-weight: 600;
    font-size: var(--brand-text-sm);
    transition: all var(--brand-transition);
  }

  .main-nav.active .nav-login-btn:hover {
    background: var(--brand-primary);
    color: var(--brand-white);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--brand-space-8);
    text-align: center;
  }

  .contact-social {
    justify-content: center;
  }

  .footer-links,
  .footer-legal {
    align-items: center;
  }

  .cta-inner h2 {
    font-size: var(--brand-text-2xl);
  }

  .section {
    padding: var(--brand-space-16) 0;
  }

  .section-header {
    margin-bottom: var(--brand-space-8);
  }
}

/* --- 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;
  }
}
