/* Plan section 38: the public website theme (unasynq.com). Content comes from
   the admin; this file is the look. Dark, calm, brand blue + teal. */
:root {
  --bg: #0b1020;
  --bg-2: #0f1730;
  --surface: #141d34;
  --surface-2: #1a2543;
  --line: rgba(130, 160, 220, 0.16);
  --text: #e8edf7;
  --muted: #a4b3cb;
  --teal: #22b8cc;
  --teal-2: #18a0b4;
  --blue: #3b6fe0;
  --blue-2: #2f56b8;
  --radius: 16px;
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(34, 184, 204, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(59, 111, 224, 0.16), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--teal); color: #04232a; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Preview strip (admin) */
.preview-bar { background: #b45309; color: #fff; text-align: center; font-size: 14px; padding: 8px 12px; font-weight: 600; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(11, 16, 32, 0.82); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(34, 184, 204, 0.14); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; box-shadow: 0 8px 24px rgba(34, 184, 204, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(34, 184, 204, 0.35); }
.btn-outline { border-color: rgba(34, 184, 204, 0.6); color: var(--text); background: rgba(34, 184, 204, 0.06); }
.btn-outline:hover { background: rgba(34, 184, 204, 0.14); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions.center { justify-content: center; margin-top: 28px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero-plain { padding: 56px 0 24px; }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-bottom: 26px; }
.hero-media img { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); border: 1px solid var(--line); }
.hero-art { aspect-ratio: 1; max-width: 460px; margin-inline: auto; }
.hero-art svg { width: 100%; height: 100%; }
.ring { transform-origin: 210px 210px; animation: spin 28s linear infinite; }
.ring.r2 { animation-duration: 40s; animation-direction: reverse; }
.ring.r3 { animation-duration: 56s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.sec { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.sec-alt { background: linear-gradient(180deg, rgba(20, 29, 52, 0.55), rgba(20, 29, 52, 0.15)); }
.sec-title { max-width: 30ch; }
.sec-in { display: grid; gap: 36px; align-items: center; }
.sec-media .sec-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sec-media.media-left .sec-figure { order: -1; }
.sec-figure { margin: 0; }
.sec-figure img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.prose { max-width: 68ch; color: var(--text); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--teal); background: rgba(34, 184, 204, 0.06); border-radius: 0 12px 12px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.prose.intro { margin-bottom: 28px; }
.prose.small { font-size: 15px; }
.prose.small p { margin-bottom: 0.6em; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: rgba(34, 184, 204, 0.45); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal-2), var(--blue-2)); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }

/* Embeds (experience / video / custom code) */
.embed { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.embed-ratio { aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.sec-embed .intro { margin-bottom: 20px; }

/* CTA band */
.cta { padding: clamp(40px, 6vw, 80px) 0; }
.cta-in { background: linear-gradient(135deg, rgba(34, 184, 204, 0.18), rgba(59, 111, 224, 0.18)); border: 1px solid rgba(34, 184, 204, 0.35); border-radius: 24px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.cta-in .prose { margin-inline: auto; }
.cta-in .actions { justify-content: center; margin-top: 18px; }

/* Footer */
.ftr { border-top: 1px solid var(--line); background: rgba(10, 14, 28, 0.6); padding: 48px 0 24px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ftr-brand img { width: auto; height: 28px; margin-bottom: 12px; opacity: 0.9; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: var(--muted); }
.ftr a:hover { color: var(--text); }
.social { display: flex !important; flex-wrap: wrap; gap: 14px !important; margin-top: 10px !important; }
.ftr-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; }
  .sec-media .sec-in { grid-template-columns: 1fr; }
  .sec-media.media-left .sec-figure { order: 0; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 18px; background: rgba(11, 16, 32, 0.98); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { display: block; padding: 12px 14px; font-size: 17px; }
  .nav-actions { flex-direction: column; }
  .nav-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 28px; }
  .ftr-in { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

/* ---- Home v2 (Paul's mockup, 2026-10-29) ---- */
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand-line { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.brand:hover { text-decoration: none; }
h1 .hl { color: var(--teal); }
.btn-link { padding: 4px 0; color: var(--teal); font-weight: 700; border: 0; background: none; }
.btn-link::after { content: " →"; }
.btn-link:hover { text-decoration: underline; transform: none; }
.actions.right { justify-content: flex-end; }
.sec-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; border-radius: 12px; background: rgba(34, 184, 204, 0.12); border: 1px solid rgba(34, 184, 204, 0.35); font-size: 20px; vertical-align: middle; }

/* Feature strip: one row of icon + title + line */
.sec-strip { padding: clamp(24px, 4vw, 40px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(20, 29, 52, 0.35); }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 28px; }
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item + .strip-item { border-left: 1px solid var(--line); padding-left: 24px; }
.strip-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(34, 184, 204, 0.12); border: 1px solid rgba(34, 184, 204, 0.35); }
.strip-item h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin: 4px 0 4px; }
.strip-item .prose p { margin: 0; font-size: 14px; }

/* Steps: numbered circles in a row */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.step + .step { border-left: 1px solid var(--line); padding-left: 16px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal-2), var(--blue-2)); margin-bottom: 10px; }
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step .prose p { font-size: 14px; margin: 0; }

/* Picture tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.tile { display: block; color: var(--text); text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); border-color: rgba(34, 184, 204, 0.5); text-decoration: none; }
.tile img, .tile-ph { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; background: linear-gradient(135deg, rgba(34, 184, 204, 0.25), rgba(59, 111, 224, 0.25)); }
.tile-label { display: block; padding: 10px 12px 12px; font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Half rows: two panels side by side */
.row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.row-half.row-single { grid-template-columns: 1fr; }
.half-cell { min-width: 0; }
.half-cell > section, .half-cell > .cta { height: 100%; margin: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: rgba(20, 29, 52, 0.45); }
.half-cell > .sec.sec-features.sec-cards { background: rgba(20, 29, 52, 0.45); }
.half-cell .sec-title { font-size: 1.35rem; }
.half-cell .cta-in { padding: 0; border: 0; background: none; text-align: left; }
.half-cell .cta-in .actions { justify-content: flex-start; }
.half-cell .sec-in { gap: 20px; }
@media (max-width: 900px) { .row-half { grid-template-columns: 1fr; } .strip-item + .strip-item, .step + .step { border-left: 0; padding-left: 0; } }

/* Public player page */
.plays { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.play { display: block; color: var(--text); text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.play:hover { transform: translateY(-2px); border-color: rgba(34, 184, 204, 0.5); text-decoration: none; }
.play-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(34, 184, 204, 0.25), rgba(59, 111, 224, 0.25)); }
.play-media img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 16, 32, 0.75); border: 2px solid rgba(255, 255, 255, 0.8); color: #fff; font-size: 20px; padding-left: 4px; }
.play-body { padding: 14px 16px 16px; }
.play-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.play-body p { margin: 0; color: var(--muted); font-size: 14px; }
/* Inside a half panel: three tiles per row, four steps in a row */
.half-cell .tiles { grid-template-columns: repeat(3, 1fr); }
.half-cell .steps { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.half-cell .step + .step { padding-left: 10px; }
.half-cell .step h3 { font-size: 0.92rem; }
@media (max-width: 1100px) { .half-cell .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .half-cell .tiles { grid-template-columns: repeat(2, 1fr); } .tiles { grid-template-columns: repeat(2, 1fr); } }

/* Anchor links land below the sticky header */
.sec, .cta, .half-cell > section { scroll-margin-top: 92px; }

/* ---- Home v3 polish (2026-10-29): denser, bigger artwork, line icons ---- */
h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem); font-weight: 760; }
.eyebrow { font-size: 12px; margin-bottom: 10px; }
.hero { padding: clamp(28px, 4.5vw, 60px) 0 clamp(24px, 4vw, 48px); }
.hero-in { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 28px; }
.lede { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem); max-width: 54ch; margin-bottom: 20px; }
.hero .actions .btn-lg { padding: 12px 20px; font-size: 16px; }
.hero-media img {
  border: 0; border-radius: 0; box-shadow: none; width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 58%, transparent 100%);
}
.hero-with-media { position: relative; overflow: hidden; }
.hero-with-media::after { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%; background: radial-gradient(closest-side, rgba(34, 184, 204, 0.14), transparent 70%); pointer-events: none; }
.sec-strip { padding: 18px 0; }
.strip { gap: 14px 22px; }
.strip-item + .strip-item { padding-left: 20px; }
.strip-icon { width: 42px; height: 42px; color: var(--teal); background: rgba(34, 184, 204, 0.08); }
.strip-icon svg, .card-icon svg, .step-n svg, .sec-icon svg { width: 58%; height: 58%; }
.strip-item h3 { font-size: 12px; margin: 2px 0 2px; }
.strip-item .prose p { font-size: 13px; line-height: 1.45; }
.row-half { gap: 16px; margin-top: 16px; }
.row-half + .row-half { margin-top: 16px; }
.row-wide-second { grid-template-columns: 0.82fr 1.18fr; }
.row-wide-first { grid-template-columns: 1.18fr 0.82fr; }
.half-cell > section, .half-cell > .cta { padding: 22px 24px; border-radius: 18px; }
.half-cell .sec-title { font-size: 1.25rem; margin-bottom: 0.35em; }
.half-cell .prose.intro { margin-bottom: 18px; }
.half-cell .prose p { font-size: 15px; }
.row-half .sec-tiles .tiles { grid-template-columns: repeat(6, 1fr); gap: 10px; }
.row-half .tile-label { font-size: 12.5px; padding: 8px 8px 10px; line-height: 1.25; }
.row-half .tile img, .row-half .tile-ph { aspect-ratio: 1 / 0.85; }
.half-cell .steps { gap: 8px; }
.step-n { width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px; }
.half-cell .step h3 { font-size: 0.9rem; line-height: 1.25; }
/* Compact icon panels (engineering / patent) */
.sec-iconed .sec-copy.iconed { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.sec-icon.big { width: 52px; height: 52px; margin: 0; border-radius: 14px; color: var(--teal); font-size: 24px; }
.sec-iconed .sec-title { font-size: 1.15rem; margin-bottom: 0.3em; }
.sec-iconed .prose p { font-size: 14px; margin-bottom: 0; }
.sec-iconed .prose strong { color: var(--text); }
.cta { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 3vw, 32px); }
.cta-in { padding: clamp(22px, 3.5vw, 36px); border-radius: 20px; }
.cta-in h2 { font-size: 1.5rem; }
.ftr { padding: 32px 0 18px; margin-top: 12px; }
@media (max-width: 1100px) { .row-half .sec-tiles .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .row-wide-second, .row-wide-first { grid-template-columns: 1fr; } .hero-in { grid-template-columns: 1fr; } .hero-media img { mask-image: none; -webkit-mask-image: none; border-radius: 16px; } }
