/* ezship.dev. Tokens first (light, then dark), then layout, then each section. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --surface: #ffffff;
  --border: #e6ddd0;
  --border-strong: #d3c6b3;
  --text: #211a14;
  --text-muted: #5f5448;
  --text-dim: #8d8172;

  --brand: #8b5a2b;
  --brand-strong: #6f4520;
  --brand-soft: rgba(139, 90, 43, 0.1);
  --on-brand: #ffffff;
  --ok: #2f8f5b;

  --code-bg: #1d1814;
  --code-bar: #2a231d;
  --code-text: #eee4d6;
  --code-dim: #8f8272;
  --syn-k: #e0a36a;
  --syn-s: #a8c98a;
  --syn-fn: #8fbcd4;
  --syn-t: #e6c07b;
  --syn-a: #c9a0dc;
  --syn-n: #f09a7a;

  --dark-bg: #1d1814;
  --dark-text: #eee4d6;
  --dark-muted: #b3a593;
  --dark-border: #3a3129;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(33, 26, 20, 0.06), 0 12px 32px rgba(33, 26, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #15110e;
    --bg-alt: #1c1713;
    --surface: #221c17;
    --border: #342b23;
    --border-strong: #4a3e33;
    --text: #f1e8dc;
    --text-muted: #bcae9c;
    --text-dim: #8a7d6d;
    --brand: #d4935a;
    --brand-strong: #e6a870;
    --brand-soft: rgba(212, 147, 90, 0.14);
    --on-brand: #1a120b;
    --ok: #5fc08a;
    --code-bg: #0f0c0a;
    --code-bar: #1a1511;
    --dark-bg: #0f0c0a;
    --dark-border: #2c241d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15110e;
  --bg-alt: #1c1713;
  --surface: #221c17;
  --border: #342b23;
  --border-strong: #4a3e33;
  --text: #f1e8dc;
  --text-muted: #bcae9c;
  --text-dim: #8a7d6d;
  --brand: #d4935a;
  --brand-strong: #e6a870;
  --brand-soft: rgba(212, 147, 90, 0.14);
  --on-brand: #1a120b;
  --ok: #5fc08a;
  --code-bg: #0f0c0a;
  --code-bar: #1a1511;
  --dark-bg: #0f0c0a;
  --dark-border: #2c241d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-strong);
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--brand-soft);
  color: var(--text);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 650;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid var(--brand);
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a,
.link-quiet {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-links a:hover,
.link-quiet:hover {
  color: var(--text);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--brand-soft), transparent 70%),
    radial-gradient(700px 380px at 0% 100%, var(--brand-soft), transparent 70%);
}
.hero-grid > *,
.how-grid > *,
.code-grid > *,
.studio-grid > * {
  min-width: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  margin-bottom: 22px;
}
.lede {
  font-size: 1.16rem;
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions.center {
  justify-content: center;
}
.fineprint {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* Terminal and code */
.terminal,
.code {
  margin: 0;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-bar,
.code figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--code-bar);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--code-dim);
}
.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4a3f35;
}
.terminal-bar em {
  font-style: normal;
  margin-left: 10px;
}
.terminal pre,
.code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
}
.terminal code,
.code code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}
.terminal .c {
  color: var(--code-dim);
}
.terminal .p {
  color: var(--syn-k);
}
.terminal .ok {
  color: #7fcf9a;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--code-text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.k {
  color: var(--syn-k);
}
.s {
  color: var(--syn-s);
}
.fn {
  color: var(--syn-fn);
}
.t {
  color: var(--syn-t);
}
.a {
  color: var(--syn-a);
}
.n {
  color: var(--syn-n);
}

/* Use cases */
.uses {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.uses .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.uses-label {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
}
.uses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uses-list li {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 104px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 18px;
}
.section-head p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.06rem;
}

/* How */
.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  overflow: hidden;
}
.tree-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--brand);
}
.tree ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.tree li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 18px;
}
.tree li.in {
  padding-left: 40px;
}
.tree li.dir {
  color: var(--text-muted);
}
.tree .d {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-align: right;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
}
.step-n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
  font-family: var(--font-display);
}
.steps h3 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
}
.steps p {
  margin: 0;
  color: var(--text-muted);
}

/* Code section */
.code-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.code-grid .section-head {
  margin-bottom: 0;
}
.code-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.code-small pre {
  font-size: 0.8rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 5px var(--brand-soft);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.35em + 5px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-2x {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* Studio mock */
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.studio-grid .section-head {
  margin-bottom: 0;
}
.studio-shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
}
.shot-tab {
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-dim);
}
.shot-tab.on {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.shot-spacer {
  flex: 1;
}
.shot-pill {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.shot-body {
  display: grid;
  grid-template-columns: 0.55fr 1.4fr 1fr;
  min-height: 300px;
}
.shot-files {
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  display: grid;
  align-content: start;
  gap: 11px;
}
.shot-files i,
.mini-rows i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: var(--border);
}
.shot-files i.on {
  background: var(--brand);
  opacity: 0.6;
}
.w70 {
  width: 70%;
}
.w50 {
  width: 50%;
}
.w60 {
  width: 60%;
}
.w40 {
  width: 40%;
}
.w55 {
  width: 55%;
}
.w65 {
  width: 65%;
}
.shot-preview {
  padding: 16px;
  background: var(--bg);
  display: grid;
  align-content: start;
  gap: 14px;
}
.mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-head b {
  width: 46%;
  height: 11px;
  border-radius: 4px;
  background: var(--text-muted);
  opacity: 0.5;
}
.mini-head span {
  margin-left: auto;
  width: 44px;
  height: 18px;
  border-radius: 6px;
  background: var(--brand-soft);
}
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-stats i {
  height: 46px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mini-rows {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mini-rows i:nth-child(2n) {
  width: 80%;
}
.shot-chat {
  border-left: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.74rem;
  line-height: 1.45;
}
.shot-chat p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
}
.shot-chat .me {
  background: var(--bg-alt);
  align-self: flex-end;
}
.shot-chat .bot {
  color: var(--text-muted);
}
.shot-chat code {
  font-size: 0.9em;
}
.shot-input {
  margin-top: auto;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

/* Trust */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section-dark .section-head p:not(.eyebrow) {
  color: var(--dark-muted);
}
.section-dark .eyebrow {
  color: #d4935a;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-border);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-list li {
  background: var(--dark-bg);
  padding: 28px;
  color: var(--dark-muted);
  font-size: 0.96rem;
}
.trust-list strong {
  display: block;
  color: var(--dark-text);
  margin-bottom: 8px;
  font-weight: 600;
}

/* CTA */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.cta-inner {
  max-width: 720px;
}
.cta h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 18px;
}
.cta p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer .brand {
  font-size: 1.1rem;
}
.footer nav {
  display: flex;
  gap: 22px;
}
.footer nav a {
  color: var(--text-muted);
}
.footer p {
  margin: 0 0 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .how-grid,
  .code-grid,
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .studio-grid .studio-shot {
    order: 2;
  }
  .cards-3,
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 72px 0;
  }
  .cards-3,
  .cards-2x,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .nav-cta .link-quiet {
    display: none;
  }
  .shot-body {
    grid-template-columns: 1fr 1fr;
  }
  .shot-files {
    display: none;
  }
  .tree .d {
    display: none;
  }
  .terminal pre,
  .code pre {
    font-size: 0.76rem;
    padding: 16px;
  }
  .footer p {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
  .btn:hover {
    transform: none;
  }
}
