/* H2VORA company profile. Colors follow the H2VORA apps (primary blue, slate/navy, Inter). No external assets. */
:root {
  --primary: #1d63d2;
  --primary-hover: #1853b3;
  --primary-soft: #eaf1fd;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --navy-3: #1e3a8a;
  --text: #1b2130;
  --muted: #5b6475;
  --border: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --wait: #92580a;
  --wait-soft: #fef3c7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); }
img, svg { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); background: #fff; }
.btn-ghost:hover { border-color: #c7cfdb; background: var(--bg-alt); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
/* Logo: hexagon server mark (assets/logo.svg, also the favicon) and the two-tone wordmark H2 (navy) VORA (blue). */
.brand-mark { display: block; flex: none; width: 40px; height: 40px; }
.brand-mark.sm { width: 28px; height: 28px; }
.brand-name { font-weight: 900; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.brand-h2 { color: #0e2a8f; }
.brand-vora { color: #3b6ef5; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav > a:hover { color: var(--text); background: var(--bg-alt); }
.nav-actions { display: inline-flex; gap: 8px; margin-left: 12px; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.login-mobile { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

/* Hero */
.hero {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(59, 130, 246, .35), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; margin-bottom: 14px; }
.eyebrow.dark { color: var(--primary); }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
.lead { margin-top: 20px; font-size: 18px; color: #cbd5e1; max-width: 38em; }
.lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: #cbd5e1; font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: #4ade80; width: 18px; height: 18px; }

.hero-visual { justify-self: center; width: 100%; max-width: 540px; }
.visual-note { text-align: center; margin-top: 14px; font-size: 12px; color: #94a3b8; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0; text-align: left; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
.section-head p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 17px; }
.grid { display: grid; gap: 16px; }

.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.product {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product:hover { border-color: #bcd0f3; box-shadow: var(--shadow); transform: translateY(-2px); }
.p-icon, .f-icon, .t-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.p-icon .icon, .f-icon .icon, .t-icon .icon { width: 22px; height: 22px; }
.product h3, .feature h3 { font-size: 17px; font-weight: 700; }
.product p, .feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier h3 { font-size: 22px; font-weight: 800; }
.t-lead { margin-top: 6px; color: var(--muted); }
.checks { display: grid; gap: 10px; margin: 20px 0 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; }
.tier .btn { margin-top: auto; align-self: flex-start; }

.features { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.s-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.cta-band { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-inner p { margin-top: 8px; color: #cbd5e1; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none;
}
a.contact-item:hover { border-color: #bcd0f3; box-shadow: var(--shadow); }
.contact-item .c-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.contact-item .c-label { display: block; font-size: 13px; color: var(--muted); }
.contact-item .c-value { font-weight: 600; word-break: break-word; }
.contact-fallback { color: var(--muted); align-self: center; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding-top: 48px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-h2, .notfound .brand-h2 { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-tag { margin-top: 12px; max-width: 28em; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { color: #cbd5e1; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: #94a3b8; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%); }
.notfound h1 { font-size: 40px; margin: 18px 0 10px; }
.notfound p { color: #cbd5e1; margin-bottom: 24px; }
.notfound .brand { justify-content: center; color: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* With JavaScript the menu collapses behind the toggle; without it the links stay visible below the logo. */
  .js .menu-toggle { display: inline-flex; margin-left: 8px; }
  .js .login-mobile { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 14px; }
  .js .nav-actions .btn-login { display: none; } /* the header already shows Login on small screens */
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(16, 24, 40, .08);
  }
  .js .menu-open .nav { display: flex; }
  .js .nav > a { padding: 12px; }
  .js .nav-actions { margin: 10px 0 0; flex-direction: column; }
  .js .nav-actions .btn { width: 100%; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 10px 0; }
  html:not(.js) .nav { flex-wrap: wrap; margin-left: 0; }
  .tiers, .contact { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .features, .steps { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .product { padding: 18px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .lead { font-size: 17px; }
  .tier { padding: 24px; }
}
@media (max-width: 360px) {
  .products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Hero network console: host-to-host animation (assets/h2h-network.js) on a dark glass panel */
.net {
  --n-line: rgba(148, 163, 184, .16);
  --n-node: #0b1324;
  --n-data: #60a5fa;
  --n-ctrl: #fbbf24;
  --n-ok: #34d399;
  --n-text: #e2e8f0;
  --n-dim: #94a3b8;
  --n-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .18);
  background:
    radial-gradient(420px 260px at 50% 42%, rgba(37, 99, 235, .22), transparent 70%),
    linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(2, 6, 23, .9));
  box-shadow: 0 40px 90px rgba(2, 6, 23, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.net::before { /* faint dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.net > * { position: relative; }

.net-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.net-live { width: 8px; height: 8px; border-radius: 50%; background: var(--n-ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: net-live 2s ease-out infinite; flex: none; }
.net.paused .net-live { animation: none; background: var(--n-dim); }
@keyframes net-live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
.net-title { font-size: 13px; font-weight: 600; color: var(--n-text); letter-spacing: .01em; margin-right: auto; white-space: nowrap; }
.net-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .14); }
.net-seg button {
  border: 0; background: transparent; color: var(--n-dim); font: 600 12px/1 var(--font);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.net-seg button:hover { color: var(--n-text); }
.net-seg button[aria-pressed="true"] { background: rgba(96, 165, 250, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .35); }
.net-play {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(148, 163, 184, .2); background: rgba(148, 163, 184, .08); color: var(--n-text);
}
.net-play:hover { background: rgba(148, 163, 184, .16); }
.net-play svg { width: 14px; height: 14px; fill: currentColor; }
.net-play .i-play, .net.paused .net-play .i-pause { display: none; }
.net.paused .net-play .i-play { display: block; }

.net-stage { width: 100%; height: auto; padding: 4px 8px 0; }
.net-stage .link { stroke: var(--n-line); stroke-width: 1.4; fill: none; transition: stroke .25s, stroke-width .25s; }
.net-stage .link.on { stroke: var(--n-data); stroke-width: 2.4; filter: url(#h2h-glow); }
.net-stage .mesh, .net-stage .star, .net-stage .swnode { transition: opacity .6s; }
.net-stage.p2p .star, .net-stage.p2p .swnode, .net-stage.sw .mesh { opacity: 0; }
.net-stage .swbox { fill: var(--n-node); stroke: rgba(148, 163, 184, .45); stroke-width: 1.5; }
.net-stage .swtxt { font: 700 14px var(--font); fill: var(--n-text); letter-spacing: .02em; }
.net-stage .swmac { font: 400 11px var(--n-mono); fill: var(--n-dim); }
.net-stage .node { cursor: pointer; outline: none; }
.net-stage .node .core { fill: var(--n-node); stroke: rgba(148, 163, 184, .38); stroke-width: 1.6; transition: stroke .2s; }
.net-stage .node .ring { fill: none; stroke: var(--n-data); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.net-stage .node.send .core { stroke: var(--n-data); stroke-width: 3; filter: url(#h2h-glow); }
.net-stage .node.send .ring { animation: net-ping .9s ease-out; }
.net-stage .node.recv .core { stroke: var(--n-ok); stroke-width: 3; stroke-dasharray: 5 3; }
.net-stage .node:hover .core { stroke: var(--n-data); }
.net-stage .node:focus-visible .core { stroke: #bfdbfe; stroke-width: 3.5; }
@keyframes net-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.net-stage .node .ltr { font: 700 20px var(--font); fill: #fff; }
.net-stage .node .ip { font: 400 11px var(--n-mono); fill: var(--n-dim); }
.net-stage .pk-data rect { fill: var(--n-data); filter: url(#h2h-glow); }
.net-stage .pk-ctrl circle { fill: var(--n-node); stroke: var(--n-ctrl); stroke-width: 2.5; filter: url(#h2h-glow); }
.net-stage .plabel { font: 600 10px var(--n-mono); fill: var(--n-text); paint-order: stroke; stroke: #020617; stroke-width: 3px; stroke-linejoin: round; letter-spacing: .04em; }

.net-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 4px 18px 16px; }
.net-log { min-width: 0; height: 60px; overflow: hidden; font: 400 12px/20px var(--n-mono); color: var(--n-text); }
.net-log li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-log li span { overflow: hidden; text-overflow: ellipsis; }
.net-log li:nth-child(2) { opacity: .6; }
.net-log li:nth-child(3) { opacity: .32; }
.net-log time { color: var(--n-dim); flex: none; }
.net-legend { display: flex; flex-direction: column; gap: 4px; flex: none; font-size: 12px; color: var(--n-dim); }
.net-legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; flex: none; border-radius: 50%; }
.lg-data { width: 14px; height: 9px; border-radius: 3px; background: var(--n-data); box-shadow: 0 0 8px rgba(96, 165, 250, .8); }
.lg-ctrl { border: 2px solid var(--n-ctrl); box-shadow: 0 0 8px rgba(251, 191, 36, .5); }
.lg-recv { border: 2px dashed var(--n-ok); }
.net-note { padding: 0 18px 16px; font-size: 12px; color: var(--n-dim); }

@media (max-width: 1000px) {
  .hero-visual { max-width: 600px; }
}
@media (max-width: 560px) {
  .net-bar { flex-wrap: wrap; }
  .net-title { flex: 1 1 auto; }
  .net-seg { order: 3; width: 100%; }
  .net-seg button { flex: 1; }
  /* The diagram shrinks on narrow screens, so the text inside it is enlarged to stay readable. */
  .net-stage .node .ip { font-size: 16px; }
  .net-stage .node .ltr { font-size: 26px; }
  .net-stage .plabel { font-size: 14px; }
  .net-stage .swtxt { font-size: 18px; }
  .net-stage .swmac { font-size: 15px; }
  .net-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .net-legend { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .net-live, .net-stage .node.send .ring { animation: none; }
}
@media (max-width: 1000px) {
  /* Stacked hero: headline, then the network console, then the text and buttons, so the animation is on the first screen. */
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 0; }
  .hero h1 { order: 1; }
  .hero-visual { order: 2; margin: 28px auto 0; }
  .hero .lead { order: 3; margin-top: 28px; }
  .hero-cta { order: 4; }
  .hero-points { order: 5; }
}
