/* DAKSH — Build Beyond Boundaries */
:root {
  --background: oklch(0.13 0.008 250);
  --foreground: oklch(0.96 0.005 240);
  --card: oklch(0.18 0.01 250 / 55%);
  --primary: oklch(0.82 0.14 210);
  --primary-foreground: oklch(0.14 0.02 240);
  --secondary: oklch(0.2 0.01 250);
  --muted-foreground: oklch(0.68 0.015 245);
  --border: oklch(1 0 0 / 9%);
  --input: oklch(1 0 0 / 12%);
  --glow: oklch(0.82 0.14 210 / 35%);
  --code-keyword: oklch(0.75 0.15 245);
  --code-string: oklch(0.85 0.12 190);
  --code-fn: oklch(0.88 0.1 220);
  --code-comment: oklch(0.55 0.02 245);
  --destructive: oklch(0.65 0.2 25);
  --gradient-text: linear-gradient(100deg, oklch(0.9 0.1 200), oklch(0.7 0.17 245));
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
section { scroll-margin-top: 5rem; }
a { text-decoration: none; color: inherit; }
.relative { position: relative; }
.fg { color: var(--foreground); }

/* Utilities */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}
.bg-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: grid-move 30s linear infinite;
}
.bg-grid.dim { opacity: 0.6; }
.glow-orb {
  pointer-events: none;
  position: absolute;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  filter: blur(40px);
  animation: pulse-glow 8s ease-in-out infinite;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 30px -4px var(--glow); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--input);
  color: var(--foreground);
  background: oklch(1 0 0 / 3%);
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: oklch(0.82 0.14 210 / 50%); box-shadow: 0 0 24px -8px var(--glow); background: oklch(1 0 0 / 6%); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.icon-sm { width: 1rem; height: 1rem; }

/* Navbar */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: all 0.5s;
}
#navbar.scrolled, #navbar.open {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.stroke-primary { stroke: var(--primary); }
.fill-primary { fill: oklch(0.82 0.14 210 / 80%); }
.logo-text { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.25em; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.3s; }
.nav-links a:hover { color: var(--foreground); }
.nav-cta { display: none; padding: 0.5rem 1rem; font-size: 0.875rem; }
#menu-toggle { display: block; background: none; border: none; color: var(--foreground); padding: 0.5rem; cursor: pointer; }
#menu-toggle svg { width: 1.25rem; height: 1.25rem; }
#mobile-menu { display: none; flex-direction: column; gap: 0.25rem; padding: 0 1.25rem 1.5rem; }
#navbar.open #mobile-menu { display: flex; }
#mobile-menu a { border-bottom: 1px solid var(--border); padding: 0.875rem 0; font-size: 1rem; }
#mobile-menu .mobile-cta { border-bottom: none; margin-top: 1rem; text-align: center; padding: 0.75rem 1rem; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero-orb { top: -10rem; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; }
.hero-grid {
  position: relative;
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.25rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid oklch(0.82 0.14 210 / 25%);
  background: oklch(0.82 0.14 210 / 5%);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.badge-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--primary); }
.hero-wordmark {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5em;
}
.hero h1 { margin-top: 0.75rem; font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; line-height: 0.95; }
.hero-sub { margin-top: 1.75rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.625; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.hero-actions.center { justify-content: center; }
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

/* Editor */
.editor { overflow: hidden; border-radius: 0.75rem; box-shadow: 0 40px 120px -40px var(--glow); }
.editor-bar { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.dot-red { background: oklch(0.65 0.2 25 / 80%); }
.dot-yellow { background: oklch(0.88 0.1 220 / 40%); }
.dot-cyan { background: oklch(0.82 0.14 210 / 70%); }
.editor-file { margin-left: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-label {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid oklch(0.82 0.14 210 / 30%);
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.editor-body { overflow-x: auto; padding: 1.25rem; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.75rem; }
.editor-body pre { white-space: pre; }
.editor-note { margin-top: 0.75rem; text-align: right; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-foreground); }
.c-kw { color: var(--code-keyword); }
.c-str { color: var(--code-string); }
.c-fn { color: var(--code-fn); }
.c-cm { color: var(--code-comment); }
.cursor-blink { display: inline-block; margin-left: 0.125rem; width: 0.5rem; height: 1rem; transform: translateY(0.125rem); background: var(--primary); animation: blink 1.1s steps(1) infinite; }
.code-lines .line { display: flex; }
.code-lines .ln { width: 2rem; flex-shrink: 0; user-select: none; text-align: right; color: oklch(0.55 0.02 245 / 60%); }
.code-lines .lc { margin-left: 1.25rem; white-space: pre; }

/* Sections */
.section { position: relative; padding: 7rem 0; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.section-head { max-width: 48rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--primary); }
.section-head h2 { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.2; }
.section-sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* Idea */
.idea-grid {
  margin-top: 4rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--border);
}
.idea-card { background: var(--background); padding: 2rem; transition: background 0.3s; }
.idea-card:hover { background: var(--secondary); }
.idea-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--primary); }
.idea-card h3 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.15em; }
.idea-card p { margin-top: 0.75rem; color: var(--muted-foreground); }
.idea-line { margin-top: 2rem; height: 1px; width: 2.5rem; background: var(--primary); transition: width 0.5s; }
.idea-card:hover .idea-line { width: 6rem; }

