/* R2 Client — landing page */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-elev: #ffffff;
  --bg-code: #f7f7f8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #0a0a0a;
  --text-muted: #5a5a5a;
  --text-subtle: #8a8a8a;
  --accent: #e8590c;           /* R2 orange, cooled */
  --accent-ink: #ffffff;
  --accent-soft: #fff1e6;
  --accent-border: rgba(232, 89, 12, 0.22);
  --ok: #0d8f5a;
  --grid-line: rgba(0, 0, 0, 0.035);
  --shadow-window: 0 40px 80px -30px rgba(10, 10, 10, 0.22),
                   0 16px 36px -18px rgba(10, 10, 10, 0.14),
                   0 0 0 1px rgba(10, 10, 10, 0.06);
  --chip-bg: #f4f4f5;
  --chip-text: #18181b;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-subtle: #0f0f10;
  --bg-elev: #131315;
  --bg-code: #17171a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --accent: #ff7a2a;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(255, 122, 42, 0.12);
  --accent-border: rgba(255, 122, 42, 0.28);
  --ok: #22c55e;
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow-window: 0 50px 100px -30px rgba(0, 0, 0, 0.6),
                   0 20px 40px -20px rgba(0, 0, 0, 0.5),
                   0 0 0 1px rgba(255, 255, 255, 0.06);
  --chip-bg: #1c1c1f;
  --chip-text: #e4e4e7;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}
.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  border-radius: 22%;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  filter: drop-shadow(0 8px 20px rgba(232, 89, 12, 0.25));
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-subtle); color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg-subtle); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-subtle); }

/* ——— HERO ——— */
.hero {
  position: relative;
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--bg-elev);
  margin-bottom: 24px;
}
.eyebrow-tag {
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent);
}

h1.hero-title {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  text-wrap: pretty;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.btn-download {
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-download:hover { transform: translateY(-1px); }
.btn-download .platform-tag {
  background: color-mix(in oklab, var(--bg) 18%, transparent);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}
.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.btn-secondary-cta:hover { background: var(--bg-subtle); }

.platforms {
  font-size: 12.5px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  margin-bottom: 48px;
}

/* ——— APP WINDOW ——— */
.app-window-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 8px;
}
.app-window-wrap::before {
  content: '';
  position: absolute;
  inset: -80px -40px -40px -40px;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, var(--accent-soft), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

/* ——— LOGOS / PROVIDERS STRIP ——— */
.logos {
  padding: 72px 0 32px;
  text-align: center;
}
.logos-label {
  font-size: 12px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  font-family: 'Geist Mono', monospace;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.logo-item:hover { opacity: 1; }

/* ——— SECTIONS ——— */
section { padding: 96px 0; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto 14px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ——— FEATURES GRID ——— */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
}
.feature.big { grid-column: span 3; }
.feature.wide { grid-column: span 2; }
.feature.small { grid-column: span 2; }

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feature p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.feature-visual {
  margin-top: auto;
}

/* provider pills inside a feature */
.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.provider-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

/* file-type grid visual */
.filetype-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.filetype {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  background: var(--bg-subtle);
}
.filetype.highlight {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* transfer diagram */
.transfer-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}
.transfer-node {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text);
}
.transfer-arrow {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 8px);
  margin: 0 10px;
  position: relative;
}
.transfer-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* progress bar visual */
.progress-stack { display: flex; flex-direction: column; gap: 8px; }
.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
}
.progress-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--bg-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* ——— PROVIDERS SECTION ——— */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.provider-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--bg);
  transition: all 0.2s ease;
}
.provider-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.provider-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 18px;
  font-family: 'Geist Mono', monospace;
}
.pl-r2 { background: #ff6b1a; color: #fff; }
.pl-aws { background: #232f3e; color: #ff9900; }
.pl-minio { background: #c72e29; color: #fff; }
.pl-rustfs { background: #1c1c1f; color: #ff7a2a; border: 1px solid rgba(255, 122, 42, 0.3); }

.provider-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.provider-card .sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.provider-card .flag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-subtle);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: inline-block;
}

/* ——— DOCS / GETTING STARTED ——— */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.steps { display: flex; flex-direction: column; gap: 28px; }
.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
}
.code-tabs {
  display: flex;
  gap: 2px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.code-tab {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transform: translateY(1px);
}
.code-tab.active {
  background: var(--bg-code);
  color: var(--text);
  border-color: var(--border);
}
.code-body {
  padding: 18px 20px;
  line-height: 1.65;
  overflow-x: auto;
}
.code-body .c-comment { color: var(--text-subtle); }
.code-body .c-cmd { color: var(--text); }
.code-body .c-flag { color: var(--accent); }
.code-body .c-str { color: var(--ok); }

/* ——— CHANGELOG ——— */
.changelog {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.release {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.release-meta { padding-top: 2px; }
.release-version {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.release-date {
  font-size: 13px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
}
.release-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.release-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.release-body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.release-body ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.release-body li { padding-left: 18px; position: relative; }
.release-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--text-subtle);
  border-radius: 50%;
}

/* ——— CTA FINAL ——— */
.final-cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 50% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.final-cta-inner { position: relative; }

/* ——— FOOTER ——— */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 4px 0;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
}

/* ——— RESPONSIVE ——— */
@media (max-width: 960px) {
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature.big, .feature.wide, .feature.small { grid-column: span 2; }
  .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  .logos-row { gap: 32px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 32px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
