/* ===== Ionex site — shared styles ===== */
:root{
    --bg:#000000;
    --panel:#0d0e11;
    --line:rgba(255,255,255,0.09);
    --line-2:rgba(255,255,255,0.16);
    --ink:#f4f5f6;
    --muted:#9a9ea6;
    --muted-2:#5f636b;
    --cyan:#49E1FF;
    --ice:#A5F3FF;
    --electric:#2D7DFF;
    --mint:#34D399;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html,body{ background:var(--bg) !important; }
  body{
    color:var(--ink);
    font-family:'Space Grotesk',sans-serif;
    -webkit-font-smoothing:antialiased;
    line-height:1.5;
  }
  .mono{font-family:'IBM Plex Mono',monospace;}
  a{color:inherit; text-decoration:none;}
  .wrap{max-width:1080px;margin:0 auto;padding:0 28px;}

  #scrollbar{
    position:fixed; top:0; left:0; height:2px; width:100%;
    z-index:70; pointer-events:none;
    background:linear-gradient(90deg, #A5F3FF, #49E1FF, #2D7DFF, #34D399, #8CFF3F, #A78BFA, #FF5E7A, #FFCE3F);
    transform:scaleX(0); transform-origin:left;
  }
  header{
    position:sticky; top:0; z-index:50;
    background:rgba(0,0,0,0.8); backdrop-filter:blur(12px);
    border-bottom:1px solid var(--line);
    padding:16px 0;
  }
  .header-inner{display:flex;align-items:center;justify-content:space-between;}
  .logo svg{ height:24px; display:block; }
  nav{display:flex;gap:26px;font-size:14px;color:var(--muted);}
  nav a:hover{color:var(--ink);}
  .header-actions{ display:flex; align-items:center; gap:16px; }
  .header-signin{ font-size:14px; color:var(--muted); transition:color .15s; }
  .header-signin:hover{ color:var(--ink); }
  .lang-switch{ display:inline-flex; align-items:center; gap:2px; padding:2px; border:1px solid var(--line-2); border-radius:999px; }
  .lang-switch button{ font-family:inherit; font-size:12px; font-weight:600; letter-spacing:0.03em; color:var(--muted); background:none; border:0; padding:5px 10px; border-radius:999px; cursor:pointer; transition:color .15s, background .15s; }
  .lang-switch button:hover{ color:var(--ink); }
  .lang-switch button.active{ color:var(--ink); background:rgba(255,255,255,0.12); }
  .lang-select{ font-family:inherit; font-size:13px; color:var(--ink); background-color:var(--panel); border:1px solid var(--line-2); border-radius:999px; padding:7px 30px 7px 14px; cursor:pointer; appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ea6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 11px center; }
  .lang-select:hover{ border-color:#fff; }
  .lang-select:focus{ outline:none; border-color:var(--cyan); }
  @media(max-width:520px){ .header-signin{ display:none; } }
  @media(max-width:720px){ nav{display:none;} }
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 22px;border-radius:999px;
    font-weight:600;font-size:14px;
    border:1px solid transparent;cursor:pointer;
  }
  .btn{ transition:transform .12s ease, background .15s, border-color .15s; }
  .btn:active{ transform:scale(0.96); }
  .btn-primary{ background:#fff;color:#000; position:relative; overflow:hidden; }
  .btn-primary::after{
    content:''; position:absolute; top:-20%; bottom:-20%; width:36%;
    left:-50%; transform:skewX(-22deg);
    background:linear-gradient(90deg, transparent, rgba(165,220,255,0.5), transparent);
    animation:sheen 5.5s ease-in-out infinite;
  }
  @keyframes sheen{
    0%, 74%{ left:-50%; }
    88%, 100%{ left:130%; }
  }
  .btn-primary:hover{ background:#e2e4e7; }
  .btn-ghost{ border-color:var(--line-2); color:var(--ink); }
  .btn-ghost:hover{ border-color:#fff; }
  .btn-sm{ padding:9px 18px; font-size:13px; }

  /* HERO */
  .hero{ padding:148px 0 96px; text-align:center; border-bottom:1px solid var(--line); }
  .chip{
    display:inline-flex;align-items:center;gap:12px;
    border:1px solid var(--line-2); border-radius:999px;
    padding:9px 18px 9px 9px; font-size:14.5px; font-weight:500; color:var(--ink);
    margin-bottom:58px;
  }
  .chip .badge{
    font-family:'IBM Plex Mono',monospace;
    font-size:11.5px; font-weight:500; letter-spacing:0.08em;
    color:var(--mint);
    border:1px solid rgba(52,211,153,0.55);
    border-radius:999px; padding:4px 11px;
    animation:badgepulse 3.4s ease-in-out infinite;
  }
  @keyframes badgepulse{
    0%,100%{ box-shadow:0 0 0 rgba(52,211,153,0); border-color:rgba(52,211,153,0.55); }
    50%{ box-shadow:0 0 14px rgba(52,211,153,0.35); border-color:rgba(52,211,153,0.85); }
  }
  h1{
    font-size:clamp(38px, 6.4vw, 64px);
    line-height:1.16; letter-spacing:-0.02em; font-weight:700;
    max-width:900px; margin:0 auto 26px;
  }
  .brand-line{ display:inline-block; margin-top:14px; }
  
  #brandWord{
    display:inline-block; position:relative; padding-bottom:10px;
    transition:opacity .3s ease, transform .3s ease;
  }
  #brandWord::after{
    content:''; position:absolute; left:2px; right:2px; bottom:0;
    height:2px; border-radius:1px;
    background:linear-gradient(90deg, var(--g1,#49E1FF), var(--g2,#A78BFA), var(--g1,#49E1FF));
    background-size:220% 100%;
    box-shadow:0 0 16px var(--g1,#49E1FF), 0 0 5px var(--g2,#A78BFA);
    transform:scaleX(0); transform-origin:left;
  }
  #brandWord.bar-run::after{
    animation:
      barwipe .45s cubic-bezier(.3,.9,.3,1) .28s forwards,
      shimmer 2.2s linear .75s infinite;
  }
  @keyframes barwipe{ to{ transform:scaleX(1); } }
  @keyframes shimmer{ 0%{ background-position:0% 0; } 100%{ background-position:220% 0; } }
  #brandWord.out{ opacity:0; transform:translateY(8px); }
  .lede{
    font-size:18px; color:var(--muted); max-width:560px; margin:52px auto 52px;
  }
  .cta-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:84px; }

  
  .strip-holder{ position:relative; max-width:720px; margin:0 auto; }
  .rate-strip{
    display:flex; border:1px solid rgba(165,243,255,0.30); border-radius:14px; overflow:hidden;
    background:var(--panel); text-align:left;
    box-shadow:0 0 26px rgba(73,225,255,0.13), inset 0 0 26px rgba(73,225,255,0.045);
    animation:breath 5s ease-in-out infinite;
  }
  @keyframes breath{
    0%,100%{ box-shadow:0 0 22px rgba(73,225,255,0.10), inset 0 0 22px rgba(73,225,255,0.035); border-color:rgba(165,243,255,0.22); }
    50%{ box-shadow:0 0 40px rgba(165,243,255,0.20), inset 0 0 30px rgba(73,225,255,0.07); border-color:rgba(220,250,255,0.42); }
  }
  .rate-cell{ flex:1; padding:18px 20px 16px; border-right:1px solid var(--line); }
  .rate-cell:last-child{ border-right:none; }
  .rate-cell .label{ font-size:12px; color:var(--muted-2); margin-bottom:5px; }
  .rate-cell .val{ font-family:'IBM Plex Mono',monospace; font-size:14.5px; margin-bottom:7px; }
  .rate-cell .desc{ font-size:12px; color:var(--muted); line-height:1.45; }

  section{ padding:96px 0; border-bottom:1px solid var(--line); }
  .section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:48px; }
  h2{ font-size:26px; letter-spacing:-0.01em; font-weight:700; }
  .count{ font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--muted-2); }

  .brand-grid{
    position:relative;
    display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
    background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  }
  .brand-grid::after{
    content:''; position:absolute; top:-30%; bottom:-30%; width:22%;
    left:-40%; transform:skewX(-18deg); pointer-events:none;
    background:linear-gradient(90deg, transparent, rgba(180,230,255,0.07), transparent);
    animation:gridsweep 7s ease-in-out infinite;
  }
  @keyframes gridsweep{
    0%, 62%{ left:-40%; }
    86%, 100%{ left:130%; }
  }
  .brand-cell{
    background:var(--panel); padding:22px 18px;
    font-size:15px; font-weight:700; min-height:64px;
    display:flex; align-items:center; letter-spacing:0.01em;
    transition:background .18s, transform .18s;
  }
  .brand-cell:not(.more):hover{ background:#15161b; transform:translateY(-2px); }
  .brand-cell.flare{ transform:scale(1.04); filter:brightness(1.45); transition:transform .3s, filter .3s; }
  .brand-cell.more{ color:var(--muted-2); font-weight:500; }
  
  
  .c-steam{ color:#35C8FF; text-shadow:0 0 14px rgba(53,200,255,0.5); }
  .c-fortnite{ color:#3FF0FF; text-shadow:0 0 14px rgba(63,240,255,0.5); }
  .c-paypal{ color:#79B9FF; text-shadow:0 0 14px rgba(121,185,255,0.45); }
  .c-ps{ color:#7D8CFF; text-shadow:0 0 14px rgba(125,140,255,0.5); }
  
  .c-xbox{ color:#8CFF3F; text-shadow:0 0 14px rgba(140,255,63,0.45); }
  .c-minecraft{ color:#5DFF8F; text-shadow:0 0 14px rgba(93,255,143,0.45); }
  .c-epic{ color:#B879FF; text-shadow:0 0 14px rgba(184,121,255,0.45); }
  .c-roblox{ color:#FF5E7A; text-shadow:0 0 14px rgba(255,94,122,0.45); }
  
  .c-amazon{ color:#FFB13F; text-shadow:0 0 14px rgba(255,177,63,0.45); }
  .c-pubg{ color:#FFCE3F; text-shadow:0 0 14px rgba(255,206,63,0.4); }

  
  .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
  .step{
    position:relative;
    border:1px solid var(--line); border-radius:14px; padding:30px 28px; background:var(--panel);
    overflow:hidden;
    transition:border-color .2s, transform .2s, box-shadow .25s;
  }
  .step:hover{ border-color:var(--line-2); transform:translateY(-3px); }
  /* step glow: ice (start) -> cyan (action) -> mint (done) */
  .step, .trust-card{ animation:glowbreathe 5.2s ease-in-out infinite; }
  .step:nth-child(2){ animation-delay:1.3s; }
  .step:nth-child(3){ animation-delay:2.6s; }
  .trust-card:nth-child(2){ animation-delay:1.8s; }
  @keyframes glowbreathe{ 0%,100%{ filter:brightness(1); } 50%{ filter:brightness(1.12); } }
  .step:nth-child(1){ box-shadow:0 0 60px -24px rgba(165,243,255,0.32); border-color:rgba(165,243,255,0.14); }
  .step:nth-child(1):hover{ box-shadow:0 0 80px -20px rgba(165,243,255,0.5); }
  .step:nth-child(1) .num{ color:rgba(165,243,255,0.22); }
  .step:nth-child(2){ box-shadow:0 0 60px -24px rgba(73,225,255,0.34); border-color:rgba(73,225,255,0.15); }
  .step:nth-child(2):hover{ box-shadow:0 0 80px -20px rgba(73,225,255,0.52); }
  .step:nth-child(2) .num{ color:rgba(73,225,255,0.22); }
  .step:nth-child(3){ box-shadow:0 0 60px -24px rgba(52,211,153,0.32); border-color:rgba(52,211,153,0.15); }
  .step:nth-child(3):hover{ box-shadow:0 0 80px -20px rgba(52,211,153,0.5); }
  .step:nth-child(3) .num{ color:rgba(52,211,153,0.24); }
  .step .num{
    position:absolute; top:50%; right:-6px; transform:translateY(-46%);
    font-family:'IBM Plex Mono',monospace;
    font-size:118px; font-weight:600; line-height:1;
    color:rgba(143,166,184,0.10);
    pointer-events:none; z-index:0;
  }
  .step h3{ font-size:17px; margin-bottom:8px; font-weight:600; position:relative; z-index:1; }
  .step p{ font-size:14px; color:var(--muted); position:relative; z-index:1; }

  .company{ display:grid; grid-template-columns:1fr 1fr; gap:64px; }
  .company dt{
    font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted-2);
    text-transform:uppercase; letter-spacing:0.06em; margin-top:22px;
  }
  .company dt:first-child{ margin-top:0; }
  .company dd{ margin:5px 0 0; font-size:15px; }
  .ionika-link{
    color:var(--ink);
    border-bottom:1px solid rgba(255,255,255,0.55);
    padding-bottom:2px;
  }
  .ionika-link:hover{ border-bottom-color:rgba(255,255,255,0.9); }
  .planet-o{
    display:inline-flex; width:24px; height:24px; margin:0 1px;
    vertical-align:-3px;
    border-radius:50%; overflow:hidden; flex:none;
    box-shadow:0 0 12px rgba(73,225,255,0.4), inset 0 0 5px rgba(73,225,255,0.25);
  }
  .planet-o svg{ width:100%; height:100%; display:block; }

  .trust-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
  .trust-card{
    border:1px solid var(--line); border-radius:14px; padding:28px; background:var(--panel);
    transition:border-color .2s, transform .2s, box-shadow .25s;
  }
  .trust-card:hover{ border-color:var(--line-2); transform:translateY(-3px); }
  .trust-card:nth-child(1){ box-shadow:0 0 60px -24px rgba(255,94,122,0.36); border-color:rgba(255,94,122,0.16); }
  .trust-card:nth-child(1):hover{ box-shadow:0 0 80px -20px rgba(255,94,122,0.55); }
  .trust-card:nth-child(2){ box-shadow:0 0 60px -24px rgba(52,211,153,0.36); border-color:rgba(52,211,153,0.16); }
  .trust-card:nth-child(2):hover{ box-shadow:0 0 80px -20px rgba(52,211,153,0.55); }
  .trust-card .ticon{
    width:46px; height:46px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:16px;
    background:rgba(52,211,153,0.07);
    border:1px solid rgba(52,211,153,0.25);
  }
  .trust-card .ticon.scarlet{ background:rgba(255,94,122,0.07); border-color:rgba(255,94,122,0.28); }
  .trust-card .ticon svg{ width:26px; height:26px; display:block; }
  .trust-card:nth-child(1) .ticon{ animation:iconpulse-red 4.4s ease-in-out infinite; }
  .trust-card:nth-child(2) .ticon{ animation:iconpulse-mint 4.4s ease-in-out 1.4s infinite; }
  @keyframes iconpulse-red{ 0%,100%{ box-shadow:0 0 0 rgba(255,94,122,0); } 50%{ box-shadow:0 0 16px rgba(255,94,122,0.4); } }
  @keyframes iconpulse-mint{ 0%,100%{ box-shadow:0 0 0 rgba(52,211,153,0); } 50%{ box-shadow:0 0 16px rgba(52,211,153,0.4); } }
  .trust-card h3{ font-size:16px; margin-bottom:10px; font-weight:600; }
  .trust-card p{ font-size:14px; color:var(--muted); line-height:1.6; }

  footer{ padding:72px 0 40px; border-top:1px solid var(--line); }
  .footer-grid{ display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:48px; padding-bottom:44px; }
  .footer-brand{ max-width:320px; }
  .footer-logo{ display:inline-block; margin-bottom:16px; }
  .footer-logo-svg{ height:22px; display:block; }
  .footer-tag{ font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:22px; }
  .footer-col{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
  .footer-col h4{ font-size:12px; font-weight:600; letter-spacing:0.09em; text-transform:uppercase; color:var(--muted-2); margin-bottom:4px; }
  .footer-col a{ font-size:14px; color:var(--muted); transition:color .15s; }
  .footer-col a:hover{ color:var(--ink); }
  .footer-link-btn{ font-family:inherit; font-size:14px; color:var(--muted); background:none; border:0; padding:0; cursor:pointer; text-align:left; transition:color .15s; }
  .footer-link-btn:hover{ color:var(--ink); }
  .footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:14px; padding-top:26px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted-2); }
  .footer-bottom a{ color:var(--muted); transition:color .15s; }
  .footer-bottom a:hover{ color:var(--ink); }
  @media(max-width:760px){
    .footer-grid{ grid-template-columns:1fr 1fr; gap:36px 24px; }
    .footer-brand{ grid-column:1 / -1; max-width:none; }
    .footer-bottom{ flex-direction:column; gap:10px; align-items:flex-start; }
  }
  @media(max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }
  .socials{ display:flex; gap:10px; }
  .socials a{
    width:38px; height:38px; border-radius:50%; background:#fff;
    display:flex; align-items:center; justify-content:center;
    transition:transform .12s;
  }
  .socials a:hover{ transform:translateY(-3px) scale(1.06); }
  .socials a:active{ transform:scale(0.88); }
  .socials a.soon{ opacity:.45; pointer-events:none; }
  /* staggered pop-in when the footer scrolls into view */
  .socials a{ opacity:0; transform:translateY(10px) scale(.8); }
  .socials.in a{ opacity:1; transform:none; transition:opacity .45s ease, transform .45s cubic-bezier(.3,1.4,.4,1); }
  .socials.in a.soon{ opacity:.45; }
  .socials.in a:nth-child(1){ transition-delay:.00s; }
  .socials.in a:nth-child(2){ transition-delay:.06s; }
  .socials.in a:nth-child(3){ transition-delay:.12s; }
  .socials.in a:nth-child(4){ transition-delay:.18s; }
  .socials.in a:nth-child(5){ transition-delay:.24s; }
  .socials.in a:nth-child(6){ transition-delay:.30s; }
  .socials svg{ width:23px; height:23px; display:block; }
  .footer-links a:hover{ color:var(--ink); }

  .reveal{ opacity:0; transform:translateY(14px); transition:opacity .55s ease, transform .55s ease; }
  .reveal.in{ opacity:1; transform:none; }
  .brand-grid .brand-cell:nth-child(2){ transition-delay:.05s; }
  .brand-grid .brand-cell:nth-child(3){ transition-delay:.10s; }
  .brand-grid .brand-cell:nth-child(4){ transition-delay:.15s; }
  .brand-grid .brand-cell:nth-child(5){ transition-delay:.08s; }
  .brand-grid .brand-cell:nth-child(6){ transition-delay:.13s; }
  .brand-grid .brand-cell:nth-child(7){ transition-delay:.18s; }
  .brand-grid .brand-cell:nth-child(8){ transition-delay:.23s; }
  .brand-grid .brand-cell:nth-child(9){ transition-delay:.16s; }
  .brand-grid .brand-cell:nth-child(10){ transition-delay:.21s; }
  .brand-grid .brand-cell:nth-child(11){ transition-delay:.26s; }
  .brand-grid .brand-cell:nth-child(12){ transition-delay:.31s; }
  .steps .step:nth-child(2){ transition-delay:.12s; }
  .steps .step:nth-child(3){ transition-delay:.24s; }
  .trust-grid .trust-card:nth-child(2){ transition-delay:.14s; }
  @media (prefers-reduced-motion: reduce){
    *{ animation:none !important; transition:none !important; }
    .reveal{ opacity:1; transform:none; }
  }
  @media (max-width:720px){
    .rate-strip{ flex-direction:column; }
    .rate-cell{ border-right:none; border-bottom:1px solid var(--line); }
    .rate-cell:last-child{ border-bottom:none; }
    .brand-grid{ grid-template-columns:repeat(2,1fr); }
    .steps{ grid-template-columns:1fr; }
    .trust-grid{ grid-template-columns:1fr; }
    .company{ grid-template-columns:1fr; }
  }

  
  #loader{
    position:fixed; inset:0; z-index:999; background:#000;
    display:flex; align-items:center; justify-content:center;
    transition:opacity .5s ease, background .55s ease;
  }
  #loader.fly{ background:rgba(0,0,0,0); }
  #loaderCanvas{ transition:transform .68s cubic-bezier(.55,.06,.25,1); }
  /* the header mark stays hidden until the flying sign lands on it */
  svg.ionex-logo .mark{ opacity:0; }
  svg.ionex-logo .mark.landed{ opacity:1; }
  #loader.done{ opacity:0; pointer-events:none; }
  #loaderCanvas{ width:min(82vw, 480px); }
  svg.ionex-logo{ visibility:hidden; }
  svg.ionex-logo.ready{ visibility:visible; }