/*
 * UnlimitedModel.com Page-Specific Styles
 *
 * Landing hero + header styles on the light-first token system.
 * No gradients, no glassmorphism, no backdrop-filter.
 *
 * Contents:
 * 1. Hero Section - clean light surface
 * 2. Navigation Updates - shared header styling
 */

/* ===========================================
   1. HERO SECTION - compact, premium, centered
   No full-viewport height: the first screen stays
   dense with useful information.
   =========================================== */

/* Hero Container */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(80px, 9vw, 96px) var(--space-6) clamp(70px, 8vw, 84px);
  overflow: hidden;
  background: var(--bg-primary);
}

/* Hero decorative layers removed: the hero renders on a clean light surface. */
.hero-gradient-mesh,
.hero-grid-overlay {
  display: none;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 780px;
  text-align: center;
}

/* Hero Badge — compact 32px pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 32px;
  padding: 4px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(22, 89, 232, 0.22);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--accent);
  margin-bottom: var(--space-5);
  animation: fade-in-up 0.5s var(--ease-out) both;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero Headline — 56–64px desktop, 38–44px mobile, two tight lines */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 5vw, 3.875rem);
  font-weight: var(--font-bold);
  line-height: 1.05;
  letter-spacing: -0.032em;
  margin-bottom: var(--space-5);
  color: var(--text-primary);
  animation: fade-in-up 0.5s var(--ease-out) 0.05s both;
}

/* Accent headline line — solid token accent, no gradient text */
.hero-headline .hero-accent,
.hero-headline .gradient-text {
  color: var(--accent);
  display: inline-block;
}

/* Hero Subtitle — readable supporting paragraph */
.hero-subtitle {
  font-size: clamp(1.0625rem, 1.4vw, 1.125rem);
  color: #667085;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fade-in-up 0.5s var(--ease-out) 0.1s both;
}

/* Hero CTAs — two clear buttons, 12px gap, 28–32px above */
.hero-cta-group {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-7);
  margin-bottom: 0;
  animation: fade-in-up 0.5s var(--ease-out) 0.15s both;
}

/* Primary CTA - Get Started (solid accent, pinned white label) */
.hero-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--font-semibold);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

/* The label must never inherit a blue or transparent text color. */
.hero-cta-primary,
.hero-cta-primary *,
.hero-cta-primary span,
.hero-cta-primary svg {
  color: #ffffff;
}

.hero-cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.hero-cta-primary:active {
  transform: translateY(0);
  background: var(--accent-active);
  box-shadow: var(--shadow-sm);
}

.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Ripple effect on click (position/size come from --ripple-* custom props) */
.hero-cta-primary .ripple {
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: var(--ripple-size, 0);
  height: var(--ripple-size, 0);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Secondary CTA - View Demo (white surface, 1px border, dark label) */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--font-semibold);
  border-radius: 10px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.hero-cta-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-cta-secondary:active {
  transform: translateY(0);
  background: var(--bg-hover);
}

