/* DukiwiLink landing page. No framework, system fonts, one file. */

:root {
  --brand: #013861;
  --brand-700: #012a4a;
  --brand-900: #001a2f;
  --brand-500: #0b5c96;
  --sky: #4fa3e0;
  --sky-200: #a9d4f5;
  --ok: #2fbf63;
  --warn: #f0a52a;
  --bad: #e5484d;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --tint: #eaf1f8;
  --ink: #13202b;
  --muted: #566676;
  --line: #dbe3ea;
  --focus: #4fa3e0;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(1, 30, 55, .06), 0 8px 24px rgba(1, 30, 55, .08);
  --shadow-lg: 0 30px 60px -20px rgba(0, 12, 26, .55);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Ubuntu Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1620;
    --surface: #111f2b;
    --tint: #0e1b26;
    --ink: #e6edf3;
    --muted: #9db0c0;
    --line: #22364a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 80px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.muted { opacity: .7; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--brand); border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 19px; height: 19px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, #5bb0ec, #2f8fd8); color: #00172b; box-shadow: 0 8px 24px -8px rgba(47, 143, 216, .8); }
.btn-primary:hover { background: linear-gradient(180deg, #74bdf0, #3d9be0); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-500); }
@media (prefers-color-scheme: dark) { .btn-outline:hover { border-color: var(--sky); color: var(--sky); } }

/* Status indicator, kept from the original page */
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2.4s ease-out infinite; }
.status[data-state="checking"] .status-dot { background: var(--warn); }
.status[data-state="offline"] .status-dot { background: var(--bad); }
.status[data-state="offline"] .status-dot::after { animation: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .status-dot::after { animation: none; } }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(1, 56, 97, .82); color: #e3ecf4; -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background-color .3s; }
.topbar.is-scrolled { background: rgba(1, 42, 74, .94); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 30px; }
.brand-name { font-weight: 300; font-size: 1.45rem; letter-spacing: .02em; color: #fff; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 10px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 8px; color: #d5e2ee; text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .lang { font-size: .85rem; font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .25); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: rgba(1, 42, 74, .98); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav .lang { align-self: flex-start; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 80% 10%, #0b5c96 0%, #013861 45%, #001a2f 100%); }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0, 26, 47, .95) 0%, rgba(1, 56, 97, .75) 50%, rgba(1, 56, 97, .35) 100%), linear-gradient(0deg, rgba(0, 26, 47, .9), transparent 35%); }
.network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: min(860px, calc(100vh - 66px)); padding-top: 72px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--sky-200); font-size: .95rem; font-weight: 600; }
.eyebrow .flag { flex: none; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.04; }
.hero h1 .accent { display: block; background: linear-gradient(90deg, #a9d4f5, #4fa3e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #c9d9e7; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; color: #c9d9e7; font-size: .95rem; }
.hero-note .status { color: #fff; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .12); }
.hero-note .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.hero-small { margin-top: 12px; color: #9fb8cc; font-size: .9rem; }

/* App window drawn in HTML: the Agent as it looks */
.hero-visual { position: relative; }
.mock { overflow: hidden; border-radius: 12px; background: #f3f5f8; color: #1d2a36; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12); transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-visual:hover .mock { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.mock-menu { display: flex; align-items: center; gap: 18px; padding: 7px 14px; background: #013861; color: #cfdbe6; }
.mock-menu span:nth-child(3) { padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); color: #fff; }
.mock-menu img { width: 62px; height: auto; margin-left: auto; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: linear-gradient(100deg, #013861 55%, #0b5c96 75%, #1f6fa8 100%); color: #fff; }
.mock-app { display: flex; align-items: center; gap: 10px; }
.mock-app .icon { width: 26px; height: 26px; }
.mock-app strong { display: block; font-size: 15px; font-weight: 500; }
.mock-app small { display: block; color: #b9cde0; font-size: 11px; }
.mock-cred { display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: baseline; text-align: right; }
.mock-cred small { color: #b9cde0; font-size: 10px; }
.mock-cred b { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }
.mock-body { display: grid; grid-template-columns: 38% 1fr; min-height: 210px; }
.mock-side { padding: 12px; border-right: 1px solid #dde3ea; }
.mock-main { padding: 12px 16px; }
.mock-label { margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.mock-pc { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 7px 9px; border-radius: 6px; background: #fff; border: 1px solid #e3e8ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pc i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #aab6c2; }
.mock-pc.is-on i { background: var(--ok); }
.mock-input { margin-bottom: 8px; padding: 6px 10px; border: 1px solid #dde3ea; border-radius: 6px; background: #fff; font-family: var(--mono); letter-spacing: .05em; }
.mock-input small { display: block; font-family: var(--font); font-size: 10px; color: #6b7a88; letter-spacing: 0; }
.mock-button { display: inline-block; margin-top: 4px; padding: 7px 18px; border-radius: 6px; background: #013861; color: #fff; font-weight: 600; }
.mock-status { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: linear-gradient(90deg, #013861, #1f6fa8 70%, #7cc4f0); color: #fff; font-size: 12px; }
.mock-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 191, 99, .25); }
.prompt { position: absolute; right: -14px; bottom: -36px; width: min(330px, 80%); padding: 14px 16px; border-radius: 12px; background: #fff; color: #1d2a36; box-shadow: var(--shadow-lg); border-top: 4px solid var(--sky); font-size: 13px; animation: float 6s ease-in-out infinite; }
.prompt-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.prompt-title .icon { color: var(--brand-500); }
.prompt-actions { display: flex; gap: 6px; margin-top: 10px; }
.prompt-actions span { flex: 1; padding: 6px 4px; border: 1px solid #d5dde5; border-radius: 6px; text-align: center; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.prompt-actions .is-primary { background: #013861; border-color: #013861; color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .prompt { animation: none; } .mock { transition: none; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding-top: 56px; padding-bottom: 88px; }
  .mock { transform: none; }
  .hero-visual:hover .mock { transform: none; }
  .hero-visual { max-width: 560px; }
  .prompt { right: 8px; }
}
@media (max-width: 520px) {
  .mock-cred small:first-child, .mock-cred b:nth-of-type(1) { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-right: 0; border-bottom: 1px solid #dde3ea; }
  .mock-pc:nth-of-type(n+3) { display: none; }
}

/* Trust strip */
.trust { background: var(--brand-900); color: #c9d9e7; border-top: 1px solid rgba(255, 255, 255, .06); }
.trust-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; font-size: .92rem; font-weight: 500; }
.trust-list li { white-space: nowrap; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list .icon { color: var(--sky); }
@media (max-width: 1100px) { .trust-list { justify-content: center; gap: 14px 32px; } }
@media (max-width: 700px) { .trust-list { justify-content: flex-start; } .trust-list li { flex: 1 1 45%; white-space: normal; } }

/* Sections */
.section { position: relative; padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { margin-bottom: 12px; color: var(--brand-500); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--sky); } }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Three apps */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.app-card h3 { margin-top: 20px; font-size: 1.3rem; }
.app-role { margin: 4px 0 12px; color: var(--brand-500); font-weight: 600; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .app-role { color: var(--sky); } }
.app-card p:last-child { color: var(--muted); }
.app-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: linear-gradient(140deg, #0b5c96, #013861); color: #fff; box-shadow: 0 10px 20px -10px rgba(1, 56, 97, .8); }
.app-icon .icon { width: 26px; height: 26px; }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand-500); }
.section-tint .feature-icon { background: #dceaf6; }
@media (prefers-color-scheme: dark) { .feature-icon, .section-tint .feature-icon { background: #15324b; color: var(--sky); } }
@media (max-width: 1060px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* How it works */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.split h2 { margin-bottom: 36px; }
.split-photo { position: relative; margin: 0; }
.split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--tint); box-shadow: var(--shadow); }
.split-photo::after { content: ""; position: absolute; inset: auto -12px -12px auto; z-index: -1; width: 55%; height: 55%; border-radius: 20px; background: linear-gradient(140deg, var(--sky), var(--brand)); opacity: .9; }
.steps { display: grid; gap: 28px; counter-reset: step; }
.steps li { display: flex; gap: 20px; }
.steps h3 { margin-bottom: 6px; font-size: 1.2rem; }
.steps p { color: var(--muted); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 0 0 6px rgba(79, 163, 224, .18); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 56px; } .split-photo { max-width: 560px; } }

/* Security, dark band */
.section-dark { isolation: isolate; overflow: hidden; background: var(--brand-900); color: #e3ecf4; }
.section-dark .section-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 26, 47, .6), rgba(1, 56, 97, .9)); }
.section-dark .kicker { color: var(--sky); }
.section-dark .section-lead { color: #b9cde0; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sec-item { display: flex; gap: 16px; padding: 26px 24px; border: 1px solid rgba(169, 212, 245, .16); border-radius: var(--radius); background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sec-item > .icon { width: 28px; height: 28px; color: var(--sky); }
.sec-item h3 { margin-bottom: 8px; color: #fff; }
.sec-item p { color: #b9cde0; font-size: .96rem; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sec-grid { grid-template-columns: 1fr; } }

/* Pricing */
.billing { display: inline-flex; gap: 4px; margin: -24px 0 40px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.billing button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .95rem var(--font); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.save { padding: 2px 8px; border-radius: 999px; background: rgba(47, 191, 99, .15); color: #1d8a47; font-size: .75rem; }
.billing button[aria-pressed="true"] .save { background: rgba(255, 255, 255, .18); color: #fff; }
@media (prefers-color-scheme: dark) { .save { color: #5fd88d; } }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan.is-featured { border: 2px solid var(--brand-500); box-shadow: 0 24px 48px -24px rgba(1, 56, 97, .55); }
@media (prefers-color-scheme: dark) { .plan.is-featured { border-color: var(--sky); } }
.plan-badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.plan h3 { font-size: 1.3rem; }
.plan-desc { margin-top: 6px; min-height: 3.2em; color: var(--muted); font-size: .95rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; min-height: 52px; }
.amount { font-size: 2.3rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.amount-text { font-size: 1.7rem; }
.period { color: var(--muted); }
.plan-sessions { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin: 10px 0 20px; border-radius: var(--radius-sm); background: var(--tint); font-weight: 600; font-size: .93rem; }
.plan-sessions .icon { color: var(--brand-500); }
@media (prefers-color-scheme: dark) { .plan-sessions .icon { color: var(--sky); } }
.plan-list { display: grid; gap: 10px; align-content: start; margin-bottom: 28px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: .95rem; }
.plan-list .icon { margin-top: 4px; color: var(--ok); }
.footnote { margin-top: 24px; color: var(--muted); font-size: .9rem; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* Costs */
.costs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 64px; margin-top: 96px; padding: 48px; border-radius: 22px; background: var(--tint); border: 1px solid var(--line); }
.costs-intro h2 { margin-bottom: 16px; }
.costs-intro > p { color: var(--muted); }
.costs-total { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: linear-gradient(140deg, #0b5c96, #013861 60%, #001a2f); color: #fff; }
.costs-total-label { color: #b9cde0; font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.costs-total-amount { margin-top: 4px; font-size: 2.6rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.costs-total-sub { color: #b9cde0; }
.costs-breakeven { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-weight: 600; }
.costs-breakeven .icon { color: #6fe39b; }
.cost-list { display: grid; gap: 22px; align-content: start; }
.cost-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cost-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-amount small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.cost-bar { height: 8px; margin: 8px 0 8px; border-radius: 999px; background: rgba(1, 56, 97, .1); overflow: hidden; }
@media (prefers-color-scheme: dark) { .cost-bar { background: rgba(255, 255, 255, .08); } }
.cost-bar span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--sky)); transform-origin: left; }
.js .cost-bar span { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .cost-list.is-visible .cost-bar span { transform: scaleX(1); }
.cost p { color: var(--muted); font-size: .94rem; }
.costs-note { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 900px) { .costs { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dl-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dl-card header { display: flex; gap: 16px; margin-bottom: 22px; }
.dl-card header p { margin-top: 4px; color: var(--muted); font-size: .93rem; }
.dl-list { display: grid; gap: 10px; align-content: start; }
.dl-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; transition: border-color .2s, background-color .2s; }
.dl-link:hover { border-color: var(--brand-500); background: var(--tint); }
.dl-link span { flex: 1; }
.dl-link small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.dl-link.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.dl-link.is-primary small { color: #b9cde0; }
.dl-link.is-primary:hover { background: var(--brand-500); }
.checksums { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.checksums summary { cursor: pointer; }
.checksums dl { margin: 10px 0 0; }
.checksums dt { margin-top: 8px; font-weight: 600; color: var(--ink); }
.checksums dd { margin: 2px 0 0; }
.checksums code { font: .78rem/1.4 var(--mono); word-break: break-all; }
.notice { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 1000px) { .downloads { grid-template-columns: 1fr; max-width: 560px; } }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Final call to action */
.cta { position: relative; isolation: isolate; overflow: hidden; padding: 112px 0; background: radial-gradient(90% 120% at 50% 0%, #0b5c96, #013861 55%, #001a2f); color: #fff; text-align: center; }
.cta-inner h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.cta-inner p { margin: 16px auto 0; max-width: 34em; color: #c9d9e7; font-size: 1.12rem; }

/* Footer */
.footer { padding: 64px 0 28px; background: var(--brand-900); color: #a9bccd; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > div > p { margin-top: 14px; }
.footer-grid a { display: block; padding: 4px 0; color: #a9bccd; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer .status { color: #e3ecf4; }
.footer-grid > div > p.footer-title, .footer-title { margin-top: 0; margin-bottom: 10px; color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Gentle entrance, only when JS is there to reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .prompt { position: relative; right: auto; bottom: auto; width: auto; margin: -28px 12px 0; }
  .actions .btn { flex: 1 1 100%; }
  .brand img { height: 26px; }
}

/* Cards in a grid arrive one after the other */
.js .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal:nth-child(4) { transition-delay: .21s; }
.js .features .reveal:nth-child(4n+1) { transition-delay: 0s; }
.js .features .reveal:nth-child(4n+2) { transition-delay: .07s; }
.js .features .reveal:nth-child(4n+3) { transition-delay: .14s; }
.js .features .reveal:nth-child(4n) { transition-delay: .21s; }

/* RelayServer, the in-house relay */
.relay { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.new-badge { display: inline-block; margin-right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .72rem; letter-spacing: .06em; vertical-align: 1px; }
.relay-points { display: grid; gap: 22px; margin-top: 36px; }
.relay-points li { display: flex; gap: 16px; }
.relay-points h3 { margin: 2px 0 4px; }
.relay-points p { color: var(--muted); font-size: .96rem; }
.relay .actions { margin-top: 36px; }
.relay-visual { display: grid; gap: 18px; }
.relay-net { position: relative; padding: 30px 24px 34px; border: 2px dashed rgba(11, 92, 150, .35); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.relay-net-label { position: absolute; top: -13px; left: 20px; padding: 2px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.relay-flow { display: flex; align-items: center; }
.relay-node { display: grid; justify-items: center; gap: 8px; flex: none; color: var(--brand-500); font-weight: 600; font-size: .9rem; text-align: center; }
.relay-node .icon { width: 30px; height: 30px; padding: 12px; box-sizing: content-box; border-radius: 14px; background: var(--tint); }
.relay-node-main { flex: 0 1 auto; max-width: 48%; padding: 16px 14px; border-radius: 16px; background: linear-gradient(140deg, #0b5c96, #013861); color: #fff; box-shadow: 0 14px 30px -14px rgba(1, 56, 97, .9); }
.relay-node-main .icon { background: rgba(255, 255, 255, .12); }
.relay-node-main b { font-family: var(--mono); font-size: .82rem; word-break: break-all; }
.relay-node-main small { color: #b9cde0; font-weight: 500; font-size: .76rem; }
.relay-wire { flex: 1; min-width: 18px; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: wire 1.2s linear infinite; }
@keyframes wire { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .relay-wire { animation: none; } }
.relay-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.relay-pkgs li { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .88rem; }
.relay-pkgs .icon { margin-top: 2px; color: var(--brand-500); }
.relay-pkgs b { display: block; }
.relay-pkgs small { display: block; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .relay-node, .relay-pkgs .icon { color: var(--sky); }
  .relay-node-main { color: #fff; }
  .relay-net { border-color: rgba(79, 163, 224, .35); }
}
@media (max-width: 1000px) { .relay { grid-template-columns: 1fr; gap: 56px; } .relay-visual { max-width: 600px; } }
@media (max-width: 560px) { .relay-pkgs { grid-template-columns: 1fr; } .relay-node { font-size: .8rem; } .relay-node .icon { padding: 9px; width: 24px; height: 24px; } }
.relay-points .feature-icon { flex: none; }

/* Footer: copyright and Swiss made, side by side */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.swiss-made { display: inline-flex; align-items: center; gap: 10px; color: #e3ecf4; font-weight: 600; }
.swiss-made .flag { flex: none; }

/* Status page (/status): everything fits on one screen */
.status-page { display: flex; flex-direction: column; min-height: 100vh; background: #001a2f radial-gradient(120% 900px at 50% 0%, #0b5c96 0%, #013861 45%, #001a2f 100%) no-repeat; color: #e3ecf4; }
html:has(.status-page) { background: #001a2f; }
.network-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.status-page .topbar, .status-main, .status-page .footer { position: relative; z-index: 1; }
.status-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px 0; }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; }
.st-summary { display: flex; align-items: center; gap: 24px; }
.st-summary .kicker { margin-bottom: 4px; color: var(--sky); }
.st-summary h1 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 750; letter-spacing: -.025em; }
.status-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; color: #9fb8cc; font-size: .92rem; }
.status-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.status-meta time { color: #e3ecf4; font-variant-numeric: tabular-nums; }

/* The orb: one bright core and two rings that breathe out */
.orb { --c: 47, 191, 99; position: relative; flex: none; width: 96px; height: 96px; }
.orb[data-overall="degraded"] { --c: 240, 165, 42; }
.orb[data-overall="down"] { --c: 229, 72, 77; }
.orb span { position: absolute; inset: 0; border-radius: 50%; }
.orb span:nth-child(1) { inset: 24px; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgb(var(--c)) 45%, rgba(var(--c), .7)); box-shadow: 0 0 32px rgba(var(--c), .8), 0 0 70px rgba(var(--c), .4); }
.orb span:nth-child(2), .orb span:nth-child(3) { border: 2px solid rgba(var(--c), .55); animation: orb 3s ease-out infinite; }
.orb span:nth-child(3) { animation-delay: 1.5s; }
@keyframes orb { 0% { transform: scale(.45); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb span:nth-child(2), .orb span:nth-child(3) { animation: none; opacity: .35; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 12px; }
.tile, .service { border: 1px solid rgba(169, 212, 245, .16); background: rgba(0, 20, 38, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tile { padding: 14px 18px; border-radius: 14px; }
.tile-value { color: #fff; font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile-label { color: #9fb8cc; font-size: .85rem; }

.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.service { --c: 47, 191, 99; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 20px; border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .7); }
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: rgb(var(--c)); box-shadow: 0 0 14px rgba(var(--c), .8); }
.service[data-state="degraded"] { --c: 240, 165, 42; }
.service[data-state="down"] { --c: 229, 72, 77; }
.service[data-state="off"], .service[data-state="unknown"] { --c: 154, 167, 179; }
.service-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(79, 163, 224, .12); color: var(--sky); }
.service h3 { margin-top: 14px; color: #fff; font-size: 1.02rem; }
.service-desc { flex: 1; margin-top: 4px; color: #9fb8cc; font-size: .88rem; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.service-ms { color: #9fb8cc; font-size: .82rem; font-variant-numeric: tabular-nums; }
.service-state { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--c)); font-weight: 700; font-size: .9rem; }
.service-state i { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c)); box-shadow: 0 0 0 4px rgba(var(--c), .18), 0 0 12px rgba(var(--c), .7); }
.status-note { margin-top: 18px; color: #8aa3b8; font-size: .86rem; text-align: center; }
.footer-slim { padding: 0 0 24px; background: transparent; }
.footer-slim .footer-bottom { margin-top: 0; }

@media (max-width: 1100px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-head { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { padding: 12px; } .tile-value { font-size: 1.3rem; } .tile-label { font-size: .78rem; }
  .st-summary { gap: 16px; } .orb { width: 72px; height: 72px; } .orb span:nth-child(1) { inset: 18px; }
  .services { grid-template-columns: 1fr; gap: 8px; }
  .service { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
  .service::before { inset: 0 auto 0 0; width: 3px; height: auto; }
  .service-icon { width: 34px; height: 34px; flex: none; }
  .service h3 { flex: 1; margin: 0; font-size: .95rem; }
  .service-desc, .service-ms { display: none; }
  .service-foot { margin: 0; }
  .status-note { margin-top: 12px; font-size: .8rem; }
  .status-main { justify-content: flex-start; padding: 20px 0; gap: 18px; }
  .status-meta { font-size: .82rem; }
}

/* The status pill in the hero links to /status */
.status-link { text-decoration: none; border-radius: 999px; }
.status-link .status { transition: background-color .2s, border-color .2s; }
.status-link:hover .status { background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .3); }
.status-link .status::after { content: "›"; margin-left: 2px; opacity: .6; font-weight: 400; }
