/* ironwave.app. No external fonts, scripts or trackers: everything is served
   from this site. Colours follow the app (apps/desktop/src/index.css) and the
   shield logo's blue. */

:root {
  color-scheme: dark;
  --bg: #111318;
  --bg-2: #15181e;
  --surface: #1b1e25;
  --elevated: #23272f;
  --border: #2d323c;
  --fg: #eef0f4;
  --muted: #a3abb9;
  --dim: #7c8596;
  --cyan: #6aa8ff;   /* accent, from the logo's wave */
  --sky: #8ab8ff;
  --accent: #3f7fe8;
  --speaking: #34d399;
  --danger: #f2555a;
  --radius: 14px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
code { font-family: var(--mono); font-size: .9em; background: var(--elevated); border: 1px solid var(--border); border-radius: 6px; padding: .05em .35em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: auto; }
.brand:hover { color: var(--fg); }
.wave { background: linear-gradient(90deg, #9fdcf5, #5b95f7 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary { color: #fff; background: linear-gradient(135deg, #4f8ff7, #2b5fd6); }
.nav a.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #64a0ff, #3a6fe6); }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--fg); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--fg); background: var(--elevated); border-color: #3a404c; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, #4f8ff7, #2b5fd6);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 30px -10px rgba(76, 141, 246, .55);
}
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #64a0ff, #3a6fe6); border-color: transparent; transform: translateY(-1px); }
.btn-small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn-sub { display: block; font-size: .78rem; font-weight: 500; opacity: .75; margin-top: 2px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 22% 40%, rgba(76, 141, 246, .14), transparent 70%),
    radial-gradient(520px 360px at 78% 30%, rgba(110, 130, 170, .12), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--cyan); background: rgba(76, 141, 246, .08); border: 1px solid rgba(76, 141, 246, .25); padding: 5px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--speaking); box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 18px; font-weight: 800; }
.hero .lede { font-size: 1.18rem; color: var(--muted); max-width: 36rem; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 16px; font-size: .88rem; color: var(--dim); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
}

