/* Carbon Frost — sftp-autosync landing */

:root {
  --accent: #4a9fd8;
  --accent-dark: #3d8bc4;
  --fg: #1a1a1a;
  --muted: #666666;
  --inverse: #ffffff;
  --surface: #ffffff;
  --border: #eef0f2;
  --ink-bg: #0b1018;
  --ink-bg2: #141a22;
  --ink-elev: #1b232e;
  --ink-text: #f2f0eb;
  --ink-muted: #8b93a0;
  --ink-border: #2a3340;
  --ink-dim: #6b7380;
  --ok: #4ade80;
  --skip: #8b93a0;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --font-heading: "Geist", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-caption: "Geist Mono", ui-monospace, monospace;
  --font-data: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1200px;
  --gutter: 24px;
  --hero-cta-gap: 56px;
  --hero-overlap: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn--primary-dark {
  background: var(--fg);
  color: var(--inverse);
}

.btn--primary-light {
  background: var(--inverse);
  color: var(--fg);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.btn--ghost-light {
  background: transparent;
  color: var(--inverse);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost-light:hover {
  border-color: var(--inverse);
}

/* Hero */
.hero {
  position: relative;
  background: var(--accent);
  color: var(--inverse);
  padding: 40px var(--gutter) calc(var(--hero-cta-gap) + var(--hero-overlap));
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__pattern svg {
  width: 100%;
  height: 100%;
  color: #1a1a1a;
}

.hero__pattern use {
  fill: none;
  stroke: #1a1a1a;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--inverse);
}

.nav__mark {
  width: 28px;
  height: 28px;
  background: var(--inverse);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--inverse);
}

/* Hero copy */
.hero__copy {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-caption);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: 0.95;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 24px;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 720px;
  opacity: 0.95;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Bridge */
.bridge {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--hero-overlap) * -1);
  padding: 0 var(--gutter) 64px;
}

.bridge__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--container);
  margin-inline: auto;
}

/* Terminal card */
.terminal {
  background: var(--ink-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.terminal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink-bg2);
  border-bottom: 1px solid var(--ink-border);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--ink-muted);
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.terminal__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-border);
}

.terminal__body {
  padding: 20px;
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-text);
}

.terminal__line {
  margin: 0;
}

.terminal__line--cmd {
  color: var(--ink-text);
}

.terminal__line--watch {
  color: var(--ink-muted);
}

.terminal__line--ok {
  color: var(--ok);
}

.terminal__line--skip {
  color: var(--skip);
}

.terminal__cursor {
  color: var(--accent);
}

.terminal__footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--ink-border);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-dim);
}

/* Routes card */
.routes-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.routes-card__eyebrow {
  font-family: var(--font-caption);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.routes-card__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.routes-card__body {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

.route-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.route-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 13px;
}

.route-row__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.routes-card__meta {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Section defaults */
.section {
  padding: 80px var(--gutter);
}

.section--white {
  background: var(--surface);
}

.section__badge {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 159, 216, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.15;
}

.section__sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 48px;
  max-width: 640px;
  line-height: 1.55;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header .section__sub {
  margin-inline: auto;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step__num {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.step__cmd {
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
}

.step__body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.feature__icon {
  width: 40px;
  height: 40px;
  background: var(--fg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  color: var(--inverse);
}

.feature__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature__body {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 48px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 0 16px;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat__value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.1;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Install band */
.install {
  background: var(--accent);
  color: var(--inverse);
  padding: 80px var(--gutter);
  text-align: center;
}

.install .eyebrow {
  margin-bottom: 16px;
}

.install__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin: 0 0 40px;
  line-height: 1.1;
}

.install__cmds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 32px;
}

.install__cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  background: var(--ink-bg);
  border-radius: var(--radius-lg);
  font-family: var(--font-data);
  font-size: 14px;
  text-align: left;
  color: var(--ink-text);
}

.install__prompt {
  color: var(--ink-dim);
  flex-shrink: 0;
}

.install__text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font: inherit;
  color: inherit;
}

.install__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.install__copy:hover,
.install__copy:focus-visible {
  color: var(--ink-text);
  background: var(--ink-elev);
  outline: none;
}

.install__copy svg {
  width: 16px;
  height: 16px;
}

.install__copy .icon-check {
  display: none;
}

.install__copy.is-copied {
  color: var(--ok);
}

.install__copy.is-copied .icon-copy {
  display: none;
}

.install__copy.is-copied .icon-check {
  display: block;
}

.install__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--ink-bg);
  color: var(--ink-muted);
  padding: 24px var(--gutter);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin-inline: auto;
}

.footer__brand {
  color: var(--ink-text);
  font-weight: 500;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: var(--ink-muted);
}

.footer__links a:hover {
  color: var(--ink-text);
}

/* Responsive */
@media (max-width: 960px) {
  :root {
    --hero-cta-gap: 48px;
    --hero-overlap: 48px;
  }

  .bridge__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .stat {
    border-right: none;
    padding: 20px 16px;
  }

  .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--border);
  }

  .stat:not(:nth-child(3n)) {
    border-right: 1px solid var(--border);
  }

  .hero__pattern {
    opacity: 0.45;
  }
}

@media (max-width: 600px) {
  :root {
    --hero-cta-gap: 40px;
    --hero-overlap: 32px;
  }

  .hero__pattern {
    display: none;
  }

  .nav {
    margin-bottom: 40px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:not(:nth-child(3n)) {
    border-right: none;
  }

  .stat:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .route-row {
    grid-template-columns: 1fr;
  }
}
