:root {
  --codeli-bg: #0a0a0a;
  --codeli-accent: #f59e0b;
  --codeli-beam-hot: #fff7ed;
  --codeli-muted: #888888;
  --hero-mask-x: 50%;
  --hero-mask-y: 30%;
  --hero-mask-size: 44vmin;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--codeli-bg);
  color: #fff;
}

a { color: inherit; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 48px);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: var(--codeli-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-logo { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; font-size: 0.875rem; color: var(--codeli-muted); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: #fff; }
.btn-primary {
  background: var(--codeli-accent);
  color: var(--codeli-bg);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px clamp(20px, 5vw, 48px) 80px;
  overflow: hidden;
}
.hero-beam {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-beam::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.35) 50%, var(--codeli-bg) 100%);
}
.beam-edge {
  position: absolute;
  top: 0;
  left: 50%;
  width: 55%;
  height: 38%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.45) 0%, transparent 100%);
  filter: blur(40px);
  mix-blend-mode: plus-lighter;
  z-index: 1;
}
.beam-css {
  position: absolute;
  left: 50%;
  top: -2%;
  width: 300px;
  height: 78%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 130% 40% at 50% 6%, var(--codeli-beam-hot) 0%, rgba(245, 158, 11, 0.5) 30%, transparent 72%),
    linear-gradient(180deg, rgba(255, 247, 237, 0.85) 0%, rgba(245, 158, 11, 0.3) 20%, transparent 75%);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(var(--hero-mask-size) at var(--hero-mask-x) var(--hero-mask-y), #000 14%, transparent 70%);
  mask-image: radial-gradient(var(--hero-mask-size) at var(--hero-mask-x) var(--hero-mask-y), #000 14%, transparent 70%);
}
.beam-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: overlay;
  clip-path: circle(var(--hero-mask-size) at var(--hero-mask-x) var(--hero-mask-y));
  background: radial-gradient(circle at var(--hero-mask-x) var(--hero-mask-y), rgba(255, 247, 237, 0.14) 0%, transparent 50%);
}
.beam-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.045;
  mix-blend-mode: overlay;
  filter: url(#codeli-beam-grain);
  background: #fff;
}
.hero-inner { position: relative; z-index: 10; max-width: 1120px; margin: 0 auto; }
.hero-copy { max-width: 560px; margin-bottom: 48px; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-copy p { font-size: 1.125rem; color: var(--codeli-muted); line-height: 1.6; }
.hero-mockup-wrap {
  position: relative;
  z-index: 20;
  transform: translateY(calc(var(--mockup-shift, 0) * 1px));
  will-change: transform;
}
.hero-mockup {
  width: min(960px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d0d;
  overflow: hidden;
  box-shadow: 0 -30px 80px -15px rgba(245, 158, 11, 0.4), 0 48px 100px -48px rgba(0, 0, 0, 0.9);
}
.hero-mockup::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.38) 0%, rgba(245, 158, 11, 0.06) 45%, transparent 100%);
}
.mockup-chrome {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.mockup-chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.mockup-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; position: relative; z-index: 1; }
.mockup-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-sidebar div { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.mockup-sidebar div:first-child { width: 70%; background: rgba(245, 158, 11, 0.25); }
.mockup-main { padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mockup-card { height: 88px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }

/* Sections */
.section {
  padding: 140px clamp(20px, 5vw, 96px);
  max-width: 1200px;
  margin: 0 auto;
}
.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--codeli-muted);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-lead { color: var(--codeli-muted); font-size: 1.125rem; margin-bottom: 48px; max-width: 520px; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.pack-card {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pack-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25), 0 0 24px rgba(245, 158, 11, 0.12);
}
.pack-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.pack-price { font-size: 1.5rem; font-weight: 700; color: var(--codeli-accent); margin-bottom: 12px; }
.pack-card p { font-size: 0.9rem; color: var(--codeli-muted); line-height: 1.5; }

.saas-card {
  max-width: 720px;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 55%);
}
.saas-card ul { margin: 16px 0 24px; padding-left: 1.25rem; color: var(--codeli-muted); line-height: 1.8; }

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.service-row:last-child { border-bottom: none; }
.service-row ul { margin-top: 12px; padding-left: 1.25rem; color: var(--codeli-muted); line-height: 1.7; }
.service-price { font-size: 1.25rem; font-weight: 600; color: #fff; white-space: nowrap; }

.footer {
  padding: 48px clamp(20px, 5vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--codeli-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer a { color: var(--codeli-muted); text-decoration: none; }
.footer a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .service-row { grid-template-columns: 1fr; }
}