/* Features */
.features-orb { right: 0; top: 33%; width: 24rem; height: 24rem; opacity: 0.5; }
.features-grid { margin-top: 4rem; display: grid; gap: 1.25rem; }
.card-hover { transition: transform 0.4s cubic-bezier(.2,.8,.2,1), border-color 0.4s, box-shadow 0.4s; }
.card-hover:hover { transform: translateY(-4px); border-color: oklch(0.82 0.14 210 / 35%); box-shadow: 0 20px 50px -20px var(--glow); }
.feature-card { border-radius: 0.75rem; padding: 1.75rem; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid oklch(0.82 0.14 210 / 25%);
  background: oklch(0.82 0.14 210 / 5%);
  border-radius: 0.5rem;
  color: var(--primary);
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-card h3 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 600; }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }

/* Code section */
.code-grid { display: grid; align-items: center; gap: 3.5rem; }
.code-note { margin-top: 1.5rem; max-width: 28rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Timeline */
.timeline-section { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline-head { max-width: 56rem; margin: 0 auto; text-align: center; }
.timeline-head h2 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 0.95; }
.timeline-head p { max-width: 42rem; margin: 2rem auto 0; font-size: 1.125rem; color: var(--muted-foreground); }
.timeline { position: relative; margin-top: 5rem; display: grid; gap: 2rem; list-style: none; }
.timeline-track { position: absolute; left: 7px; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--border); }
.timeline-item { position: relative; display: flex; align-items: flex-start; gap: 1.25rem; }
.timeline-dot { position: relative; z-index: 10; width: 15px; height: 15px; flex-shrink: 0; border-radius: 9999px; border: 1px solid var(--input); background: var(--background); }
.timeline-item.done .timeline-dot { border-color: var(--primary); }
.timeline-item.active .timeline-dot { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 20px var(--glow); }
.timeline-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); }
.timeline-name { margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: 0.12em; }
.timeline-item.active .timeline-name { color: var(--primary); }
.timeline-badge {
  display: inline-block;
  margin-top: 0.5rem;
  border: 1px solid oklch(0.82 0.14 210 / 30%);
  background: oklch(0.82 0.14 210 / 10%);
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--primary);
}

/* Roadmap */
.roadmap-list { margin-top: 4rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.roadmap-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.roadmap-row:last-child { border-bottom: none; }
.roadmap-row:hover { background: oklch(0.2 0.01 250 / 50%); }
.roadmap-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted-foreground); }
.roadmap-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.1em; transition: color 0.3s; }
.roadmap-row:hover .roadmap-body h3 { color: var(--primary); }
.roadmap-body p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.roadmap-status {
  grid-column-start: 2;
  width: fit-content;
  border: 1px solid var(--input);
  border-radius: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}
.roadmap-status.current { border-color: oklch(0.82 0.14 210 / 40%); background: oklch(0.82 0.14 210 / 10%); color: var(--primary); }
.roadmap-status.exploring { border-color: oklch(0.62 0.17 245 / 40%); color: var(--code-keyword); }

/* CTA */
.cta-section { overflow: hidden; padding: 8rem 0; }
.cta-orb { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; }
.cta-watermark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: oklch(0.96 0.005 240 / 3%);
}
.cta-inner { position: relative; max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.cta-inner h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.2; }
.cta-inner > p { max-width: 36rem; margin: 1.5rem auto 0; font-size: 1.125rem; color: var(--muted-foreground); }

/* Footer */
footer { border-top: 1px solid var(--border); }
.footer-top {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
}
.footer-tag { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.3s; }
.footer-links a:hover { color: var(--foreground); }
.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Animations */
@keyframes grid-move { to { background-position: 64px 64px; } }
@keyframes pulse-glow { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.animate-float-y { animation: float-y 2.4s ease-in-out infinite; }
.animate-rise { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
.delay-200 { animation-delay: 200ms; }

/* Responsive */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1.75rem 1rem; }
  .roadmap-status { grid-column-start: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 768px) {
  .nav-inner, .container, .container-narrow { padding-left: 2rem; padding-right: 2rem; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  #menu-toggle, #mobile-menu { display: none !important; }
  .section { padding: 10rem 0; }
  .idea-grid { grid-template-columns: repeat(3, 1fr); }
  .idea-card { padding: 2.5rem; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .timeline-track { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .timeline-item { flex-direction: column; gap: 1.5rem; }
  .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; padding: 3.5rem 2rem; }
  .footer-bottom { padding: 1.5rem 2rem; }
  .cta-section { padding: 12rem 0; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .code-grid { grid-template-columns: 0.9fr 1.1fr; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
