/* Grbit product site
   Design language: Apple-native minimal. System font stack, system-blue accent,
   auto light/dark via prefers-color-scheme.
   Radius system: cards 20px, buttons pill, device bezel 56px. */

:root {
  --bg: #f4f6fa;
  --bg-card: #ffffff;
  --bg-tint: #e8eef7;
  --text: #16191f;
  --text-2: #59616e;
  --hairline: rgba(22, 25, 31, 0.10);
  --accent: #0a63d0;
  --accent-text: #ffffff;
  --bezel: #10131a;
  --shadow-card: 0 1px 2px rgba(22, 25, 31, 0.05), 0 12px 32px rgba(30, 60, 110, 0.10);
  --shadow-device: 0 24px 64px rgba(20, 45, 90, 0.22);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-card: #151a23;
    --bg-tint: #131926;
    --text: #f2f4f8;
    --text-2: #9aa4b4;
    --hairline: rgba(242, 244, 248, 0.12);
    --accent: #3ea0ff;
    --accent-text: #071018;
    --bezel: #1c212c;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-device: 0 24px 64px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { filter: brightness(1.07); }

.btn-quiet {
  color: var(--text);
  border: 1px solid var(--hairline);
  background: transparent;
}
.btn-quiet:hover { background: var(--bg-tint); }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.16rem;
  color: var(--text-2);
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-visual { animation: rise 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Device frame ---------- */

.device {
  width: min(320px, 78vw);
  margin: 0 auto;
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 56px;
  padding: 11px;
  box-shadow: var(--shadow-device);
}
.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 46px;
}
.device-sm { width: min(250px, 70vw); border-radius: 44px; padding: 9px; }
.device-sm img { border-radius: 36px; }

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head {
  max-width: 44rem;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 1.08rem;
  color: var(--text-2);
}

/* Ownership: hairline-top fact columns, no cards */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 8px;
}
.fact { border-top: 1px solid var(--hairline); padding-top: 20px; }
.fact h3 { font-size: 1.02rem; font-weight: 650; margin-bottom: 8px; }
.fact p { font-size: 0.96rem; color: var(--text-2); }

/* ---------- Feature bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}

.cell {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.cell h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
.cell p { font-size: 0.94rem; color: var(--text-2); }
.cell .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: auto;
}
.cell .icon svg { width: 100%; height: 100%; }

.cell-shot {
  grid-row: span 2;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding-top: 34px;
  background: var(--bg-tint);
}
.cell-shot .cell-caption h3 { margin-bottom: 6px; }

.cell-wide { grid-column: span 2; }

.cell-globe {
  border: none;
  min-height: 210px;
  background-color: #0a0e16;
  background-image:
    linear-gradient(to top, rgba(5, 8, 14, 0.90) 22%, rgba(5, 8, 14, 0.28) 72%),
    url("img/globe-dark.jpg");
  background-size: cover;
  background-position: center 68%;
}
.cell-globe h3 { color: #f2f4f8; }
.cell-globe p { color: rgba(242, 244, 248, 0.78); }
.cell-globe .icon { color: #7cbcff; }

/* ---------- Privacy strip ---------- */

.privacy-points { list-style: none; display: grid; gap: 16px; margin: 26px 0 30px; }
.privacy-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text-2);
}
.privacy-points .icon {
  flex: none;
  width: 21px;
  height: 21px;
  color: var(--accent);
  margin-top: 2px;
}
.privacy-points .icon svg { width: 100%; height: 100%; }
.privacy-points strong { color: var(--text); font-weight: 650; }

/* ---------- Contact band ---------- */

.band {
  background: var(--bg-tint);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  padding: 72px 0;
}
.band h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.band p { color: var(--text-2); margin-bottom: 28px; }

/* ---------- Footer ---------- */

footer { padding: 48px 0 64px; }
.foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-note {
  max-width: 30rem;
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 12px;
}
.foot-links { display: grid; gap: 10px; font-size: 0.94rem; }
.foot-links a { color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  color: var(--text-2);
}

/* ---------- Document pages (privacy / terms / support) ---------- */

.doc { padding: 72px 0 96px; }
.doc-head { margin-bottom: 44px; }
.doc-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.doc-head .updated { color: var(--text-2); font-size: 0.95rem; }

.doc-body { max-width: 68ch; }
.doc-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}
.doc-body p { margin-bottom: 14px; color: var(--text); }
.doc-body ul { margin: 0 0 14px 1.2em; }
.doc-body li { margin-bottom: 8px; }
.doc-body .summary {
  background: var(--bg-tint);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 24px;
  color: var(--text);
  margin-bottom: 8px;
}

/* FAQ */
.faq { max-width: 68ch; display: grid; gap: 8px; }
.faq details {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-2);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--text-2); max-width: 60ch; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  max-width: 34rem;
  margin-bottom: 56px;
}
.contact-card .icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.contact-card .icon svg { width: 100%; height: 100%; }
.contact-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.contact-card p { font-size: 0.95rem; color: var(--text-2); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .lede { max-width: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-shot { grid-row: span 2; }
  .cell-wide { grid-column: auto; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  section { padding: 64px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.88rem; }
  .bento { grid-template-columns: 1fr; }
  .cell-shot { grid-row: auto; }
  .foot { flex-direction: column; }
}
