:root{
    --bg:#000000;
    --surface:#292929;
    --surface-raised:#353535;
    --border:#323233;
    --border-soft:#292929;
    --text:#FFFFFF;
    --text-secondary:#B5B5BD;
    --text-muted:#8D8D94;
    --accent:#975FF7;
    --accent-strong:#7C3AED;
    --accent-dark:#251D45;
    --success:#3DC564;
    --error:#E11D48;
    --on-accent:#FFFFFF;
    --shadow: 0 20px 60px rgba(0,0,0,0.45);
  }

  html[data-theme="light"]{
    --bg:#FFFFFF;
    --surface:#ECECED;
    --surface-raised:#FFFFFF;
    --border:#E4E4E7;
    --border-soft:#E4E4E7;
    --text:#18181B;
    --text-secondary:#52525B;
    --text-muted:#71717A;
    --accent:#975FF7;
    --accent-strong:#7C3AED;
    --accent-dark:#EDE9FE;
    --on-accent:#FFFFFF;
    --shadow: 0 20px 50px rgba(24,24,27,0.08);
  }

  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}

  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Rubik',sans-serif;
    font-weight:400;
    overflow-x:hidden;
    transition:background .35s ease, color .35s ease;
  }

  h1,h2,h3,h4{font-family:'Rubik',sans-serif; font-weight:600; letter-spacing:-0.01em;}

  a{color:inherit; text-decoration:none;}
  button{font-family:'Rubik',sans-serif; cursor:pointer;}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  }

  /* ---------------- background ---------------- */
  #bgwrap{
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    background:var(--bg);
    transition:background .35s ease;
  }

  .blob{
    position:absolute;
    border-radius:50%;
    filter:blur(90px);
    opacity:0.55;
    will-change:transform;
  }
  html[data-theme="light"] .blob{opacity:0.35; filter:blur(110px);}

  .blob-a{
    width:56vw; height:56vw;
    top:-18vw; left:-14vw;
    background:radial-gradient(circle, var(--accent), transparent 68%);
    animation:driftA 26s ease-in-out infinite;
  }
  .blob-b{
    width:44vw; height:44vw;
    bottom:-16vw; right:-10vw;
    background:radial-gradient(circle, var(--accent-strong), transparent 70%);
    animation:driftB 30s ease-in-out infinite;
  }
  .blob-c{
    width:38vw; height:38vw;
    top:38vh; left:34vw;
    background:radial-gradient(circle, #251D45, transparent 72%);
    animation:driftC 34s ease-in-out infinite;
  }
  html[data-theme="light"] .blob-c{background:radial-gradient(circle, #C4B5FD, transparent 72%);}

  @keyframes driftA{
    0%,100%{transform:translate(0,0) scale(1);}
    50%{transform:translate(6vw,8vh) scale(1.12);}
  }
  @keyframes driftB{
    0%,100%{transform:translate(0,0) scale(1);}
    50%{transform:translate(-7vw,-6vh) scale(1.08);}
  }
  @keyframes driftC{
    0%,100%{transform:translate(0,0) scale(1);}
    50%{transform:translate(-5vw,5vh) scale(0.92);}
  }

  #netcanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:0.5;
  }
  html[data-theme="light"] #netcanvas{opacity:0.28;}

  .bg-veil{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
  }
  html[data-theme="light"] .bg-veil{
    background:linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,0.95) 100%);
  }

  .content{position:relative; z-index:2;}

  .wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
  @media (max-width:720px){.wrap{padding:0 20px;}}


  /* ---------------- переключатель языка ---------------- */
  .lang-switch{
    display:inline-flex; align-items:center; gap:2px;
    border:1px solid var(--border); border-radius:50px; padding:3px;
  }
  .lang-switch button{
    border:none; background:transparent; color:var(--text-secondary);
    font-family:'Rubik',sans-serif; font-size:12.5px; font-weight:500;
    padding:6px 12px; border-radius:50px; transition:background .2s, color .2s;
  }
  .lang-switch button:hover{color:var(--text);}
  .lang-switch button.active{background:var(--accent); color:#fff;}
  @media (max-width:520px){
    .lang-switch button{padding:5px 9px; font-size:12px;}
  }


  /* ---------------- первый экран: текст слева, донаты справа ---------------- */
  .hero-split{
    display:grid; grid-template-columns:minmax(0,1fr) 440px;
    gap:56px; align-items:center; text-align:left;
  }
  @media (max-width:1080px){
    .hero-split{grid-template-columns:1fr; gap:40px; text-align:center;}
    .hero-split .hero-actions,
    .hero-split .hero-stats{justify-content:center;}
    .donate-feed{max-width:460px; margin-inline:auto;}
  }

  .hero-split h1{margin-bottom:20px;}
  .hero-split .hero-stats{margin-top:36px;}

  /* лента донатов */
  .donate-feed{display:flex; flex-direction:column; gap:12px;}

  .donate-card{
    background:var(--surface); border:1px solid var(--border);
    border-radius:16px; padding:14px 18px; text-align:left;
    animation:floatCard 7s ease-in-out infinite;
  }
  .donate-card:nth-child(2){animation-delay:2.3s;}
  .donate-card:nth-child(3){animation-delay:4.6s;}

  @keyframes floatCard{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-5px);}
  }
  @media (prefers-reduced-motion: reduce){.donate-card{animation:none;}}

  .donate-line{
    display:flex; align-items:baseline; gap:12px;
    margin-bottom:8px; white-space:nowrap;
  }
  .donate-name{font-size:14px; font-weight:500; color:var(--text);}
  .donate-date{font-size:12.5px; color:var(--text-muted);}
  .donate-sum{
    margin-left:auto; font-size:16px; font-weight:600; color:var(--accent);
  }
  .donate-sum span{font-size:12.5px; font-weight:400; color:var(--text-muted); margin-left:3px;}
  .donate-msg{font-size:14px; color:var(--text-secondary); line-height:1.5; white-space:normal;}

  @media (max-width:420px){
    .donate-line{gap:8px;}
    .donate-name,.donate-msg{font-size:13px;}
    .donate-sum{font-size:14.5px;}
  }


  /* метка типа события в ленте */
  .donate-tag{
    display:inline-block; font-size:10.5px; font-weight:500; letter-spacing:.02em;
    padding:3px 9px; border-radius:50px; margin-bottom:9px;
  }
  .tag-donate{color:#C9B4FF; background:color-mix(in srgb, var(--accent) 18%, transparent);}
  .tag-sub{color:#7FE3A0; background:color-mix(in srgb, #3DC564 16%, transparent);}
  .tag-post{color:#FFCF8B; background:color-mix(in srgb, #F59E0B 16%, transparent);}

  /* строка о том, что именно оплачено */
  .donate-what{
    font-size:13px; color:var(--text-muted); line-height:1.45;
    margin-top:6px; white-space:normal;
  }
  .donate-what b{color:var(--text-secondary); font-weight:500;}


  /* карточки ленты — всегда светлые, как в приложении при получении доната */
  .donate-card{
    background:#C9C9D0;
    border:1px solid #B4B4BC;
  }
  .donate-name{color:#18181B;}
  .donate-date{color:#5C5C63;}
  .donate-card .donate-msg{
    color:#000000;
    font-size:14px;
    max-width:none;
    margin:0;
  }
  .donate-card .donate-what{
    color:#000000;
    font-size:13px;
    max-width:none;
    margin:6px 0 0;
  }
  .donate-card .donate-what b{color:#000000; font-weight:600;}
  .donate-sum{color:#6D28D9;}
  .donate-sum span{color:#6E6E76;}

  .tag-donate{color:#FFFFFF; background:#7C3AED;}
  .tag-sub{color:#FFFFFF; background:#2E9E58;}
  .tag-post{color:#FFFFFF; background:#C2790C;}

  /* ---------------- header ---------------- */
  header{
    position:sticky; top:0; z-index:20;
    backdrop-filter:blur(16px);
    background:color-mix(in srgb, var(--bg) 65%, transparent);
    border-bottom:1px solid var(--border-soft);
  }
  .headerbar{
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 32px; max-width:1180px; margin:0 auto;
  }
  @media (max-width:720px){.headerbar{padding:14px 20px;}}

  .logo{display:flex; align-items:center; gap:10px;}
  .logo-mark{height:26px; width:auto; flex-shrink:0;}
  

  nav.mainnav{display:flex; gap:30px;}
  nav.mainnav a{font-size:14.5px; color:var(--text-secondary); transition:color .2s;}
  nav.mainnav a:hover{color:var(--text);}
  @media (max-width:900px){nav.mainnav{display:none;}}

  .header-actions{display:flex; align-items:center; gap:14px;}

  .icon-btn{
    width:38px; height:38px; border-radius:50px;
    display:flex; align-items:center; justify-content:center;
    background:transparent; border:1px solid var(--border);
    color:var(--text-secondary); transition:border-color .2s, color .2s;
  }
  .icon-btn:hover{border-color:var(--accent); color:var(--text);}
  .icon-btn svg{width:17px; height:17px;}

  .lang{
    display:flex; align-items:center; gap:6px;
    font-size:13.5px; color:var(--text-secondary);
    border:1px solid var(--border); padding:8px 14px; border-radius:50px;
    transition:border-color .2s, color .2s; position:relative;
  }
  .lang:hover{border-color:var(--accent); color:var(--text);}

  .btn{
    border:none; border-radius:50px; font-weight:500; font-size:14.5px;
    padding:11px 22px; transition:transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  }
  .btn-primary{
    background:linear-gradient(135deg, var(--accent), var(--accent-strong));
    color:var(--on-accent);
    box-shadow:0 10px 26px rgba(151,95,247,0.35);
  }
  .btn-primary:hover{transform:translateY(-2px); box-shadow:0 14px 32px rgba(151,95,247,0.48);}
  .btn-primary:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}
  .btn-ghost{
    background:transparent; color:var(--text); border:1px solid var(--border);
  }
  .btn-ghost:hover{border-color:var(--accent); background:color-mix(in srgb, var(--accent) 10%, transparent);}
  .btn-ghost:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}
  .btn-lg{padding:15px 30px; font-size:15.5px;}

  /* ---------------- hero ---------------- */
  .hero{padding:96px 0 100px; text-align:center;}
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13px; color:var(--accent); font-weight:500;
    letter-spacing:0.04em; margin-bottom:26px;
    border:1px solid var(--border); padding:7px 16px; border-radius:50px;
    background:color-mix(in srgb, var(--accent) 8%, transparent);
  }
  .eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--success); animation:pulse 2.2s ease-in-out infinite;}
  @keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.3;}}

  .hero h1{
    font-size:clamp(34px, 6vw, 64px);
    line-height:1.08;
    max-width:820px;
    margin:0 auto 22px;
  }
  .hero h1 .grad{
    background:linear-gradient(135deg, var(--accent), var(--accent-strong));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p{
    font-size:17.5px; color:var(--text-secondary); max-width:560px;
    margin:0 auto 40px; line-height:1.65;
  }
  .hero-actions{display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:56px;}

  .hero-stats{
    display:flex; justify-content:center; gap:56px; flex-wrap:wrap;
  }
  .hero-stat .num{font-size:26px; font-weight:600; color:var(--text); margin-bottom:4px;}
  .hero-stat .lab{font-size:13px; color:var(--text-muted);}

  /* ---------------- reveal ---------------- */
  .reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
  .reveal.is-visible{opacity:1; transform:translateY(0);}

  /* ---------------- section shared ---------------- */
  .section-pad{padding:100px 0;}
  .section-head{max-width:600px; margin:0 auto 60px; text-align:center;}
  .section-eyebrow{
    font-size:13px; color:var(--accent); font-weight:500;
    letter-spacing:0.05em; text-transform:uppercase; margin-bottom:14px;
  }
  .section-head h2{font-size:clamp(26px,3.6vw,38px); margin-bottom:14px; line-height:1.18;}
  .section-head p{color:var(--text-secondary); font-size:16px; line-height:1.6;}

  /* ---------------- steps ---------------- */
  .steps{
    display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  }
  @media (max-width:900px){.steps{grid-template-columns:1fr 1fr;}}
  @media (max-width:560px){.steps{grid-template-columns:1fr;}}

  .step{
    background:var(--surface); border:1px solid var(--border);
    border-radius:16px; padding:30px 24px; position:relative;
  }
  .step-num{
    font-size:13px; color:var(--accent); font-weight:600; margin-bottom:18px;
    display:inline-block; padding:4px 10px; border-radius:8px;
    background:var(--accent-dark);
  }
  .step h3{font-size:17px; margin-bottom:10px;}
  .step p{font-size:14px; color:var(--text-secondary); line-height:1.6;}

  /* ---------------- features ---------------- */
  .feature-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  }
  @media (max-width:900px){.feature-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:600px){.feature-grid{grid-template-columns:1fr;}}

  .feature{
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:28px 24px; transition:border-color .25s, transform .25s;
  }
  .feature:hover{border-color:var(--accent); transform:translateY(-3px);}
  .feature-icon{
    width:44px; height:44px; border-radius:12px;
    background:var(--accent-dark);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:20px;
  }
  .feature-icon svg{width:22px; height:22px;}
  .feature h3{font-size:16.5px; margin-bottom:8px;}
  .feature p{font-size:14px; color:var(--text-secondary); line-height:1.6;}

  /* ---------------- creators ---------------- */
  .creator-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
  }
  @media (max-width:960px){.creator-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:560px){.creator-grid{grid-template-columns:1fr;}}

  .creator-card{
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:24px; text-align:center; transition:transform .25s, border-color .25s;
  }
  .creator-card:hover{transform:translateY(-4px); border-color:var(--accent);}
  .avatar{
    width:72px; height:72px; border-radius:50%; margin:0 auto 16px;
    display:flex; align-items:center; justify-content:center;
    font-size:22px; font-weight:600; color:#fff;
  }
  .creator-card h3{font-size:16px; margin-bottom:4px;}
  .creator-cat{font-size:13px; color:var(--accent); margin-bottom:10px;}
  .creator-subs{font-size:13px; color:var(--text-muted);}

/* ---------------- testimonials ---------------- */
  .testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
  @media (max-width:900px){.testi-grid{grid-template-columns:1fr;}}

  .testi-card{
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:28px 26px; display:flex; flex-direction:column; gap:18px;
  }
  .testi-quote{font-size:14.5px; line-height:1.65; color:var(--text);}
  .testi-person{display:flex; align-items:center; gap:12px;}
  .testi-avatar{width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:14px; color:#fff;}
  .testi-name{font-size:14px; font-weight:500;}
  .testi-role{font-size:12.5px; color:var(--text-muted);}

  /* ---------------- final cta ---------------- */
  .final-cta{
    border-radius:24px; padding:70px 40px; text-align:center;
    background:linear-gradient(135deg, var(--accent-dark), var(--surface));
    border:1px solid var(--border); position:relative; overflow:hidden;
  }
  .final-cta h2{font-size:clamp(26px,3.6vw,36px); margin-bottom:16px;}
  .final-cta p{color:var(--text-secondary); margin-bottom:32px; max-width:480px; margin-left:auto; margin-right:auto;}

  /* ---------------- footer ---------------- */
  footer{border-top:1px solid var(--border-soft); padding:50px 0 40px;}
  .foot-top{
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;
    margin-bottom:40px;
  }
  .foot-brand p{font-size:13.5px; color:var(--text-muted); max-width:260px; margin-top:14px; line-height:1.6;}
  .foot-cols{display:flex; gap:56px; flex-wrap:wrap;}
  .foot-col h4{font-size:13px; color:var(--text-muted); font-weight:500; margin-bottom:14px; text-transform:uppercase; letter-spacing:0.04em;}
  .foot-col a{display:block; font-size:14px; color:var(--text-secondary); margin-bottom:10px; transition:color .2s;}
  .foot-col a:hover{color:var(--text);}
  .foot-bottom{
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
    padding-top:24px; border-top:1px solid var(--border-soft);
  }
  .foot-copy{font-size:13px; color:var(--text-muted);}
