/* FreeCoder landing â€” hero template port + real-details sections. No images below the hero. */

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

:root, [data-theme="white"] {
  --bg: #000000;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --dim: rgba(255, 255, 255, 0.72);
  --dimmer: rgba(255, 255, 255, 0.48);
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", "Cascadia Mono", Consolas, monospace;

  /* Dynamic Theme Accents */
  --accent: #ffffff;
  --accent-rgb: 255, 255, 255;
  --accent-glow: rgba(255, 255, 255, 0.35);
  --accent-bg: rgba(255, 255, 255, 0.04);
  --accent-border: rgba(255, 255, 255, 0.16);
  --accent-hover-border: rgba(255, 255, 255, 0.6);
  --accent-badge-bg: rgba(255, 255, 255, 0.1);
  --accent-badge-text: #ffffff;
}

[data-theme="cyan"] {
  --accent: #00f0ff;
  --accent-rgb: 0, 240, 255;
  --accent-glow: rgba(0, 240, 255, 0.45);
  --accent-bg: rgba(0, 240, 255, 0.06);
  --accent-border: rgba(0, 240, 255, 0.28);
  --accent-hover-border: rgba(0, 240, 255, 0.85);
  --accent-badge-bg: rgba(0, 240, 255, 0.14);
  --accent-badge-text: #7df9ff;
}

[data-theme="emerald"] {
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --accent-glow: rgba(16, 185, 129, 0.45);
  --accent-bg: rgba(16, 185, 129, 0.06);
  --accent-border: rgba(16, 185, 129, 0.28);
  --accent-hover-border: rgba(16, 185, 129, 0.85);
  --accent-badge-bg: rgba(16, 185, 129, 0.14);
  --accent-badge-text: #6ee7b7;
}

[data-theme="violet"] {
  --accent: #b066ff;
  --accent-rgb: 176, 102, 255;
  --accent-glow: rgba(176, 102, 255, 0.45);
  --accent-bg: rgba(176, 102, 255, 0.06);
  --accent-border: rgba(176, 102, 255, 0.28);
  --accent-hover-border: rgba(176, 102, 255, 0.85);
  --accent-badge-bg: rgba(176, 102, 255, 0.14);
  --accent-badge-text: #d8b4fe;
}

[data-theme="amber"] {
  --accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-glow: rgba(245, 158, 11, 0.45);
  --accent-bg: rgba(245, 158, 11, 0.06);
  --accent-border: rgba(245, 158, 11, 0.28);
  --accent-hover-border: rgba(245, 158, 11, 0.85);
  --accent-badge-bg: rgba(245, 158, 11, 0.14);
  --accent-badge-text: #fcd34d;
}

[data-theme="rose"] {
  --accent: #ff3366;
  --accent-rgb: 255, 51, 102;
  --accent-glow: rgba(255, 51, 102, 0.45);
  --accent-bg: rgba(255, 51, 102, 0.06);
  --accent-border: rgba(255, 51, 102, 0.28);
  --accent-hover-border: rgba(255, 51, 102, 0.85);
  --accent-badge-bg: rgba(255, 51, 102, 0.14);
  --accent-badge-text: #fda4af;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.block { display: block; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.5s ease;
}
.nav-inner {
  margin: 0 auto;
  transition: all 0.5s ease;
  max-width: 1400px;
}
.nav.scrolled .nav-inner {
  margin-top: 16px;
  max-width: 1200px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  transition: all 0.5s ease;
}
.nav.scrolled .nav-row { height: 56px; padding: 0 24px; }
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 24px;
  transition: all 0.5s ease;
}
.nav.scrolled .logo { font-size: 20px; }
.logo-img { width: 26px; height: 26px; align-self: center; object-fit: contain; }
.nav.scrolled .logo-img { width: 22px; height: 22px; }
.logo-tm { font-family: var(--font-mono); font-size: 10px; color: var(--dim); }
.nav-links { display: flex; gap: 48px; }
.nav-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color 0.3s; }
.nav-signin:hover { color: var(--white); }
.nav-button {
  background: var(--white);
  color: #000;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s;
}
.nav-button:hover { background: rgba(255, 255, 255, 0.9); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-shade { position: absolute; inset: 0; }
.hero-shade-x { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.2) 65%, #000 100%); }
.hero-shade-y { background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55) 75%, #000 100%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-h, .grid-v { position: absolute; background: var(--line-soft); }
.grid-h { left: 0; right: 0; height: 1px; }
.grid-v { top: 0; bottom: 0; width: 1px; }
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 140px 32px 120px;
}
.hero-inner { max-width: 1400px; margin: 0 auto; width: 100%; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 28px;
}
.eyebrow-line { display: inline-block; width: 32px; height: 1px; background: rgba(255,255,255,0.35); }
.hero-title {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 6.5vw, 6.8rem);
}
.blur-word { display: inline-block; min-width: 3ch; }
.blur-word .bw-char { display: inline-block; will-change: opacity, filter, transform; }
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.btn-light {
  background: var(--white);
  color: #000;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s, background 0.25s;
}
.btn-light:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s, background 0.25s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.hero-stats {
  position: relative;
  z-index: 2;
  padding: 0 32px 48px;
}
.stats-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.35; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Engine strip ---------- */
.engine-strip { border-top: 1px solid var(--line-soft); padding: 26px 32px; }
.engine-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.engine-item { font-size: 14px; color: var(--dim); }
.engine-item b { color: var(--white); font-weight: 600; }
.engine-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* ---------- Sections (text-only, no images) ---------- */
.section { padding: 110px 32px; border-top: 1px solid var(--line-soft); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dimmer);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub { font-size: 16px; color: var(--dim); max-width: 640px; line-height: 1.6; margin-bottom: 56px; }

