/* TwinBase website — the app's palette: teal #55A9A0 on warm neutrals; dark by default, light when
   the visitor's system prefers it. */
:root {
  --bg: #151310;
  --bg-2: #1c1a17;
  --surface: #23201c;
  --surface-2: #2a2722;
  --border: #322e28;
  --border-strong: #45403a;
  --text: #ece6db;
  --muted: #aba295;
  --faint: #7d7569;
  --accent: #55a9a0;
  --accent-strong: #3d8f86;
  --accent-text: #6cc1b8;
  --purple: #b46be0;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f2ec;
    --bg-2: #efede7;
    --surface: #ffffff;
    --surface-2: #f4f2ec;
    --border: #e3dfd5;
    --border-strong: #d2cdc0;
    --text: #1d1c1a;
    --muted: #5c5850;
    --faint: #8d887d;
    --accent-text: #2f7f77;
    --accent-strong: #3a8a81;
    --shadow: 0 30px 80px rgba(31, 30, 28, 0.18), 0 4px 16px rgba(31, 30, 28, 0.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, -apple-system, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, pre { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-variant-ligatures: none; }
code { font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(140%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand.small img { width: 22px; height: 22px; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.gh { color: var(--muted); display: inline-flex; }
.gh:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 650; font-size: 15px; border: 1px solid transparent; transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 24px rgba(85, 169, 160, 0.28); }
.btn-primary:hover { background: #46a096; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; text-align: center; }
.glow { position: absolute; inset: -20% -10% auto; height: 760px; background:
    radial-gradient(40% 50% at 30% 30%, rgba(85, 169, 160, 0.28), transparent 70%),
    radial-gradient(35% 45% at 72% 22%, rgba(180, 107, 224, 0.2), transparent 70%); filter: blur(10px); pointer-events: none; }
.hero-inner { position: relative; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.2px; }
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -2.4px; margin: 22px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(100deg, #6cc1b8 0%, #55a9a0 40%, #b46be0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 18.5px; line-height: 1.65; }
.lede strong { color: var(--text); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin: 30px 0 52px; flex-wrap: wrap; }
.window { max-width: 1100px; margin: 0 auto; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ec6a5f; }
.window-bar span:nth-child(2) { background: #e0b04f; }
.window-bar span:nth-child(3) { background: #6cc485; }
.window img { width: 100%; height: auto; }

/* database strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); margin-top: 56px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 22px 0; color: var(--faint); font-weight: 600; font-size: 14px; letter-spacing: 0.2px; }

/* sections */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.kicker { display: inline-block; color: var(--accent-text); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 12px; }
.kicker-purple { color: var(--purple); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -1.1px; margin: 0 0 18px; font-weight: 800; }
h2 em { font-style: normal; color: var(--accent-text); }
.section p { color: var(--muted); font-size: 17px; }
.center { text-align: center; }
.sub { max-width: 640px; margin: 0 auto 44px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.code { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; line-height: 1.7; overflow-x: auto; color: var(--text); margin: 22px 0 0; }
.code .c { color: var(--faint); }
.shot { margin: 0; border-radius: var(--radius); border: 1px solid var(--border-strong); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.shot.wide { margin-top: 48px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.card h3 { margin: 14px 0 6px; font-size: 17px; letter-spacing: -0.2px; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; }
.ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }

.bootcamp { position: relative; }
.bootcamp::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 40% at 20% 30%, rgba(180, 107, 224, 0.12), transparent 70%); pointer-events: none; }
.badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 64px; }
.badges img { width: 78px; height: 78px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); transition: transform 0.25s; }
.badges img:hover { transform: translateY(-4px) scale(1.06); }

.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.platform { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.platform:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(85, 169, 160, 0.16); }
.platform strong { font-size: 20px; }
.platform span { color: var(--muted); font-size: 14px; }
.fine { font-size: 14px !important; color: var(--faint) !important; margin-top: 26px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .lede { font-size: 16.5px; }
  .badges img { width: 58px; height: 58px; }
}