/* the app mock-up in the hero */
.mock {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #16181e; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  display: grid; grid-template-columns: 60px 170px 1fr; height: 400px;
  font-size: 13px; user-select: none;
}
.mock-rail { background: #0f1115; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; }
.mock-rail .hub { width: 44px; height: 44px; border-radius: 12px; background: #1d2129; border: 1px solid var(--border); display: grid; place-items: center; position: relative; }
.mock-rail .hub img { width: 28px; }
.mock-rail .hub::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--speaking); border: 2px solid #0f1115; }
.mock-rail .sep { width: 26px; height: 1px; background: var(--border); }
.mock-rail .c { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.mock-rail .c.on { border-radius: 12px; }
.mock-side { background: #181b21; border-right: 1px solid #23262e; padding: 12px 10px; overflow: hidden; }
.mock-side .title { font-weight: 700; font-size: 14px; }
.mock-side .sub { font-size: 11px; color: var(--dim); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.mock-side .sub img { width: 11px; }
.mock-side .group { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; margin: 12px 4px 6px; }
.mock-side .ch { color: var(--muted); padding: 4px 6px; border-radius: 6px; display: flex; gap: 6px; align-items: center; }
.mock-side .ch.active { background: #252932; color: var(--fg); }
.mock-side .ch svg { width: 13px; height: 13px; opacity: .8; }
.mock-side .member { display: flex; align-items: center; gap: 7px; padding: 3px 6px 3px 22px; color: var(--muted); }
.mock .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; box-shadow: 0 0 0 2px transparent; }
.mock-side .member .av { width: 20px; height: 20px; }
.mock-side .member.talk .av { animation: talk 4.5s infinite; }
.mock-side .member.talk-2 .av { animation: talk 4.5s infinite 1.5s; }
.mock-side .member.talk-3 .av { animation: talk 4.5s infinite 3s; }
.mock-side .member .live { margin-left: auto; font-size: 8.5px; font-weight: 800; background: var(--danger); color: #fff; padding: 1px 4px; border-radius: 4px; }
@keyframes talk {
  0%, 30% { box-shadow: 0 0 0 2px var(--speaking); }
  34%, 100% { box-shadow: 0 0 0 2px transparent; }
}
.mock-main { display: flex; flex-direction: column; min-width: 0; }
.mock-top { height: 42px; border-bottom: 1px solid #23262e; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 600; }
.mock-top .hash { color: var(--dim); }
.mock-top .e2ee { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; color: var(--speaking); font-size: 11px; font-weight: 600; }
.mock-top .e2ee svg { width: 12px; height: 12px; }
.mock-stage { margin: 12px 14px 4px; border-radius: 10px; aspect-ratio: 16 / 7; position: relative; overflow: hidden;
  background:
    radial-gradient(120px 60px at 70% 70%, rgba(250, 204, 21, .35), transparent 70%),
    radial-gradient(160px 80px at 25% 35%, rgba(76, 141, 246, .35), transparent 70%),
    linear-gradient(160deg, #1c3a52, #2b2050 55%, #4a2531);
}
.mock-stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(transparent, rgba(0, 0, 0, .35)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 28px); clip-path: polygon(0 40%, 15% 20%, 32% 55%, 50% 15%, 68% 45%, 84% 10%, 100% 35%, 100% 100%, 0 100%); }
.mock-stage .tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 600; background: rgba(0, 0, 0, .55); padding: 2px 7px; border-radius: 5px; }
.mock-stage .q { position: absolute; right: 8px; top: 8px; font-size: 9.5px; font-weight: 700; background: var(--danger); padding: 2px 6px; border-radius: 5px; color: #fff; }
.mock-msgs { padding: 6px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.mock-msg { display: flex; gap: 9px; }
.mock-msg .who { font-weight: 600; font-size: 12px; display: flex; gap: 6px; align-items: baseline; }
.mock-msg .who small { color: var(--dim); font-weight: 400; font-size: 10px; }
.mock-msg .who svg { width: 10px; height: 10px; color: var(--speaking); align-self: center; }
.mock-msg p { margin: 0; color: #cfd4dd; font-size: 12px; line-height: 1.4; }
.mock-input { margin: 0 14px 12px; border-radius: 8px; background: #20242c; color: var(--dim); padding: 8px 10px; font-size: 12px; }

@media (max-width: 560px) {
  .mock { grid-template-columns: 48px 1fr; height: 360px; }
  .mock-side { display: none; }
  .mock-rail .hub { width: 36px; height: 36px; }
  .mock-rail .hub img { width: 26px; }
  .mock-rail .c { width: 32px; height: 32px; }
}

/* ---------- trust strip ---------- */

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; }
.strip li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.strip svg { width: 18px; height: 18px; color: var(--cyan); }

/* ---------- sections ---------- */

section { padding: 96px 0; }
.section-head { max-width: 46rem; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker, .section-head .kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(76, 141, 246, .1); color: var(--cyan); border: 1px solid rgba(76, 141, 246, .2); }
.feature .icon svg { width: 22px; height: 22px; }

/* privacy split */
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.checks li strong { display: block; }
.checks li span { color: var(--muted); font-size: .96rem; }
.checks .yes svg { color: var(--speaking); }
.checks .no svg { color: var(--dim); }
.ledger { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ledger h3 { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--border); font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.ledger h3 svg { width: 18px; height: 18px; }
.ledger ul { margin: 0; padding: 14px 20px 18px 40px; color: var(--muted); }
.ledger li { margin: 6px 0; }
.ledger + .ledger { margin-top: 16px; }
.ledger.sees h3 svg { color: var(--dim); }
.ledger.never h3 svg { color: var(--speaking); }

/* screenshots */
.shots { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: #16181e; }
.shot.fade img { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); border-bottom: 0; border-radius: 12px 12px 0 0; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { color: var(--fg); }

/* hubs */
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .hub-cards { grid-template-columns: 1fr; } }
.hub-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.hub-card .head { display: flex; gap: 14px; align-items: center; }
.hub-card .head .logo { width: 52px; height: 52px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--border); display: grid; place-items: center; color: var(--cyan); flex: none; }
.hub-card .head .logo img { width: 32px; }
.hub-card .head .logo svg { width: 26px; height: 26px; }
.hub-card .addr { font-family: var(--mono); color: var(--dim); font-size: .9rem; }
.hub-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.hub-card li { margin: 4px 0; }
.hub-card .foot { margin-top: auto; padding-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(106, 168, 255, .12); color: var(--sky); border: 1px solid rgba(106, 168, 255, .28); vertical-align: middle; }
.badge.soon { background: rgba(163, 171, 185, .1); color: var(--muted); border-color: var(--border); }
.badge.live { background: rgba(52, 211, 153, .12); color: var(--speaking); border-color: rgba(52, 211, 153, .3); }

/* final call to action */
.cta-band { text-align: center; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 50% 60%, rgba(76, 141, 246, .13), transparent 70%); }
.cta-band img { width: 88px; margin: 0 auto 22px; filter: drop-shadow(0 10px 30px rgba(76, 141, 246, .35)); }
.cta-band p { color: var(--muted); font-size: 1.1rem; margin: 0 auto 28px; max-width: 34rem; }
.cta-band .cta { justify-content: center; }

/* FAQ */
.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- download page ---------- */

.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 12px; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 44rem; }
.platforms { display: grid; gap: 20px; }
.platform { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center; padding: 26px; }
.platform .os { width: 64px; height: 64px; border-radius: 16px; background: var(--elevated); border: 1px solid var(--border); display: grid; place-items: center; color: var(--fg); }
.platform .os svg { width: 30px; height: 30px; }
.platform h2 { font-size: 1.35rem; margin: 0 0 4px; }
.platform p { margin: 0; color: var(--muted); }
.platform .actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 240px; }
.platform .actions .btn { justify-content: flex-start; }
.platform .meta { font-size: .85rem; color: var(--dim); margin-top: 6px; }
@media (max-width: 760px) {
  .platform { grid-template-columns: 1fr; }
  .platform .actions { min-width: 0; }
}
.small-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .small-grid { grid-template-columns: 1fr; } }
.small-grid .card h3 { display: flex; gap: 10px; align-items: center; }
.small-grid .card h3 svg { width: 20px; height: 20px; }
.callout { border-left: 3px solid var(--cyan); background: rgba(76, 141, 246, .06); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--muted); margin: 24px 0 0; }

/* ---------- text pages (privacy, guidelines) ---------- */

.doc { max-width: 46rem; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
.doc p, .doc li { color: #ccd2dc; overflow-wrap: anywhere; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin: .4rem 0; }
.doc .placeholder { background: rgba(250, 204, 21, .14); color: #fde68a; border-radius: 4px; padding: 0 3px; }
.doc .source { margin-top: 3rem; font-size: .9rem; color: var(--dim); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg-2); color: var(--dim); font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.site-footer h4 { color: var(--fg); font-size: .9rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .brand, .site-footer .brand:hover { color: var(--fg); }
.site-footer .about p { margin: 12px 0 0; max-width: 26rem; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* 404 */
.notfound { text-align: center; padding: 120px 20px; }
.notfound img { width: 96px; margin: 0 auto 24px; opacity: .9; }
.notfound p { color: var(--muted); }
