/* ================================================
   NodeAccess — Главная страница
   style.css
   ================================================ */

  :root {
    --bg: #0a0c0a;
    --bg2: #0f120f;
    --bg3: #141814;
    --surface: #1a1f1a;
    --surface2: #212621;
    --border: #2a322a;
    --green: #3dff6e;
    --green-dim: #2bcc55;
    --green-glow: rgba(61, 255, 110, 0.12);
    --green-glow2: rgba(61, 255, 110, 0.06);
    --text: #e8f0e8;
    --text2: #9aaa9a;
    --text3: #5a6a5a;
    --mono: 'Geist Mono', monospace;
    --sans: 'Geist', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 16px;
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
  }

  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 clamp(20px, 5vw, 80px);
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 12, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .nav-logo-icon {
    width: 28px; height: 28px;
    background: var(--green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
  }
  .nav-logo-text { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: 0.05em; }
  .nav-logo-text span { color: var(--green); }

  .nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-links a {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 600; color: var(--text2);
    text-decoration: none; font-family: var(--mono);
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 6px;
    transition: all 0.2s;
  }
  .nav-links a svg { opacity: 0.6; transition: opacity 0.2s; flex-shrink: 0; }
  .nav-links a:hover { color: var(--green); background: rgba(61,255,110,0.06); }
  .nav-links a:hover svg { opacity: 1; color: var(--green); }

  .nav-right { display: flex; align-items: center; gap: 12px; }

  .nav-lang {
    font-family: var(--mono); font-size: 11px; font-weight: 600;
    color: var(--text3); letter-spacing: 0.08em;
    background: none; border: 1px solid var(--border);
    border-radius: 4px; padding: 5px 10px; cursor: pointer;
    transition: all 0.2s; text-transform: uppercase;
  }
  .nav-lang:hover { color: var(--text2); border-color: var(--text3); }

  .nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: #0a0c0a;
    padding: 8px 18px; border-radius: 6px;
    font-size: 12px; font-weight: 700;
    text-decoration: none; font-family: var(--mono);
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: all 0.2s; white-space: nowrap;
  }
  .nav-cta svg { flex-shrink: 0; }
  .nav-cta:hover { background: #fff; box-shadow: 0 0 20px rgba(61,255,110,0.3); }

  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 100px clamp(20px, 5vw, 80px) 80px;
    position: relative; overflow: hidden;
    text-align: center;
  }

  .hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    max-width: 860px; width: 100%;
  }

  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(61,255,110,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(61,255,110,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  }
  .hero-glow {
    position: absolute; top: 20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(61,255,110,0.07) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-glow2 {
    position: absolute; bottom: 0; right: -5%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(61,255,110,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 100px;
    font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--green);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease both;
  }
  .hero-badge svg { color: var(--green); flex-shrink: 0; }

  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

  .hero h1 {
    font-size: clamp(40px, 8vw, 96px);
    font-weight: 900; line-height: 1.0;
    letter-spacing: -0.04em; max-width: 820px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s 0.1s ease both;
  }
  .hero h1 .accent { color: var(--green); }
  .hero h1 .dim { color: var(--text3); }

  .hero-sub {
    font-size: clamp(17px, 2vw, 21px); color: var(--text2);
    max-width: 560px; font-weight: 400; margin-bottom: 44px; line-height: 1.75;
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s 0.2s ease both;
  }

  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; animation: fadeInUp 0.6s 0.3s ease both; }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: #0a0c0a;
    padding: 14px 28px; border-radius: 6px;
    font-size: 15px; font-weight: 700;
    text-decoration: none; font-family: var(--sans);
    transition: all 0.25s;
    box-shadow: 0 0 30px rgba(61,255,110,0.2);
  }
  .btn-primary:hover { background: #fff; box-shadow: 0 0 50px rgba(61,255,110,0.35); transform: translateY(-2px); }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text2); padding: 14px 24px; border-radius: 6px;
    border: 1px solid var(--border); font-size: 15px; font-weight: 500;
    text-decoration: none; transition: all 0.25s;
  }
  .btn-ghost:hover { border-color: var(--green); color: var(--green); }

  .hero-stats {
    display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
    margin-top: 64px; padding-top: 40px; width: 100%;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s 0.4s ease both;
  }
  .stat-value { font-family: var(--mono); font-size: clamp(24px, 3vw, 36px); font-weight: 600; color: var(--text); display: block; }
  .stat-value span { color: var(--green); }
  .stat-label { font-size: 13px; color: var(--text3); display: block; margin-top: 5px; font-family: var(--sans); letter-spacing: 0; }

  @keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

  section { padding: 100px clamp(20px, 5vw, 80px); }

  .section-label {
    font-family: var(--sans); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--green); margin-bottom: 18px;
    display: flex; align-items: center; gap: 12px;
  }
  .section-label::after { content: ''; height: 1px; flex: 1; max-width: 60px; background: var(--green); opacity: 0.4; }
  .section-title { font-size: clamp(32px, 5vw, 54px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px; }
  .section-sub { font-size: 18px; color: var(--text2); max-width: 560px; line-height: 1.75; margin-bottom: 60px; letter-spacing: -0.01em; }
  .section-header { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .section-label { justify-content: center; }
  .section-label::after { display: none; }

  #features { background: var(--bg2); }

  .features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  }
  .feature-card { background: var(--bg2); padding: 36px 32px; transition: background 0.2s; }
  .feature-card:hover { background: var(--surface); }
  .feature-card:hover .feature-icon { background: var(--green-glow); border-color: rgba(61,255,110,0.3); }
  .feature-icon {
    width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 20px; transition: all 0.2s; color: var(--green);
  }
  .feature-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
  .feature-desc { font-size: 15px; color: var(--text2); line-height: 1.7; }

  #how { background: var(--bg); }

  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; position: relative; }
  .steps::before {
    content: ''; position: absolute; top: 28px; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-dim) 20%, var(--green-dim) 80%, transparent);
    opacity: 0.3;
  }
  .step { padding: 0 32px 0 0; }
  .step-num { font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: 0.1em; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
  .step-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(61,255,110,0.3); }
  .step-title { font-size: 21px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
  .step-desc { font-size: 15px; color: var(--text2); line-height: 1.75; }
  .step-code { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-family: var(--mono); font-size: 12px; color: var(--green); margin-top: 8px; }

  #pricing { background: var(--bg2); }

  .period-switcher {
    display: flex; gap: 6px; justify-content: center;
    margin: 0 auto 40px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 5px;
    width: fit-content; max-width: 90%;
  }
  .period-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    color: var(--text3); padding: 8px 16px; border-radius: 7px;
    letter-spacing: 0.05em; transition: all 0.2s; white-space: nowrap;
  }
  .period-btn:hover { color: var(--text2); }
  .period-btn.active { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
  .period-save {
    background: rgba(61,255,110,0.15); color: var(--green);
    font-size: 10px; padding: 2px 6px; border-radius: 4px;
    font-weight: 700; letter-spacing: 0.05em;
  }

  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }

  .plan-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px; position: relative;
    transition: all 0.25s; display: flex; flex-direction: column;
  }
  .plan-card:hover { border-color: rgba(61,255,110,0.35); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(61,255,110,0.08); }
  .plan-card.popular { border-color: rgba(61,255,110,0.45); background: linear-gradient(160deg, rgba(61,255,110,0.06) 0%, var(--surface) 60%); }

  .plan-badge {
    position: absolute; top: -12px; right: 18px;
    background: var(--green); color: #0a0c0a;
    font-family: var(--mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; padding: 4px 12px; border-radius: 100px;
    text-transform: uppercase; white-space: nowrap;
  }

  .plan-devices {
    display: flex; align-items: baseline; gap: 6px;
    margin-bottom: 6px;
  }
  .plan-devices-num {
    font-size: 42px; font-weight: 900; letter-spacing: -0.04em;
    color: var(--green); line-height: 1;
  }
  .plan-devices-label {
    font-family: var(--mono); font-size: 12px; color: var(--text3);
    letter-spacing: 0.05em; text-transform: uppercase;
  }

  .plan-name {
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
    margin-bottom: 20px; color: var(--text);
  }

  .plan-price-row {
    display: flex; align-items: flex-end; gap: 12px;
    margin-bottom: 6px;
  }
  .plan-price {
    font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  }
  .plan-price .rub { font-size: 22px; font-weight: 600; vertical-align: top; margin-top: 5px; display: inline-block; }
  .plan-price .period { font-size: 13px; font-weight: 400; color: var(--text3); letter-spacing: 0; }
  .plan-price-usd {
    font-family: var(--mono); font-size: 13px; color: var(--text3);
    padding-bottom: 6px; white-space: nowrap;
  }
  .plan-price-usd span { font-size: 11px; }

  .plan-total {
    font-family: var(--mono); font-size: 11px; color: var(--text3);
    margin-bottom: 20px; min-height: 16px;
  }
  .plan-total .save { color: var(--green); font-weight: 600; }

  .plan-divider { height: 1px; background: var(--border); margin-bottom: 20px; }

  .plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .plan-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--text2); line-height: 1.5;
  }
  .plan-features li::before { content: '→'; color: var(--green); font-family: var(--mono); font-size: 11px; flex-shrink: 0; }

  .pricing-note {
    text-align: center; margin-top: 24px;
    font-family: var(--mono); font-size: 11px;
    color: var(--text3); letter-spacing: 0.06em;
  }

  #platforms { background: var(--bg); }

  .platforms-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .platform-chip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s; font-family: var(--sans); }
  .platform-chip:hover { border-color: rgba(61,255,110,0.3); color: var(--green); }
  .platform-chip .icon { font-size: 18px; }
  .apps-label { font-family: var(--mono); font-size: 12px; color: var(--text3); margin: 32px 0 16px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
  .apps-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .app-chip { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--border); padding: 8px 16px; border-radius: 6px; font-family: var(--sans); font-size: 13px; color: var(--text2); }
  .app-chip .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; }

  .cta-banner {
    margin: 0 clamp(20px, 5vw, 80px) 100px;
    background: var(--surface); border: 1px solid rgba(61,255,110,0.2); border-radius: 16px;
    padding: clamp(40px, 6vw, 80px);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px;
    position: relative; overflow: hidden;
  }
  .cta-banner::before { content: ''; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(61,255,110,0.08) 0%, transparent 70%); pointer-events: none; }
  .cta-banner-text h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 14px; }
  .cta-banner-text p { font-size: 17px; color: var(--text2); max-width: 420px; line-height: 1.7; letter-spacing: -0.01em; }

  footer { border-top: 1px solid var(--border); padding: 40px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
  .footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .footer-logo-icon { width: 22px; height: 22px; background: var(--green); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); flex-shrink: 0; }
  .footer-logo-text { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text2); }
  .footer-logo-text span { color: var(--green); }
  .footer-links { display: flex; gap: 24px; list-style: none; }
  .footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; font-family: var(--mono); transition: color 0.2s; }
  .footer-links a:hover { color: var(--text2); }
  .footer-copy { font-family: var(--mono); font-size: 12px; color: var(--text3); }

  @media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
      display: flex; flex-direction: column; gap: 0;
      position: fixed; top: 64px; left: 0; right: 0;
      background: rgba(10,12,10,0.97);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 8px 0; z-index: 99;
    }
    .nav-links.open a { padding: 14px clamp(20px,5vw,80px); font-size: 13px; display: flex; }
    .burger {
      display: flex; flex-direction: column; justify-content: center; gap: 5px;
      width: 36px; height: 36px; cursor: pointer;
      background: none; border: none; padding: 4px;
    }
    .burger span {
      display: block; height: 2px; background: var(--text2); border-radius: 2px;
      transition: all 0.25s;
    }
    .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger.open span:nth-child(2) { opacity: 0; }
    .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }
    .cta-banner { text-align: center; justify-content: center; }
    .hero-stats { gap: 24px; }
    footer { flex-direction: column; align-items: flex-start; }
  }
  @media (min-width: 769px) { .burger { display: none; } }

  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  /* ================================================
     Document pages (oferta.html, privacy.html)
     ================================================ */

  .back-link {
    font-family: var(--mono); font-size: 13px; color: var(--text2);
    text-decoration: none; display: flex; align-items: center; gap: 8px;
    transition: color 0.2s;
  }
  .back-link:hover { color: var(--green); }

  main {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px clamp(20px, 5vw, 40px) 80px;
  }

  .doc-label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--green); margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .doc-label::after { content: ''; height: 1px; flex: 1; max-width: 60px; background: var(--green); opacity: 0.4; }

  .doc-meta {
    font-family: var(--mono); font-size: 12px; color: var(--text3);
    margin-bottom: 48px; padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }

  main h1 {
    font-size: clamp(28px, 5vw, 44px); font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.1;
    margin-bottom: 8px;
  }

  main h2 {
    font-size: 18px; font-weight: 700;
    margin: 40px 0 12px; color: var(--text);
    font-family: var(--mono); letter-spacing: 0.02em;
  }
  main h2::before { content: '// '; color: var(--green); }

  main p { font-size: 15px; color: var(--text2); line-height: 1.8; margin-bottom: 16px; }

  main ul { padding-left: 0; list-style: none; margin-bottom: 16px; }
  main ul li {
    font-size: 15px; color: var(--text2); line-height: 1.8;
    padding-left: 20px; position: relative; margin-bottom: 8px;
  }
  main ul li::before { content: '→'; color: var(--green); position: absolute; left: 0; font-family: var(--mono); font-size: 12px; top: 3px; }

  main strong { color: var(--text); font-weight: 600; }
  main a { color: var(--green); text-decoration: none; }
  main a:hover { text-decoration: underline; }

  .section-divider { height: 1px; background: var(--border); margin: 32px 0; }

  .no-logs-banner {
    background: rgba(61,255,110,0.06);
    border: 1px solid rgba(61,255,110,0.25);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex; align-items: center; gap: 16px;
  }
  .no-logs-icon { font-size: 28px; flex-shrink: 0; }
  .no-logs-text { font-family: var(--mono); font-size: 13px; color: var(--green); line-height: 1.6; }
