/* EllieCode — marketing site styles.
   Dark, quiet, terminal-adjacent. One accent (leaf green) and one spark (gold). */

:root {
  --ink: #070a10;
  --ink-2: #0b1018;
  --panel: #0e141d;
  --panel-2: #121b26;
  --line: #1c2735;
  --line-soft: #16202c;
  --text: #e9eef6;
  --muted: #94a4b8;
  --muted-2: #6b7c91;
  --leaf: #46e08a;
  --leaf-dim: #1f7d4c;
  --gold: #f5c04a;
  --blue: #6cb8ff;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(720px 380px at 12% -8%, rgba(70, 224, 138, 0.12), transparent 70%),
    radial-gradient(680px 340px at 88% 4%, rgba(245, 192, 74, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0, transparent 22%);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(18, 27, 38, 0.6);
  padding: 7px 12px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(70, 224, 138, 0.16);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 16, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand .mark { margin-right: 9px; }

.brand .mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.brand span.dim { color: var(--muted-2); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--muted);
}

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

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--leaf);
  color: #04130b;
  border-color: var(--leaf);
  box-shadow: 0 10px 30px -14px rgba(70, 224, 138, 0.7);
}

.btn-primary:hover { background: #5cf09b; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #2a3a4d; }

.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 34px; }
.hero-grid { max-width: 820px; }

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.5rem, 6.1vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 660;
}

.hero h1 .accent {
  background: linear-gradient(96deg, var(--leaf) 8%, #a8f7c8 46%, var(--gold) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 620px;
}

/* ---------- composer ---------- */

.composer {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.94), rgba(11, 16, 24, 0.94));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.composer textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  padding: 6px 6px 0;
}

.composer textarea::placeholder { color: var(--muted-2); }
.composer textarea:focus { outline: none; }

.composer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 2px;
  flex-wrap: wrap;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover { color: var(--text); border-color: #31445a; background: rgba(255, 255, 255, 0.05); }

.composer-hint {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.composer-hint span { display: inline-flex; align-items: center; gap: 6px; }
.composer-hint .tick { color: var(--leaf); }

/* ---------- terminal demo ---------- */

.section { padding: 64px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 34px; }

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -0.028em;
  line-height: 1.14;
  margin: 14px 0 12px;
  font-weight: 640;
}

.section p.sub { color: var(--muted); margin: 0; max-width: 590px; }

.term {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0c121a, #080d14);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a3746; display: block; }
.dots i:nth-child(1) { background: #3a2a2a; }
.dots i:nth-child(2) { background: #3a352a; }
.dots i:nth-child(3) { background: #24382c; }

.term-title { color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }
.term-body { padding: 18px 18px 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.85; }

.line { display: flex; gap: 10px; color: var(--muted); }
.line .tag { color: var(--muted-2); flex: none; }
.line.ok .tag { color: var(--leaf); }
.line.warn .tag { color: var(--gold); }
.line.info .tag { color: var(--blue); }
.line b { color: var(--text); font-weight: 550; }
.line .add { color: var(--leaf); }
.line .del { color: #ff8f8f; }
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--leaf);
  vertical-align: -2px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.7), rgba(11, 16, 24, 0.6));
  padding: 22px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover { border-color: #2a3b4f; transform: translateY(-2px); }

.card .ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(70, 224, 138, 0.08);
  color: var(--leaf);
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 13px;
}

.card h3 { margin: 0 0 7px; font-size: 15.5px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card code { font-family: var(--mono); font-size: 12.5px; color: var(--gold); }

/* ---------- output frame ---------- */

.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0f16;
  box-shadow: var(--shadow);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.frame-url {
  flex: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  background: #0d131b;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 4px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  background: #fff;
}

/* ---------- steps ---------- */

.steps { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--leaf);
  padding-top: 3px;
}
.step h3 { margin: 0 0 5px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; align-items: start; }

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.62), rgba(10, 15, 22, 0.7));
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan.featured {
  border-color: rgba(70, 224, 138, 0.4);
  background: linear-gradient(180deg, rgba(70, 224, 138, 0.07), rgba(10, 15, 22, 0.8));
  box-shadow: 0 0 0 1px rgba(70, 224, 138, 0.1) inset, var(--shadow);
}

.plan .name { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.plan .price { font-size: 34px; letter-spacing: -0.03em; font-weight: 640; line-height: 1; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 450; letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--leaf); flex: none; font-size: 12px; padding-top: 3px; }
.plan .btn { width: 100%; }
.plan .note { font-size: 12px; color: var(--muted-2); }

.waitlist { display: flex; gap: 8px; }
.waitlist input {
  flex: 1;
  min-width: 0;
  background: #0a1017;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: var(--text);
  font-size: 13.5px;
}
.waitlist input:focus { outline: none; border-color: var(--leaf-dim); }
.waitlist-msg { font-size: 12.5px; color: var(--leaf); min-height: 18px; }
.waitlist-msg.err { color: #ff9b9b; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-size: 15px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 17px;
}
.faq details[open] summary::after { content: "−"; color: var(--leaf); }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: 14.2px; max-width: 720px; }

/* ---------- cta ---------- */

.cta-band {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(70, 224, 138, 0.14), transparent 70%),
    linear-gradient(180deg, #0d141d, #080d13);
  padding: 44px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.026em; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 46px;
  margin-top: 40px;
  color: var(--muted-2);
  font-size: 13px;
}
.foot-inner { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding-top: 54px; }
  .frame iframe { height: 380px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .nav-cta .btn-ghost { display: none; }
  .composer-row { align-items: stretch; }
  .composer-row .btn-primary { width: 100%; }
  .cta-band { padding: 30px 22px; }
  .plan .price { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
