/* Tidegate product site. Original styles, no third-party CSS. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-deep: #07131f;
  --ink: #0d1b2a;
  --ink-2: #3d4f63;
  --ink-3: #64768a;
  --line: #dfe6ef;
  --brand: #0a7d8f;
  --brand-2: #0C8FA3;
  --brand-ink: #ffffff;
  --accent: #2f6bff;
  --up: #11a37f;
  --down: #e5484d;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1420;
    --bg-soft: #0f1c2b;
    --bg-deep: #050d16;
    --ink: #e8eef5;
    --ink-2: #b4c2d1;
    --ink-3: #8a9bae;
    --line: #1f3043;
    --brand: #2bb3c4;
    --brand-2: #7FD3DE;
    --brand-ink: #04131a;
    --card: #0f1c2b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 12px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 1px solid transparent; line-height: 1.2; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--brand); color: var(--brand-ink) !important; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--line); color: var(--ink) !important; background: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: #07131f !important; }
.btn-light:hover { background: #e9f6f6; }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff !important; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, rgba(18,163,168,.35), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(47,107,255,.25), transparent 60%), var(--bg-deep); color: #e8eef5; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.2rem; color: #b8c7d6; max-width: 34em; }
.hero .eyebrow { color: #5fd6d4; }
.hero-art { filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero.small .wrap { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; }
.hero.small p.lead { max-width: 44em; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 36px; } }

/* Sections */
section.block { padding: 88px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } section.block { padding: 64px 0; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-2); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.product-card { display: flex; flex-direction: column; }
.product-card .more { margin-top: auto; padding-top: 12px; font-weight: 650; text-decoration: none; }
.badge { display: inline-block; font-size: .75rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; letter-spacing: .01em; }
.badge.live { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.badge.soon { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
@media (prefers-color-scheme: dark) { .badge.soon { color: #8fb0ff; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 30px; margin: 0 0 10px; color: var(--ink-2); }
ul.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a7d8f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat; }
ul.check li strong { color: var(--ink); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; margin-bottom: 14px; }
.steps { padding: 0; margin: 0; }

.cta-band { background: linear-gradient(120deg, #0b2a3a, #0e5560 55%, #0e7c86); color: #fff; border-radius: 20px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: #cfe6ea; margin: 0; max-width: 40em; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

.status-note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 10px; padding: 16px 20px; color: var(--ink-2); }
.status-note strong { color: var(--ink); }

table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 34%; color: var(--ink); font-weight: 600; }
table.spec td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

.download-grid .card { display: flex; flex-direction: column; gap: 6px; }
.download-grid .card .btn { margin-top: 14px; align-self: flex-start; }
.download-grid .os { display: flex; align-items: center; gap: 12px; }
.download-grid .os svg { width: 28px; height: 28px; color: var(--ink); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: #06111c; color: #cfe3f1; border-radius: 12px; padding: 20px 22px; overflow-x: auto; line-height: 1.55; border: 1px solid #16283a; }
.code .k { color: #5fd6d4; } .code .s { color: #f2c46d; } .code .c { color: #6f8499; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-3); }
.footer-legal p { margin: 0 0 .6em; }
.split > *, .grid > * { min-width: 0; }
.download-grid .badge { align-self: flex-start; }
.split.top { align-items: start; }
