/* Horylo corporate site */
:root {
  --bg: #0b1020;
  --bg-raised: #121933;
  --bg-card: #151d3b;
  --line: rgba(148, 163, 214, 0.16);
  --line-strong: rgba(148, 163, 214, 0.28);
  --text: #e8ecf8;
  --text-muted: #a3acc9;
  --text-faint: #7a84a6;
  --blue: #4f8cff;
  --violet: #8b5cf6;
  --lime: #c6ff3d;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--lime); color: #0b1020; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 14px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(79, 140, 255, 0.14); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--text); border-radius: 2px; content: ""; transition: transform 0.2s ease; }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.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); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: #0b1020; }
.btn-primary:hover { background: #d4ff6a; }
.btn-secondary { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-secondary:hover { border-color: var(--blue); background: rgba(79, 140, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--text-muted); }
.divider { border-top: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 112px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.28), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(79, 140, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual { position: relative; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 520px; }
}

.page-hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(79, 140, 255, 0.18), transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; position: relative; }
.page-hero .lead { position: relative; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--bg-card), var(--bg-raised)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: border-color 0.2s ease, transform 0.2s ease; }
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--text-muted); margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(79, 140, 255, 0.12); color: var(--blue); }
.card-icon.violet { background: rgba(139, 92, 246, 0.14); color: var(--violet); }
.card-icon.lime { background: rgba(198, 255, 61, 0.12); color: var(--lime); }
.card-icon svg { width: 22px; height: 22px; }
.card-num { font-family: var(--mono); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 14px; display: block; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-raised); padding: 28px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(198, 255, 61, 0.16); box-shadow: inset 0 0 0 5px var(--bg-raised), inset 0 0 0 16px var(--lime); }

/* Status note (product in development) */
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; margin-bottom: 24px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.15); }

/* CTA band */
.cta-band { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px; background: radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 55%), radial-gradient(100% 120% at 0% 100%, rgba(79, 140, 255, 0.18), transparent 55%), var(--bg-raised); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-muted); margin: 0; max-width: 560px; }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 600px) { .cta-band { padding: 32px 24px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-raised); color: var(--text); }
.contact-card:hover { text-decoration: none; border-color: var(--blue); }
.contact-card .label { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.contact-card .address { display: block; font-size: 1.15rem; font-weight: 600; margin: 10px 0 8px; color: var(--blue); word-break: break-all; }
.contact-card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Legal / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.08rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.legal-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--text-faint); }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--bg-raised); margin: 32px 0 8px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-toc li { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #080c19; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-faint); font-size: 0.95rem; max-width: 320px; margin-top: 14px; }
.footer-heading { font-size: 0.8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--text); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; color: var(--text-faint); font-size: 0.88rem; }

/* Platform visual */
.platform-visual { width: 100%; height: auto; }
.platform-visual .node { animation: pulse 6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.platform-visual .node:nth-of-type(2) { animation-delay: 1.5s; }
.platform-visual .node:nth-of-type(3) { animation-delay: 3s; }
.platform-visual .flow { stroke-dasharray: 4 8; animation: flow 3s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 */
.not-found { text-align: center; padding: 140px 0; }
.not-found .code { font-family: var(--mono); color: var(--lime); font-size: 0.9rem; letter-spacing: 0.2em; }
.not-found .btn-row { justify-content: center; }

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
