/* Octa Network, octanet.online
   Decisions, kept on purpose:
   - Type: IBM Plex Sans (variable, the narrow width for headings), IBM Plex Mono
     only for prices and figures. Self-hosted: Google Fonts is unreliable from RU.
   - Colour: neutral near-black, warm off-white text. Brand indigo is flat and
     only marks the main action and links. No gradients, glows or coloured shadows.
   - Shape: one 4px radius, hairline rules instead of cards where possible.
   - Motion comes from the ASCII renders (assets/media, tools/ascii-studio). */

@font-face {
  font-family: "Round";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Round";
  src: url("/assets/fonts/nunito-cyrillic.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Round";
  src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-cyrillic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0400-045F, U+2116; }

:root {
  --bg: #060607;
  --bg-soft: #0b0b0d;
  --surface: #0e0e10;
  --surface-raised: #131316;
  --text: #ecebe7;
  --text-soft: #a3a29c;
  --text-muted: #6e6d68;
  --line: rgba(236, 235, 231, 0.1);
  --line-strong: rgba(236, 235, 231, 0.22);
  --white: #f6f5f1;
  --accent: #4c62d2;
  --accent-hover: #5a6fdc;
  --accent-2: #9aa7ee;
  --accent-3: #c3cbf6;
  --accent-rgb: 76, 98, 210;
  --accent-2-rgb: 154, 167, 238;
  --accent-grad: var(--accent);
  --success: #3fae86;
  --max-width: 1180px;
  --font-body: "Round", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* Kept for octa-app.css; flat on purpose. */
  --shadow: 0 0 0 transparent;
  --highlight: 0 0 0 transparent;
  --sheen: linear-gradient(transparent, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

/* ASCII renders: black clip + screen blend so the dots sit on the page.
   The blend is on the wrapper: a transformed wrapper is its own isolated group. */
.ascii-media { pointer-events: none; mix-blend-mode: screen; }
.ascii-media video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(6, 6, 7, .94); border-bottom-color: var(--line); }
.nav-shell { width: min(var(--max-width), calc(100% - 48px)); height: 72px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.brand-word { display: inline-flex; gap: 5px; font-size: .98rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word span { color: var(--text-muted); font-weight: 400; }
.desktop-nav { display: flex; gap: 28px; }
.desktop-nav a { color: var(--text-soft); font-size: .94rem; transition: color .2s; }
.desktop-nav a:hover { color: var(--white); }
.desktop-nav .icon, .mobile-nav .icon { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle, .mobile-nav { display: none; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--text-soft); }
.button-ghost { color: var(--text-soft); }
.button-ghost:hover { color: var(--white); }
.button-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.button-large { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.text-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(var(--accent-2-rgb), .35); text-underline-offset: 4px; }
.text-link .icon { display: none; }
.text-link:hover { text-decoration-color: currentColor; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(900px, 100svh); display: flex; align-items: center; overflow: hidden; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-globe {
  position: absolute;
  top: 50%;
  right: max(-240px, calc((100vw - var(--max-width)) / 2 - 280px));
  width: min(940px, 70vw);
  aspect-ratio: 1;
  transform: translateY(-48%);
  translate: 0 calc(var(--scroll, 0) * .3px);
}
.hero-globe video { -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); mask-image: radial-gradient(closest-side, #000 82%, transparent 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(6, 6, 7, .8) 34%, rgba(6, 6, 7, 0) 60%); }
.hero-inner { position: relative; z-index: 1; width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 140px 0 96px; }
.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.6rem, 10vw, 9rem);
  font-weight: 600;
  
  line-height: .88;
  letter-spacing: -0.035em;
}
.hero-title-line { display: block; }
.hero-copy { max-width: 470px; margin: 32px 0 0; color: var(--text-soft); font-size: 1.12rem; line-height: 1.6; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 28px 0 0; color: var(--text-muted); font-size: .92rem; }
.hero-note a { color: var(--text-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.hero-note a:hover { color: var(--white); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { position: relative; padding: 120px 24px; border-bottom: 1px solid var(--line); }
.section-inner { width: min(var(--max-width), 100%); margin: 0 auto; }
.section-heading { max-width: 640px; }
.section-heading.centered { margin: 0; text-align: left; }
.kicker { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .92rem; }
.kicker .icon { width: 16px; height: 16px; }
.section-heading h2, .support-panel h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-heading > p:not(.kicker) { margin: 20px 0 0; color: var(--text-soft); font-size: 1.05rem; line-height: 1.65; }

/* ── What you get: ruled rows, no icons ──────────────────────────────── */
.facts { margin: 56px 0 0; border-top: 1px solid var(--line); }
.facts > div { padding: 26px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--white); font-size: 1.15rem; font-weight: 500; }
.facts dd { margin: 0; max-width: 560px; color: var(--text-soft); }

/* App pages still use the feature grid */
.advantage-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-top { margin-bottom: 28px; }
.feature-icon { color: var(--text-soft); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin: 0; color: var(--white); font-size: 1.1rem; font-weight: 500; }
.feature p { margin: 10px 0 0; color: var(--text-soft); font-size: .95rem; }

/* ── Pricing: one ruled price list ───────────────────────────────────── */
.pricing-section { overflow: hidden; overflow: clip; }
.pricing-wave { position: absolute; left: 50%; bottom: -220px; width: max(1600px, 120vw); aspect-ratio: 8 / 3; transform: translateX(-50%); translate: 0 calc(var(--wave, 0) * -.2px); opacity: .55; }
.pricing-wave video {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 50%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 50%, #000 80%, transparent 100%);
}
.pricing-section { padding-bottom: 240px; }
.pricing-section .section-inner { position: relative; z-index: 1; }
.plans { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--bg); }
.plan { padding: 32px 28px 28px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-featured { background: var(--surface-raised); box-shadow: inset 0 2px 0 var(--accent); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan h3 { margin: 0; color: var(--white); font-size: 1.35rem; font-weight: 600;  }
.plan-tag { color: var(--accent-2); font-size: .85rem; }
.plan-devices { margin: 8px 0 0; color: var(--text-soft); }
.price { margin: 40px 0 28px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-family: var(--font-mono); color: var(--white); font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.price span { color: var(--text-soft); font-size: .95rem; }
.plan .button { margin-top: auto; }
.plans-note { margin: 20px 0 0; color: var(--text-soft); }
.plans-note a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(var(--accent-2-rgb), .35); text-underline-offset: 4px; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 40px; font-family: var(--font-mono); color: var(--text-muted); font-size: .95rem; }
.steps h3 { margin: 0; color: var(--white); font-size: 1.15rem; font-weight: 500; }
.steps p { margin: 8px 0 0; color: var(--text-soft); }
/* Android page keeps its older list markup */
.steps-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.steps-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps-list li { padding: 22px 0; display: grid; grid-template-columns: 40px 1fr; gap: 16px; border-bottom: 1px solid var(--line); }
.step-badge .icon { display: none; }
.step-badge b { font-family: var(--font-mono); color: var(--text-muted); font-weight: 400; }
.steps-list h3 { margin: 0; color: var(--white); font-size: 1.05rem; font-weight: 500; }
.steps-list p { margin: 6px 0 0; color: var(--text-soft); font-size: .95rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 0; background: none; text-align: left; cursor: pointer; }
.faq-item button span { color: var(--white); font-size: 1.05rem; font-weight: 500; }
.faq-item button b { color: var(--text-muted); transition: transform .3s var(--ease); }
.faq-item button b .icon { width: 18px; height: 18px; }
.faq-item.open button b { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer p { min-height: 0; overflow: hidden; margin: 0; max-width: 620px; color: var(--text-soft); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding-bottom: 24px; }

/* ── Closing block with the ASCII octopus ────────────────────────────── */
.support-section { border-bottom: 0; }
.support-panel { width: min(var(--max-width), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: center; }
.support-mark { grid-column: 1; grid-row: 1 / span 6; width: 100%; max-width: 520px; aspect-ratio: 1; }
.support-panel > :not(.support-mark) { grid-column: 2; }
.support-panel > p:not(.kicker) { margin: 20px 0 0; max-width: 460px; color: var(--text-soft); font-size: 1.05rem; }
.support-panel .hero-actions { margin-top: 32px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding: 64px 24px 32px; border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--max-width), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin: 16px 0 0; color: var(--text-muted); font-size: .92rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { margin: 0 0 6px; color: var(--text-muted); font-size: .9rem; font-weight: 400; }
.footer-col a { width: fit-content; color: var(--text-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { width: min(var(--max-width), 100%); margin: 56px auto 0; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-top { display: none; }

/* ── Reveal ───────────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal-main { min-height: 100vh; padding: 150px 24px 104px; }
.legal-shell { width: min(760px, 100%); margin: 0 auto; }
.legal-title { margin: 0 0 16px; color: var(--white); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600;  line-height: 1; letter-spacing: -0.03em; }
.legal-meta { margin: 0 0 48px; color: var(--text-muted); font-family: var(--font-mono); font-size: .85rem; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; color: var(--white); font-size: 1.15rem; font-weight: 500; }
.legal-section p, .legal-section li { color: var(--text-soft); line-height: 1.75; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul { margin: 10px 0 0; padding-left: 20px; }
.legal-section a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .hero-globe { right: -300px; opacity: .7; }
  .facts > div { grid-template-columns: 1fr; gap: 8px; }
  .steps-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .desktop-account { display: none; }
  .menu-toggle { position: relative; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: none; cursor: pointer; }
  .menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease); }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .site-header:has(.mobile-nav.open) { background: var(--bg); border-bottom-color: var(--line); }
  .mobile-nav { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto; padding: 8px 0 20px; }
  .mobile-nav.open { display: grid; }
  .mobile-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem; }
  .mobile-nav-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .price { margin: 24px 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 20px 0 24px; }
  .steps li::before { margin-bottom: 12px; }
  .support-panel { grid-template-columns: 1fr; }
  .support-mark { grid-row: auto; max-width: 340px; margin: 0 auto 8px; }
  .support-panel > :not(.support-mark) { grid-column: 1; }
  .advantage-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-shell, .mobile-nav { width: calc(100% - 32px); gap: 16px; }
  .nav-shell { height: 64px; }
  .hero { align-items: flex-start; min-height: 0; }
  .hero-globe { top: 40px; right: 50%; width: 440px; transform: translateX(50%); opacity: 1; }
  .hero::after { background: linear-gradient(180deg, rgba(6, 6, 7, 0) 30%, rgba(6, 6, 7, .75) 55%, var(--bg) 100%); }
  .hero-inner { width: calc(100% - 32px); padding: 340px 0 64px; }
  .hero h1 { font-size: clamp(3.4rem, 19vw, 5rem); }
  .hero-actions .button { flex: 1 1 100%; }
  .section { padding: 80px 16px; }
  .plan { padding: 26px 20px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .legal-main { padding: 112px 16px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

.text-link-inline { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(var(--accent-2-rgb), .35); text-underline-offset: 4px; }
.text-link-inline:hover { text-decoration-color: currentColor; }
