/* ── Day Theme Design Tokens ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f9fc;
  --surface: rgba(255, 255, 255, 0.65);
  --surface2: rgba(255, 255, 255, 0.85);
  --border: rgba(0, 0, 0, 0.05);
  --border-light: rgba(255, 255, 255, 0.85);
  --amber: #d97706;
  --amber-dim: rgba(217, 119, 6, 0.08);
  --amber-glow: rgba(217, 119, 6, 0.15);
  --green: #059669;
  --red: #dc2626;
  --text: #0f172a;
  --muted: #64748b;

  --mono: "Fira Code", monospace;
  --sans: "Plus Jakarta Sans", sans-serif;
  --body-font: "Inter", sans-serif;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Noise grain overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── Glow blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(217, 119, 6, 0.06) 0%,
    transparent 70%
  );
  top: -100px;
  right: -150px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(5, 150, 105, 0.05) 0%,
    transparent 70%
  );
  bottom: -150px;
  left: -100px;
}
.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(2ea580c, 0.04) 0%, transparent 70%);
  top: 40%;
  left: 30%;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 249, 252, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.logo {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo span {
  color: var(--muted);
}
.logo-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8f9fc;
  font-weight: 800;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.nav-pills {
  display: flex;
  gap: 12px;
  align-items: center;
}
.npill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.npill:hover {
  color: var(--text);
  border-color: var(--amber);
  background: var(--amber-dim);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}
.npill:active {
  transform: translateY(0);
}

/* ── Common Typography & Components ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--amber-dim);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
  transition: transform 0.2s ease;
}
.eyebrow:hover {
  transform: scale(1.02);
}
.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--amber) 0%, #ea580c 100%);
  color: #f8f9fc;
  border: none;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 800;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
  text-decoration: none;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}
.btn-gradient:active {
  transform: scale(0.97);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.btn-outline:hover {
  background: #fff;
  border-color: rgba(217, 119, 6, 0.2);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
  transform: translateY(-2px);
}
.btn-outline:active {
  transform: scale(0.97);
}

/* ── Split Hero Section ── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.headline {
  font-family: var(--sans);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 12px;
  color: var(--text);
}
.headline-sub {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: transparent;
  background: linear-gradient(135deg, var(--amber) 0%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 28px;
}
.tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animated Terminal Visual in Hero */
.hero-visual {
  position: relative;
  w-width: 100%;
  height: 480px;
  perspective: 1000px;
}
.glass-terminal {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  animation: float 6s ease-in-out infinite;
}
.glass-terminal:hover {
  transform: rotateY(0deg) rotateX(0deg);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateY(-5deg) rotateX(2deg);
  }
  50% {
    transform: translateY(-15px) rotateY(-3deg) rotateX(1deg);
  }
}

.term-header {
  height: 48px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.term-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  line-height: 1.8;
}
.code-comment {
  color: var(--muted);
}
.code-keyword {
  color: var(--amber);
  font-weight: 600;
}
.code-string {
  color: var(--green);
}
.code-func {
  color: #0284c7;
}
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--amber);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Tech Stack Banner ── */
.stack-banner {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.3);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stack-title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.stack-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s;
  flex-wrap: wrap;
  justify-content: center;
}
.stack-logos:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.stack-item {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Bento Box Features ── */
.bento-section {
  position: relative;
  z-index: 10;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 20px;
}
.bento-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.2);
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    rgba(217, 119, 6, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card:hover::before {
  opacity: 1;
}

.bento-icon {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  color: var(--amber);
}
.bento-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.bento-text {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.bento-large {
  grid-column: span 2;
}

/* ── How it Works Workflow ── */
.workflow {
  position: relative;
  z-index: 10;
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.4) 50%,
    transparent
  );
}
.step-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.step-container::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.05);
  z-index: 2;
  flex-shrink: 0;
}
.step-content {
  background: var(--surface2);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.step-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Massive CTA ── */
.cta-section {
  position: relative;
  z-index: 10;
  padding: 120px 40px;
  text-align: center;
}
.cta-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  padding: 80px 40px;
  box-shadow:
    0 40px 100px rgba(217, 119, 6, 0.08),
    inset 0 2px 0 rgba(255, 255, 255, 1);
}
.cta-card h2 {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text);
}
.cta-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.4);
}
.footer-logo {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}
.footer-logo span {
  color: var(--amber);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .tagline {
    margin: 0 auto 40px;
  }
  .hero-visual {
    height: 350px;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-large {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 16px;
  }
  .logo {
    font-size: 15px;
  }
  .nav-pills .npill:not(:last-child) {
    display: none;
  } /* Hide all but auth button on mobile */
  .hero {
    padding: 100px 16px 40px;
    gap: 24px;
  }
  .hero-visual {
    display: none;
  }
  .tagline {
    margin-bottom: 32px;
  }
  .bento-section {
    padding: 60px 16px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-large {
    grid-column: span 1;
  }
  .bento-card {
    padding: 24px;
  }
  .workflow {
    padding: 60px 16px;
  }
  .step {
    flex-direction: column;
    gap: 16px;
  }
  .step-container::before {
    left: 32px;
  }
  .step-content {
    padding: 24px;
  }
  .cta-section {
    padding: 60px 16px;
  }
  .cta-card {
    padding: 40px 20px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 20px;
  }
}
