/* =============================================
   Squidex Design System
   Warm dark · Premium · Editorial
   ============================================= */

/* -------------------------------------------
   1. Custom Properties
   ------------------------------------------- */
:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg: #0B0C0E;
  --bg-elevated: #111215;
  --surface: #181A20;
  --surface-hover: #1E2028;
  --surface-active: #242630;

  /* Borders */
  --border: rgba(255, 245, 235, 0.06);
  --border-hover: rgba(255, 245, 235, 0.10);
  --border-strong: rgba(255, 245, 235, 0.14);

  /* Text */
  --text: #EDEDEE;
  --text-secondary: #8B8D97;
  --text-muted: #5C5E6A;

  /* Accent - Warm Amber */
  --accent: #E8AD55;
  --accent-dim: #C9943A;
  --accent-deep: #A8782E;
  --accent-bg: rgba(232, 173, 85, 0.08);
  --accent-bg-hover: rgba(232, 173, 85, 0.14);
  --accent-glow: rgba(232, 173, 85, 0.20);
  --accent-border: rgba(232, 173, 85, 0.25);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #E8AD55 0%, #D4874A 100%);
  --gradient-warm: linear-gradient(135deg, rgba(232, 173, 85, 0.15) 0%, rgba(212, 135, 74, 0.08) 100%);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Sizing */
  --max-width: 1200px;
  --content-width: 720px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 400ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--accent-bg);
  color: var(--accent);
}

::-moz-selection {
  background: var(--accent-bg);
  color: var(--accent);
}


/* -------------------------------------------
   3. Typography
   ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-secondary); line-height: 1.7; }
p + p { margin-top: 1em; }

.text-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #E8AD55 0%, #F0C080 40%, #D4874A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-secondary {
  color: var(--text-secondary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.content-slim {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}


/* -------------------------------------------
   4. Navigation
   ------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 12, 14, 0.80);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-fast);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links .nav-cta {
  margin-left: 12px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  gap: 5px;
  transition: border-color var(--transition-fast);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--border-hover);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* -------------------------------------------
   5. Buttons
   ------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #0B0C0E;
  border-color: transparent;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
  color: #0B0C0E;
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent);
}

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

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  gap: 10px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}


/* -------------------------------------------
   6. Noise Overlay
   ------------------------------------------- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* Fallback for browsers that don't support SVG filters well */
@supports not (filter: blur(0)) {
  .noise-overlay { display: none; }
}


/* -------------------------------------------
   7. Hero Section
   ------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(232, 173, 85, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(212, 135, 74, 0.06), transparent),
    radial-gradient(ellipse 40% 30% at 20% 40%, rgba(200, 150, 70, 0.04), transparent);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin: 0;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* Hero Visual - Phone Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  background: #0F0F13;
  border-radius: 44px;
  border: 1px solid rgba(255, 245, 235, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 245, 235, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(232, 173, 85, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Ambient glow behind phone */
.phone-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 173, 85, 0.10) 0%, transparent 60%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0B0C0E;
  border-radius: 20px;
  z-index: 10;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.phone-status-icons svg {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
}

.phone-screen {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 16px;
  border-bottom: 1px solid rgba(255, 245, 235, 0.06);
  flex-shrink: 0;
}

.phone-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #0B0C0E;
  flex-shrink: 0;
}

.phone-chat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
}

.phone-chat-status {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.phone-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  overflow: hidden;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  animation: message-in 0.4s var(--ease-out) both;
}

.message-user {
  align-self: flex-end;
  background: var(--gradient-accent);
  color: #0B0C0E;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.message-bot {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.message-bot strong {
  color: var(--text);
  font-weight: 600;
}

.message-bot code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 1px 4px;
  border-radius: 3px;
}

.message-delay-1 { animation-delay: 0.3s; }
.message-delay-2 { animation-delay: 0.8s; }
.message-delay-3 { animation-delay: 1.5s; }
.message-delay-4 { animation-delay: 2.0s; }

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

.phone-homebar {
  width: 120px;
  height: 4px;
  background: rgba(255, 245, 235, 0.12);
  border-radius: 4px;
  margin: 10px auto 8px;
  flex-shrink: 0;
}

