:root {
    --logo: url('logo.png');
    /* New palette: deeper indigo/blue base, cyan and Bihyris-blue accents, warm amber for pain */
    --bg: #07090f;
    --bg-2: #0b1019;
    --bg-3: #11182a;
    --bg-glow: #1a2447;
    --line: #1c2540;
    --line-bright: #2e3b66;
    --text: #e0e7f5;
    --text-dim: #8893b3;
    --text-faded: #4a5478;
    --cyan: #00ffd1;
    --cyan-dim: #00b894;
    --blue: #4d7bff;          /* Bihyris-bird blue */
    --blue-bright: #6b94ff;
    --blue-deep: #2a4dcc;
    --amber: #ffb347;         /* warm pain accent */
    --amber-soft: #ffd699;
    --red: #ff4d6d;
    --grid: rgba(77, 123, 255, 0.05);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
      linear-gradient(var(--grid) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid) 1px, transparent 1px),
      radial-gradient(ellipse at 15% 0%, rgba(77, 123, 255, 0.10), transparent 55%),
      radial-gradient(ellipse at 85% 100%, rgba(0, 255, 209, 0.05), transparent 50%);
    background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.05) 3px);
    z-index: 1;
  }

  /* === Floating particles in hero === */
  .particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .particles span {
    position: absolute;
    display: block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--blue-bright);
    opacity: 0;
    animation: float 14s linear infinite;
  }
  .particles span:nth-child(odd) { background: var(--cyan); }
  .particles span:nth-child(3n) { width: 2px; height: 2px; }
  .particles span:nth-child(5n) { width: 4px; height: 4px; opacity: 0; }
  @keyframes float {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-120vh) translateX(40px); }
  }

  main { position: relative; z-index: 2; }
  section { max-width: 1240px; margin: 0 auto; padding: 100px 32px; position: relative; }
  section.full { max-width: none; padding: 100px 0; }
  section.full > .inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

  /* === Topbar === */
  .topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-inner {
    max-width: 1240px; margin: 0 auto;
    padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text);
  }
  .logo-mark {
    width: 32px; height: 32px;
    background-image: var(--logo);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 8px rgba(77, 123, 255, 0.5));
  }
  .logo small {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--blue-bright);
    margin-left: 6px;
    letter-spacing: 0.2em;
    font-weight: 400;
  }

  /* === Hero === */
  .hero {
    min-height: calc(100vh - 65px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
  }
  .hero-text { position: relative; z-index: 3; }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--blue-bright);
    background: rgba(77, 123, 255, 0.08);
    border: 1px solid var(--blue-deep);
    padding: 8px 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 32px;
  }

  h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    font-weight: 700;
  }
  h1 .accent {
    background: linear-gradient(120deg, var(--cyan), var(--blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .hero-emo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 28px;
    opacity: 0.9;
  }
  .hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.7;
  }

  .cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
  .btn {
    padding: 14px 28px;
    border: 1px solid;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    position: relative;
  }
  .btn-primary {
    background: var(--cyan); color: var(--bg);
    border-color: var(--cyan);
    box-shadow: 0 0 32px rgba(0, 255, 209, 0.32);
  }
  .btn-primary:hover {
    box-shadow: 0 0 0 4px rgba(0, 255, 209, 0.15), 0 0 48px rgba(0, 255, 209, 0.55);
    transform: translateY(-1px);
  }
  .btn-ghost {
    background: transparent; color: var(--text);
    border-color: var(--line-bright);
  }
  .btn-ghost:hover {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
    box-shadow: 0 0 24px rgba(77, 123, 255, 0.25);
  }

  .hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 620px;
  }
  .pillar {
    padding: 14px 16px;
    background: rgba(11, 16, 25, 0.6);
    border: 1px solid var(--line);
    border-left: 2px solid var(--blue);
  }
  .pillar-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--blue-bright);
    margin-bottom: 6px;
    letter-spacing: 0.15em;
  }
  .pillar-text { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

  /* === Hero mascot === */
  .hero-mascot-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
  }
  .mascot {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
    background-image: var(--logo);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 3;
    animation: hover 6s ease-in-out infinite;
    filter:
      drop-shadow(0 0 40px rgba(77, 123, 255, 0.45))
      drop-shadow(0 0 80px rgba(0, 255, 209, 0.18));
  }
  @keyframes hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  .mascot-orbit {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .mascot-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--blue-deep);
    border-radius: 50%;
    opacity: 0.35;
  }
  .mascot-ring:nth-child(1) { width: 88%; height: 88%; }
  .mascot-ring:nth-child(2) {
    width: 75%; height: 75%;
    border-style: dashed;
    animation: rotate 80s linear infinite;
  }
  .mascot-ring:nth-child(3) {
    width: 100%; height: 100%;
    border-color: var(--cyan);
    opacity: 0.12;
  }
  @keyframes rotate { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
  .mascot-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65%; height: 65%;
    background: radial-gradient(circle, rgba(77, 123, 255, 0.35), transparent 65%);
    filter: blur(40px);
    z-index: 1;
  }

  /* === Section headers === */
  .section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--blue-bright);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .section-tag::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--blue-bright);
  }
  h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 880px;
    font-weight: 700;
  }
  .section-lead {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 760px;
    margin-bottom: 56px;
    line-height: 1.7;
  }
  .section-lead.bright { color: var(--text); }
  .section-lead + .section-lead { margin-top: -36px; }

  /* === Pain section — strong visual weight === */
  .pain-section {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 179, 71, 0.06), transparent 60%),
      var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .pains {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .pain {
    display: grid;
    grid-template-columns: 160px 1fr 1fr;
    gap: 32px;
    padding: 36px;
    background: var(--bg);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
  }
  .pain:hover { border-color: var(--line-bright); }
  .pain::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--amber), var(--cyan));
  }
  .pain-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--amber), rgba(255, 179, 71, 0.2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    align-self: start;
  }
  .pain-left h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.3;
  }
  .pain-was {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
  }
  .pain-right {
    padding-left: 32px;
    border-left: 1px dashed var(--line-bright);
  }
  .pain-now-tag {
    color: var(--cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
  }
  .pain-now-tag::before { content: '→'; font-weight: 700; font-size: 14px; }
  .pain-now {
    font-size: 15px;
    color: var(--text);
    line-height: 1.65;
  }

  /* === Features section === */
  .features-section { background: var(--bg); }
  .inside-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .inside-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 36px 32px;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
  }
  .inside-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border-top: 1px solid var(--blue);
    border-left: 1px solid var(--blue);
    opacity: 0.5;
    transition: opacity 0.3s;
  }
  .inside-card:hover {
    border-color: var(--blue);
    transform: translateY(-3px);
  }
  .inside-card:hover::before { opacity: 1; }
  .inside-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--blue-bright);
    letter-spacing: 0.2em;
    margin-bottom: 18px;
    text-transform: uppercase;
  }
  .inside-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    margin-bottom: 14px;
    color: var(--text);
  }
  .inside-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
  }
  .inside-card-growth {
    background:
      linear-gradient(135deg, rgba(0, 255, 209, 0.06), rgba(77, 123, 255, 0.04) 60%),
      var(--bg-2);
    border-color: var(--cyan-dim);
  }
  .inside-card-growth::before {
    border-color: var(--cyan);
    opacity: 1;
  }
  .inside-card-growth h4 {
    background: linear-gradient(120deg, var(--cyan), var(--blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .inside-card-growth .inside-num { color: var(--cyan); }
  .inside-card-growth:hover { border-color: var(--cyan); }

  /* === Connectivity (CIS) block — distinct full-width === */
  .ru-section {
    background:
      radial-gradient(ellipse at 80% 50%, rgba(77, 123, 255, 0.14), transparent 60%),
      radial-gradient(ellipse at 0% 100%, rgba(0, 255, 209, 0.06), transparent 50%),
      var(--bg-3);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .ru-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .ru-punch {
    font-size: 22px;
    color: var(--cyan);
    line-height: 1.5;
    margin-top: 24px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
  }
  .ru-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ru-stat {
    padding: 22px 26px;
    background: rgba(7, 9, 15, 0.6);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    backdrop-filter: blur(8px);
  }
  .ru-stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 6px;
    line-height: 1.2;
    word-break: break-word;
  }
  .ru-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
  }

  /* === For Whom === */
  .for-section { background: var(--bg); }
  .for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .for-card {
    padding: 36px 28px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: all 0.3s;
  }
  .for-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(77, 123, 255, 0.12);
  }
  .for-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--blue-bright);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .for-card h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    margin-bottom: 14px;
    color: var(--text);
  }
  .for-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
  }

  /* === Studio block — mascot signature === */
  .studio-section {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(77, 123, 255, 0.08), transparent 60%),
      var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .studio {
    padding: 56px;
    border: 1px solid var(--line-bright);
    background: var(--bg);
    position: relative;
  }
  .studio::before, .studio::after {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--blue-bright);
  }
  .studio::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .studio::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .studio-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 48px;
    align-items: center;
  }
  .studio-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--blue-bright);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .studio h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 20px;
  }
  .studio p {
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.75;
  }
  .studio p + p { margin-top: 12px; }
  .studio-mascot {
    width: 100%;
    aspect-ratio: 1;
    background-image: var(--logo);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 20px rgba(77, 123, 255, 0.3));
    opacity: 0.95;
  }

  /* === Final CTA === */
  .cta-section { background: var(--bg); }
  .cta-block {
    position: relative;
    padding: 80px 56px;
    text-align: center;
    border: 1px solid var(--line-bright);
    background:
      radial-gradient(ellipse at center, rgba(77, 123, 255, 0.12), transparent 65%),
      var(--bg-2);
    overflow: hidden;
  }
  .cta-block::before, .cta-block::after,
  .cta-corners::before, .cta-corners::after {
    content: ''; position: absolute;
    width: 24px; height: 24px;
    border: 2px solid var(--cyan);
    pointer-events: none;
  }
  .cta-block::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
  .cta-block::after { top: -2px; right: -2px; border-left: none; border-bottom: none; }
  .cta-corners::before { bottom: -2px; left: -2px; border-right: none; border-top: none; }
  .cta-corners::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }
  .lead {
    font-size: 17px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 40px;
  }
  .download-row {
    display: flex; gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .dl-btn {
    padding: 16px 28px;
    border: 1px solid var(--line-bright);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-width: 220px;
  }
  .dl-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
  .dl-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
  .dl-btn small { color: var(--text-faded); font-size: 10px; }
  .dl-btn.dl-primary {
    background: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
    box-shadow: 0 0 32px rgba(0,255,209,0.32);
  }
  .dl-btn.dl-primary:hover {
    box-shadow: 0 0 0 4px rgba(0,255,209,0.18), 0 0 44px rgba(0,255,209,0.5);
    color: var(--bg);
    border-color: var(--cyan);
  }
  .dl-btn.dl-primary small { color: rgba(7,9,15,0.65); }

  /* === Footer === */
  footer {
    border-top: 1px solid var(--line);
    padding: 48px 32px 32px;
    text-align: center;
    color: var(--text-faded);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  footer a { color: var(--blue-bright); text-decoration: none; }
  footer a:hover { color: var(--cyan); }
  .footer-mark {
    width: 36px; height: 36px;
    margin: 0 auto 16px;
    background-image: var(--logo);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    filter: grayscale(0.4);
  }
  .footer-links {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
  }
  .footer-links a { color: var(--text-dim); }
  .footer-links a:hover { color: var(--cyan); }
  .footer-sep { color: var(--text-faded); }

  /* === Reveal animations === */
  .reveal { opacity: 0; transform: translateY(20px); animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .reveal-1 { animation-delay: 0.1s; }
  .reveal-2 { animation-delay: 0.25s; }
  .reveal-3 { animation-delay: 0.4s; }
  .reveal-4 { animation-delay: 0.55s; }
  @keyframes reveal { to { opacity: 1; transform: translateY(0); } }

  /* === Responsive === */
  @media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: auto; gap: 16px; }
    .hero-mascot-wrap { min-height: 380px; order: -1; }
    .mascot { max-width: 320px; }
    .hero-pillars { grid-template-columns: 1fr; }
    .pain { grid-template-columns: 80px 1fr; gap: 20px; padding: 24px; }
    .pain-num { font-size: 64px; }
    .pain-right { grid-column: 1 / -1; padding-left: 0; padding-top: 20px; margin-top: 6px; border-left: none; border-top: 1px dashed var(--line-bright); }
    .ru-grid { grid-template-columns: 1fr; gap: 36px; }
    .inside-grid, .for-grid { grid-template-columns: 1fr; }
    .studio { padding: 36px 24px; }
    .studio-grid { grid-template-columns: 1fr; gap: 28px; }
    .studio-mascot { max-width: 160px; margin: 0 auto; }
    .cta-block { padding: 56px 24px; }
    section { padding: 64px 24px; }
    section.full { padding: 64px 0; }
    section.full > .inner { padding: 0 24px; }
  }