/* Hero trust row — 13px/500 with green checks */
.hero-features {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: var(--font-medium);
  margin-top: var(--space-6);
  animation: fade-in-up 0.5s var(--ease-out) 0.2s both;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-feature svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.hero-feature strong,
.hero-feature span {
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Hero Code Preview — dark developer card, high contrast */
.hero-code-preview {
  position: relative;
  margin-top: var(--space-10);
  max-width: 720px;
  width: 100%;
  animation: fade-in-up 0.5s var(--ease-out) 0.25s both;
}

.hero-code-card {
  background: var(--code-surface);
  border: 1px solid var(--code-surface-header);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  text-align: left;
}

.hero-code-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--code-surface-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.hero-code-dot:nth-child(1) { background: #f87171; }
.hero-code-dot:nth-child(2) { background: #fbbf24; }
.hero-code-dot:nth-child(3) { background: #34d399; }

.hero-code-title {
  margin-left: var(--space-2);
  font-size: var(--text-xs);
  color: var(--code-muted);
  font-family: var(--font-mono);
}

.hero-code-body {
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-x: auto;
}

.hero-code-body code {
  background: none;
  padding: 0;
  color: var(--code-fg);
}

/* Syntax colors tuned for the dark surface (WCAG AA on #0F172A) */
.hero-code-body .keyword { color: #c4b5fd; }
.hero-code-body .string { color: #86efac; }
.hero-code-body .comment { color: #94a3b8; font-style: italic; }
.hero-code-body .property { color: #7dd3fc; }
.hero-code-body .number { color: #fdba74; }

/* Fade in up animation */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   2. NAVIGATION - Shared Header
   =========================================== */

/* Header shell (legacy alias; the live header uses .site-header) */
.nav-premium {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-premium.scrolled {
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* Nav CTA Buttons */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

.nav-cta .btn {
  min-height: 40px;
}

/* Mobile Navigation Toggle */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-mobile-toggle:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.nav-mobile-toggle:focus-visible {
  box-shadow: var(--focus-ring);
}

.nav-mobile-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Navigation Menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 73px;
  background: var(--bg-primary);
  z-index: var(--z-fixed);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
  animation: fade-in 0.2s var(--ease-out);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu .nav-link {
  padding: var(--space-4);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.nav-mobile-menu .nav-cta {
  flex-direction: column;
  margin-left: 0;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.nav-mobile-menu .nav-cta .btn {
  width: 100%;
  justify-content: center;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================================
   3. RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .hero-section {
    padding: var(--space-16) var(--space-6) var(--space-14);
  }

  .hero-headline {
    font-size: clamp(2.375rem, 5.4vw, 3rem);
  }

  .hero-cta-group {
    gap: var(--space-3);
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    min-height: 46px;
    padding: 0 var(--space-5);
    font-size: 14px;
  }

  .hero-code-preview {
    margin-top: var(--space-8);
    max-width: 100%;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .hero-section {
    padding: var(--space-14) var(--space-4) var(--space-12);
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .hero-badge {
    margin-bottom: var(--space-4);
  }

  .hero-headline {
    font-size: clamp(2.375rem, 10vw, 2.75rem);
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    text-align: left;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-top: var(--space-6);
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0 var(--space-6);
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-5);
  }

  .hero-code-preview {
    margin-top: var(--space-8);
  }

  .hero-code-body {
    padding: var(--space-4);
    font-size: var(--text-sm);
  }

  /* Navigation mobile styles */
  .nav-premium {
    padding: var(--space-3) 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1441px) {
  .hero-section {
    padding: var(--space-20) var(--space-8) var(--space-16);
  }

  .hero-content {
    max-width: 820px;
  }

  .hero-headline {
    font-size: 3.875rem;
  }

  .hero-subtitle {
    max-width: 700px;
  }

  .hero-code-preview {
    max-width: 760px;
  }
}

/* ===========================================
   4. REDUCED MOTION SUPPORT
   =========================================== */

@media (prefers-reduced-motion: reduce) {
  /* Decorative mesh layers are removed entirely */
  .hero-gradient-mesh,
  .hero-grid-overlay {
    display: none;
  }

  /* Disable fade-in animations */
  .hero-badge,
  .hero-headline,
  .hero-subtitle,
  .hero-cta-group,
  .hero-features,
  .hero-code-preview {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Disable CTA hover animations */
  .hero-cta-primary,
  .hero-cta-secondary {
    transition: none;
  }

  .hero-cta-primary:hover,
  .hero-cta-secondary:hover {
    transform: none;
  }

  /* Disable ripple effect */
  .hero-cta-primary .ripple {
    animation: none;
  }
}

/* ===========================================
   5. LIGHT SURFACES (light-first by default)
   =========================================== */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero-section {
    background: var(--bg-primary);
  }

  :root:not([data-theme="dark"]) .nav-premium {
    background: var(--bg-primary);
    border-color: var(--border-subtle);
  }
}

/* ===========================================
   6. FOCUS STATES - Accessibility
   =========================================== */

.hero-cta-primary:focus-visible,
.hero-cta-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-mobile-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .hero-cta-primary,
  .hero-cta-secondary {
    border-width: 2px;
  }
  
  .hero-badge {
    border-width: 2px;
  }
}