/* Floating code brackets decoration */
.hero-decoration {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.hero-decoration-bracket {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 6rem;
  color: rgba(232, 173, 85, 0.04);
  line-height: 1;
  user-select: none;
}

.hero-decoration-bracket:nth-child(1) {
  top: -20px;
  right: -40px;
}

.hero-decoration-bracket:nth-child(2) {
  bottom: -40px;
  left: -30px;
}

/* Floating dots */
.hero-decoration-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
}

.hero-decoration-dot:nth-child(3) { top: 20%; right: 10%; width: 3px; height: 3px; opacity: 0.1; animation: float 8s ease-in-out infinite; }
.hero-decoration-dot:nth-child(4) { bottom: 30%; right: 5%; width: 5px; height: 5px; opacity: 0.08; animation: float 10s ease-in-out infinite reverse; }
.hero-decoration-dot:nth-child(5) { top: 40%; left: -10px; width: 3px; height: 3px; opacity: 0.12; animation: float 7s ease-in-out infinite; }


/* -------------------------------------------
   8. Engine Support Section
   ------------------------------------------- */
.engines-section {
  padding: 100px 0;
  position: relative;
}

.engines-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.engine-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.engine-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.engine-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}

.engine-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.engine-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.engine-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* -------------------------------------------
   9. How It Works (Steps)
   ------------------------------------------- */
.steps-section {
  padding: 100px 0;
  position: relative;
}

.steps-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps-header {
  text-align: center;
  margin-bottom: 64px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 16px);
  right: calc(16.67% + 16px);
  height: 1px;
  background: linear-gradient(90deg, 
    var(--accent-border) 0%, 
    var(--accent-border) 33%, 
    transparent 33%, 
    transparent 66%,
    var(--accent-border) 66%, 
    var(--accent-border) 100%
  );
  opacity: 0.3;
}

/* Actually, let me do a solid line with dots at each step */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-border) 0px,
    var(--accent-border) calc((100% - 24px) / 3),
    transparent calc((100% - 24px) / 3),
    transparent calc((100% - 24px) / 3 + 24px),
    var(--accent-border) calc((100% - 24px) / 3 + 24px),
    var(--accent-border) calc(2 * ((100% - 24px) / 3) + 24px),
    transparent calc(2 * ((100% - 24px) / 3) + 24px),
    transparent calc(2 * ((100% - 24px) / 3) + 48px),
    var(--accent-border) calc(2 * ((100% - 24px) / 3) + 48px),
    var(--accent-border) 100%
  );
  opacity: 0.25;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}

.step-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
}


/* -------------------------------------------
   10. Features Grid
   ------------------------------------------- */
.features-section {
  padding: 100px 0;
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* -------------------------------------------
   11. CTA Section
   ------------------------------------------- */
.cta-section {
  padding: 120px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 173, 85, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .content-slim {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 600px;
}

.cta-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 480px;
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* CTA store badges */
.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.store-badge:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--text);
  transform: translateY(-2px);
}