/* Models */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.model-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  transition: border-color 0.3s, background 0.3s;
  background: rgba(255,255,255,0.015);
}
.model-card:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.03); }
.model-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.model-note { font-size: 13.5px; color: var(--dim); line-height: 1.55; min-height: 42px; }
.model-meta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--dim);
}
.chip-acc { color: #67e8f9; border-color: rgba(103,232,249,0.35); }

/* Savings */
.save-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.save-rows { border-top: 1px solid var(--line); }
.save-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.save-row-label { font-size: 14.5px; color: rgba(255,255,255,0.75); }
.save-row-note { font-size: 12px; color: var(--dimmer); margin-top: 3px; }
.save-row-value { font-size: 20px; font-weight: 600; white-space: nowrap; }
.save-row-value.pos { color: #67e8f9; }
.save-big {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(90deg, #eca8d6, #a78bfa, #67e8f9, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.save-big-note { font-size: 13px; color: var(--dimmer); margin-top: 10px; }
.calc { border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-top: 28px; background: rgba(255,255,255,0.015); }
.calc-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dimmer); margin-bottom: 16px; }
.calc-presets { display: flex; gap: 10px; }
.calc-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 10px;
  padding: 12px 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-display);
}
.calc-btn:hover { border-color: rgba(255,255,255,0.4); }
.calc-btn.active { background: var(--white); color: #000; border-color: var(--white); font-weight: 600; }
.calc-result { margin-top: 20px; font-size: 15px; color: var(--dim); }
.calc-result b { color: var(--white); font-size: 22px; letter-spacing: -0.01em; }

/* ---------- Ad band ---------- */
.ad-band {
  min-height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}
.ad-band:empty { display: none; }
.ad-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dimmer); }
.demo-ad {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px dashed rgba(255,255,255,.25); border-radius: 14px;
  padding: 16px 22px; max-width: 1100px; width: 100%;
  background: rgba(255,255,255,.02);
}
.demo-ad .demo-tag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; border: 1px solid rgba(251,191,36,.5); color: #fbbf24; border-radius: 999px; padding: 3px 8px; }
.demo-ad b { font-size: 14.5px; }
.demo-ad span:not(.demo-tag) { font-size: 12.5px; color: var(--dim); flex: 1; min-width: 240px; }
.demo-ad .demo-cta { font-size: 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 16px; color: var(--white); }

/* ---------- Download ---------- */
.download {
  padding: 130px 32px 90px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.download-inner { max-width: 900px; margin: 0 auto; }
.download h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.download p { color: var(--dim); margin: 20px auto 44px; max-width: 560px; font-size: 16px; line-height: 1.6; }
.download-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.download-fine { margin-top: 28px; font-family: var(--font-mono); font-size: 11px; color: var(--dimmer); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.footer-brand { font-weight: 600; font-size: 15px; }
.footer-brand sup { font-family: var(--font-mono); font-size: 9px; color: var(--dim); }
.footer-fine { font-size: 12px; color: var(--dimmer); }
.footer-link { font-size: 12px; color: var(--dim); transition: color 0.3s; }
.footer-link:hover { color: var(--white); }

/* ---------- Theme Controls & Switcher ---------- */
.theme-bar-wrap {
  margin: 32px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.theme-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
}
.theme-bar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: all 0.4s ease;
}
.theme-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dim);
  transition: all 0.25s ease;
  user-select: none;
}
.theme-pill:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}
.theme-pill.active {
  color: var(--white);
  background: var(--accent-bg);
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.theme-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Header theme quick switcher */
.nav-theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.nav-theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.nav-theme-dot:hover {
  transform: scale(1.25);
}
.nav-theme-dot.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 8px currentColor;
}

/* ---------- Startup India & Typing Card ("Unlimited Text") ---------- */
.startup-card {
  position: relative;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 35px -10px var(--accent-glow);
  transition: all 0.4s ease;
  margin-top: 32px;
}
.startup-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9), 0 0 45px -5px var(--accent-glow);
}
.startup-card-body {
  padding: 56px 48px;
  min-height: 240px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.85;
  color: #ffffff;
  letter-spacing: -0.015em;
  white-space: pre-wrap;
  word-break: break-word;
}
.typing-output {
  display: inline;
  font-weight: 450;
  color: #ffffff;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.25em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: blinkCursor 0.8s infinite;
  transition: background 0.35s, box-shadow 0.35s;
}
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- 22 Logos Grid ---------- */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.logo-card {
  position: relative;
  background: #060709;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.logo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-hover-border);
  box-shadow: 0 12px 28px -6px var(--accent-glow);
  background: #0b0d12;
}
.logo-card:hover::before {
  opacity: 1;
}
.logo-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.35s ease;
  box-shadow: 0 0 14px var(--accent-glow);
}
.logo-card:hover .logo-icon-wrap {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
}
.logo-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: color 0.35s ease;
}
.logo-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.logo-desc {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--dim);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-tag {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border: 1px solid var(--accent-border);
  transition: all 0.35s ease;
  align-self: flex-start;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .save-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .stats-inner { gap: 36px; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .models-grid { grid-template-columns: 1fr; }
  .nav-signin { display: none; }
  .hero-content { padding: 120px 22px 90px; }
  .section { padding: 80px 22px; }
  .stats-inner { flex-direction: column; gap: 22px; }
  .stat-value { font-size: 26px; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-bar-wrap { flex-direction: column; align-items: flex-start; }
}