.store-badge-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-badge-label {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-badge-name {
  font-size: 0.95rem;
  font-weight: 600;
}


/* -------------------------------------------
   12. Footer
   ------------------------------------------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}


/* -------------------------------------------
   13. Legal Pages (shared content)
   ------------------------------------------- */
.legal-page {
  padding: calc(var(--nav-height) + 48px) 0 64px;
  min-height: 100vh;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin-bottom: 12px;
}

.legal-header .legal-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-content .card {
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.legal-content .card:hover {
  border-color: var(--border-hover);
}

.legal-content .card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-content .card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content .card a {
  color: var(--accent);
  font-weight: 500;
}

.legal-content .card a:hover {
  color: var(--accent-dim);
}

.legal-content .card p + p {
  margin-top: 0.75em;
}

.legal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}


/* -------------------------------------------
   14. Scroll-triggered Reveals (Intersection Observer)
   ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Staggered children reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }


/* -------------------------------------------
   15. Animations & Keyframes
   ------------------------------------------- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes message-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

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

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Initial load animation */
.hero-section .hero-content {
  animation: fade-in 0.8s var(--ease-out) both;
}

.hero-section .hero-visual {
  animation: scale-in 1s var(--ease-out) 0.2s both;
}

.hero-badge { animation: slide-up 0.6s var(--ease-out) 0.1s both; }
.hero-title { animation: slide-up 0.6s var(--ease-out) 0.15s both; }
.hero-subtitle { animation: slide-up 0.6s var(--ease-out) 0.2s both; }
.hero-actions { animation: slide-up 0.6s var(--ease-out) 0.3s both; }


/* -------------------------------------------
   16. Utility Classes
   ------------------------------------------- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.section-pad {
  padding: 100px 0;
}

/* Page-specific sizing containers */
.page-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main .site-footer {
  margin-top: auto;
}


/* -------------------------------------------
   17. Responsive Breakpoints
   ------------------------------------------- */

/* Tablet & Small Desktop */
@media (max-width: 1024px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-title {
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
    text-align: center;
  }

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

  .hero-badge {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 36px;
  }

  .phone-notch {
    width: 100px;
    height: 24px;
  }

  .phone-statusbar {
    padding: 14px 22px 6px;
    font-size: 0.68rem;
  }

  .phone-screen {
    padding: 8px 12px;
  }

  .phone-messages {
    gap: 6px;
  }

  .message {
    padding: 8px 12px;
    font-size: 0.7rem;
    border-radius: 12px;
  }

  .phone-homebar {
    width: 100px;
    height: 3px;
  }

  .phone-chat-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.55rem;
  }

  .engines-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .steps-grid::before {
    display: none;
  }

  .cta-bg-glow {
    width: 100%;
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .content-slim {
    width: calc(100% - 32px);
  }

  /* Mobile nav */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(11, 12, 14, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero-section {
    padding: calc(var(--nav-height) + 24px) 0 48px;
  }

  .hero-section .container {
    gap: 32px;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
    border-radius: 28px;
  }

  .phone-notch {
    width: 80px;
    height: 20px;
    top: 8px;
  }

  .phone-statusbar {
    padding: 12px 18px 4px;
    font-size: 0.6rem;
  }

  .phone-screen {
    padding: 6px 10px;
    gap: 6px;
  }

  .phone-chat-header {
    padding: 4px 2px 10px;
  }

  .phone-chat-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
  }

  .phone-chat-name {
    font-size: 0.65rem;
  }

  .phone-chat-status {
    font-size: 0.55rem;
  }

  .phone-messages {
    gap: 5px;
    padding-top: 6px;
  }

  .message {
    padding: 6px 10px;
    font-size: 0.62rem;
    border-radius: 10px;
  }

  .phone-homebar {
    width: 80px;
    height: 3px;
    margin: 6px auto 6px;
  }

  .typing-indicator .dot {
    width: 5px;
    height: 5px;
  }

  .hero-decoration {
    display: none;
  }

  /* Engines */
  .engines-section {
    padding: 60px 0;
  }

  .engines-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .engine-card {
    padding: 28px 24px;
  }

  /* Steps */
  .steps-section {
    padding: 60px 0;
  }

  .steps-header {
    margin-bottom: 40px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-card {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .step-desc {
    max-width: 100%;
  }

  /* Features */
  .features-section {
    padding: 60px 0;
  }

  .features-header {
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  /* CTA */
  .cta-section {
    padding: 80px 0;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Legal pages */
  .legal-page {
    padding: calc(var(--nav-height) + 32px) 0 48px;
  }

  .legal-content .card {
    padding: 24px 20px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .phone-mockup {
    width: 170px;
    height: 340px;
    border-radius: 24px;
  }

  .phone-notch {
    width: 60px;
    height: 16px;
    top: 6px;
  }

  .phone-statusbar {
    padding: 10px 14px 4px;
    font-size: 0.55rem;
  }

  .phone-screen {
    padding: 4px 8px;
  }

  .message {
    padding: 5px 8px;
    font-size: 0.55rem;
    border-radius: 8px;
  }

  .phone-homebar {
    width: 60px;
    height: 2px;
  }
}


/* -------------------------------------------
   18. Reduced Motion
   ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .noise-overlay {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}
