@font-face {
  font-family: 'ROG Font';
  src: url('font/ROG_font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
    --void:#08080c;
    --panel:#111117;
    --panel-2:#16161e;
    --line:rgba(255,255,255,0.07);
    --magenta:#ff3d9a;
    --magenta-dim:#b3316f;
    --cyan:#39d7f0;
    --violet:#7b3fd4;
    --text-1:#f2f1f6;
    --text-2:#96979f;
    --text-3:#57585f;
    --display:'Rajdhani', sans-serif;
    --body:'Inter', sans-serif;
  }

  *{margin:0;padding:0;box-sizing:border-box;}

  html{scroll-behavior:smooth;}

  body{
    background:var(--void);
    color:var(--text-1);
    font-family:var(--body);
    overflow-x:hidden;
    min-height:100vh;
  }

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

  /* ---- PixelOS-style corner blobs: soft, slow-spinning, minimal ---- */
  .corner-blobs{
    position:fixed;
    inset:0;
    z-index:0;
    pointer-events:none;
    overflow:hidden;
  }

  .blob{
    position:absolute;
    filter:blur(60px);
    opacity:0.28;
    will-change:transform;
  }

  .blob-tl{
    top:-12%; left:-10%;
    width:38vw; height:38vw;
    min-width:320px; min-height:320px;
    background:radial-gradient(circle at 35% 35%, var(--magenta), transparent 70%);
    border-radius:60% 40% 30% 70% / 60% 30% 70% 40%;
    animation:spin-slow 90s linear infinite;
  }

  .blob-tr{
    top:-16%; right:-12%;
    width:32vw; height:32vw;
    min-width:280px; min-height:280px;
    background:radial-gradient(circle at 35% 35%, var(--cyan), transparent 70%);
    border-radius:40% 60% 70% 30% / 30% 60% 40% 70%;
    animation:spin-slow-rev 110s linear infinite;
  }

  .blob-bl{
    bottom:-18%; left:-8%;
    width:30vw; height:30vw;
    min-width:260px; min-height:260px;
    background:radial-gradient(circle at 35% 35%, var(--violet), transparent 70%);
    border-radius:50% 50% 30% 70% / 60% 40% 60% 40%;
    animation:spin-slow-rev 130s linear infinite;
  }

  .blob-br{
    bottom:-14%; right:-10%;
    width:36vw; height:36vw;
    min-width:300px; min-height:300px;
    background:radial-gradient(circle at 35% 35%, var(--magenta-dim), transparent 70%);
    border-radius:70% 30% 60% 40% / 40% 70% 30% 60%;
    animation:spin-slow 100s linear infinite;
  }

  @keyframes spin-slow{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
  }
  @keyframes spin-slow-rev{
    from{transform:rotate(0deg);}
    to{transform:rotate(-360deg);}
  }

  header{
    position:relative;
    z-index:10;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:32px clamp(24px, 5vw, 72px);
  }

  .logo{
    font-family:var(--display);
    font-weight:700;
    font-size:28px;
    letter-spacing:0.12em;
    display:flex;
    align-items:center;
    gap:4px;
    text-decoration:none;
    color:var(--text-1);
    transition:color 0.25s ease;
  }

  .logo:hover{color:var(--cyan);}

  .logo-img{
    height:44px;
    width:auto;
    display:block;
    transition:transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter:drop-shadow(0 0 6px rgba(255, 61, 154, 0.35));
  }

  .logo:hover .logo-img{
    transform:scale(1.15) translateY(-1px);
    filter:drop-shadow(0 0 8px rgba(57, 215, 240, 0.75)) drop-shadow(0 0 14px rgba(255, 61, 154, 0.55));
  }

  nav{
    display:flex;
    gap:clamp(20px, 3vw, 40px);
  }

  .nav-toggle{
    display:none;
  }

  nav a{
    font-family:var(--body);
    font-size:13px;
    font-weight:500;
    letter-spacing:0.04em;
    color:var(--text-2);
    text-decoration:none;
    position:relative;
    padding-bottom:4px;
    transition:color 0.25s ease;
  }

  nav a:hover, nav a:focus-visible{color:var(--text-1);}

  nav a::after{
    content:'';
    position:absolute;
    left:0; bottom:0;
    width:0%;
    height:1px;
    background:linear-gradient(90deg, var(--magenta), var(--cyan));
    transition:width 0.25s ease;
  }

  nav a:hover::after, nav a:focus-visible::after, nav a.active::after{width:100%;}
  nav a.active{color:var(--text-1);}

  main{
  position:relative;
  z-index:5;
}

.home-main{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  min-height:calc(100vh - 96px);
  padding:0 clamp(24px, 5vw, 72px) 40px;
  gap:32px;
}

  /* ---- content side (left) ---- */
  .content{
    position:relative;
    max-width:560px;
  }

  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:var(--body);
    font-size:12px;
    font-weight:600;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color:var(--cyan);
    margin-bottom:24px;
    padding:7px 14px 7px 10px;
    border:1px solid var(--line);
    border-radius:100px;
    background:rgba(255,255,255,0.02);
  }

  .eyebrow::before{
    content:'';
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--cyan);
    box-shadow:0 0 8px var(--cyan);
    animation:pulse 2s ease-in-out infinite;
  }

  @keyframes pulse{
    0%,100%{opacity:1;}
    50%{opacity:0.3;}
  }

  h1{
    font-family:var(--display);
    font-weight:700;
    font-size:clamp(38px, 4.6vw, 60px);
    line-height:1.04;
    letter-spacing:-0.01em;
    margin-bottom:22px;
  }

  h1 .accent{
    background:linear-gradient(100deg, var(--magenta) 10%, var(--violet) 55%, var(--cyan) 95%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }

  .subhead{
    font-size:16px;
    line-height:1.65;
    color:var(--text-2);
    max-width:460px;
    margin-bottom:36px;
  }

  .cta-row{
    display:flex;
    align-items:center;
    gap:22px;
    flex-wrap:wrap;
    margin-bottom:44px;
  }

  .btn-primary{
    font-family:var(--body);
    font-weight:600;
    font-size:14px;
    letter-spacing:0.02em;
    color:var(--void);
    background:linear-gradient(100deg, var(--magenta), var(--violet) 60%, var(--cyan));
    border:none;
    padding:15px 28px;
    border-radius:8px;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:10px;
    transition:transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow:0 0 0 rgba(255,61,154,0);
  }

  .btn-primary:hover, .btn-primary:focus-visible{
    transform:translateY(-2px);
    box-shadow:0 10px 30px -8px rgba(255,61,154,0.55);
  }

  .btn-secondary{
    font-family:var(--body);
    font-weight:500;
    font-size:14px;
    color:var(--text-1);
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding-bottom:2px;
    border-bottom:1px solid var(--line);
    transition:border-color 0.25s ease, color 0.25s ease;
  }

  .btn-secondary:hover, .btn-secondary:focus-visible{
    border-color:var(--cyan);
    color:var(--cyan);
  }

  .status{
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,0.015);
    padding:16px 20px;
    display:flex;
    gap:16px 24px;
  }

  .status-item{
    display:flex;
    flex-direction:column;
    gap:4px;
  }

  .status-item .label{
    font-size:10px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--text-3);
    font-weight:600;
  }

  .status-item .value{
    font-family:var(--display);
    font-size:14px;
    font-weight:600;
    letter-spacing:0.02em;
    color:var(--text-1);
    display:flex;
    align-items:center;
    gap:7px;
  }

  .value.ok::before{
    content:'';
    width:6px; height:6px;
    border-radius:50%;
    background:#4fd88a;
    box-shadow:0 0 6px #4fd88a;
    display:inline-block;
  }

  /* ---- visual side (right): dual console showcase ---- */
  .visual{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    height:clamp(380px, 50vw, 620px);
    perspective:1600px;
  }

  .consoles-container{
    position:relative;
    width:100%;
    height:100%;
    max-width:740px;
  }

  .console-stage{
    position:absolute;
    transform-style:preserve-3d;
    will-change:transform;
    opacity:0;
  }

  /* white console: main hero, left side, slight offset down */
  .console-white{
    top:25%;
    left:0;
    width:68%;
    z-index:2;
    animation:pop-in 1.1s cubic-bezier(0.22, 1.4, 0.36, 1) 0s forwards;
  }

  /* black console: variant, right side, slight offset up, pops in after white */
  .console-black{
    top:8%;
    right:0;
    width:68%;
    z-index:1;
    animation:pop-in 1.1s cubic-bezier(0.22, 1.4, 0.36, 1) 0.2s forwards;
  }

  .console-stage.ready{
    transition:transform 0.6s cubic-bezier(0.16,1,0.3,1);
  }

  .console-wrapper {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    display: block;
    will-change: transform, filter;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  /* Hover states for individual console stages */
  .console-stage:hover {
    z-index: 10;
  }

  .console-stage:hover .console-wrapper {
    transform: scale(1.06);
  }

  /* Vibrant theme-colored edge glows using drop-shadow on transparent PNGs */
  .console-white:hover .console-wrapper {
    filter: drop-shadow(0 0 25px rgba(57, 215, 240, 0.65)); /* Cyan glow */
  }

  .console-black:hover .console-wrapper {
    filter: drop-shadow(0 0 25px rgba(255, 61, 154, 0.65)); /* Magenta glow */
  }

  @keyframes pop-in{
    0%{
      opacity:0;
      transform:scale(0.55) rotateY(0deg) rotateX(0deg) translateY(30px);
    }
    100%{
      opacity:1;
      transform:scale(1) rotateY(0deg) rotateX(0deg) translateY(0px);
    }
  }

  .console-stage::before{
    content:'';
    position:absolute;
    left:8%; right:8%; bottom:-8%;
    height:32px;
    background:radial-gradient(ellipse at center, rgba(255,61,154,0.3), transparent 70%);
    filter:blur(14px);
    z-index:-1;
  }

  .console-img{
    width:100%;
    display:block;
    filter:drop-shadow(0 25px 45px rgba(0,0,0,0.6));
    animation:float 7s ease-in-out infinite;
    animation-delay:1.1s;
  }

  .console-black .console-img{
    animation-delay: -0.5s;
  }

  @keyframes float{
    0%,100%{transform:translateY(0px);}
    50%{transform:translateY(-8px);}
  }

  footer{
    position:relative;
    z-index:5;
    text-align:center;
    padding:20px 24px 32px;
    font-size:12px;
    color:var(--text-3);
    letter-spacing:0.02em;
  }

  @media (max-width: 880px){
    .home-main{
    grid-template-columns:1fr;
    padding-top:20px;
    gap:12px;
  }
    .content{order:2; max-width:100%;}
    .visual{order:1; height:280px;}
    .subhead{max-width:100%;}
    
    /* Responsive Mobile Menu Dropdown */
    .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 24px;
      height: 18px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 100;
      position: relative;
    }

    .hamburger-line {
      width: 100%;
      height: 2px;
      background-color: var(--text-1);
      border-radius: 2px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Morphing active state (Hamburger -> X) */
    .nav-toggle.active .hamburger-line:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
      background-color: var(--cyan);
    }
    .nav-toggle.active .hamburger-line:nth-child(2) {
      opacity: 0;
    }
    .nav-toggle.active .hamburger-line:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
      background-color: var(--cyan);
    }

    nav {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(11, 11, 17, 0.96);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--line);
      padding: 24px clamp(24px, 5vw, 72px) 40px;
      gap: 16px;
      transform: translateY(-15px);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
      z-index: 99;
    }

    nav.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    nav a {
      font-size: 16px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 12px 0;
      width: 100%;
      color: var(--text-2);
      border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    nav a::after {
      display: none; /* Disable desktop bottom hover lines */
    }

    nav a:hover, nav a:focus-visible {
      color: var(--cyan);
      padding-left: 4px;
      transition: all 0.25s ease;
    }

    .blob{opacity:0.18;}

    .box{
      grid-template-columns:1fr;
      gap:24px;
    }
    
    .status{
      flex-wrap:wrap;
    }
  }

  @media (prefers-reduced-motion: reduce){
    .console-img, .eyebrow::before, .blob{animation:none !important;}
    .console-stage{animation:none !important; opacity:1 !important; transform:none !important;}
    .console-stage.ready{transition:none !important;}
  }

  .page-intro{
    text-align:center;
    padding:60px clamp(24px, 5vw, 72px) 80px;
    max-width:720px;
    margin:0 auto;
  }

  .page-intro h1{
    font-family:var(--display);
    font-weight:700;
    font-size:clamp(42px, 5vw, 64px);
    line-height:1.08;
    letter-spacing:-0.01em;
    margin-bottom:22px;
  }

  .page-intro h1 .accent{
    background:linear-gradient(100deg, var(--magenta) 10%, var(--violet) 55%, var(--cyan) 95%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }

  .page-intro p{
    font-size:16px;
    line-height:1.7;
    color:var(--text-2);
  }

  /* ---- three-box section ---- */
  .boxes-section{
    padding:0 clamp(24px, 5vw, 72px) 100px;
    max-width:1200px;
    margin:0 auto;
  }

  .boxes-grid{
    display:flex;
    flex-direction:column;
    gap:32px;
  }

  .box{
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,0.015);
    padding:clamp(28px, 4vw, 40px);
    display:grid;
    grid-template-columns:clamp(200px, 25vw, 300px) 1fr;
    gap:40px;
    align-items:start;
    transition:all 0.3s ease;
    position:relative;
    opacity:0;
    animation:card-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Stagger delays for boxes */
  .box:nth-child(1) {
    animation-delay: 0.1s;
  }
  .box:nth-child(2) {
    animation-delay: 0.22s;
  }
  .box:nth-child(3) {
    animation-delay: 0.34s;
  }

  .box-meta{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .box-content{
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .box:hover{
    border-color:rgba(255,255,255,0.15);
    background:rgba(255,255,255,0.025);
    transform:translateY(-4px);
  }

  .box-number{
    font-family:var(--display);
    font-size:48px;
    font-weight:700;
    background:linear-gradient(100deg, var(--magenta), var(--violet), var(--cyan));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    line-height:1;
  }

  .box h2{
    font-family:var(--display);
    font-weight:700;
    font-size:clamp(22px, 2.5vw, 28px);
    line-height:1.2;
    margin-bottom:8px;
  }

  .box p{
    font-size:15px;
    line-height:1.75;
    color:var(--text-2);
    margin:0;
  }

  .box li{
    font-size:15px;
    line-height:1.75;
    color:var(--text-2);
    margin-left:20px;
    margin-bottom:12px;
  }

  .box li:last-child{margin-bottom:0;}

  .box-accent{
    color:var(--cyan);
    font-weight:600;
  }

  .warning-note{
    border-left:3px solid var(--magenta);
    padding:16px 20px;
    background:rgba(255, 61, 154, 0.03);
    border-radius:0 8px 8px 0;
    margin-top:16px;
    color:var(--text-1);
    font-size:14px;
    line-height:1.6;
    border:1px solid var(--line);
    border-left:3px solid var(--magenta);
  }

  .warning-title{
    color:var(--magenta);
    font-family:var(--display);
    font-weight:700;
    font-size:16px;
    letter-spacing:0.04em;
    text-transform:uppercase;
    margin-bottom:6px;
  }

  .box ol{
    margin-bottom:12px;
  }

  /* ---- download page section ---- */
  .download-section{
    padding:60px clamp(24px, 5vw, 72px) 100px;
    max-width:1200px;
    margin:0 auto;
  }

  .download-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap:32px;
  }

  .download-card{
    background:rgba(255,255,255,0.015);
    border:1px solid var(--line);
    border-radius:28px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter:blur(12px);
    will-change:transform, border-color, box-shadow;
  }

  .download-card:hover{
    transform:translateY(-6px);
    border-color:rgba(255,61,154,0.3);
    box-shadow:0 15px 35px -10px rgba(255,61,154,0.25);
  }

  .card-image-box{
    position:relative;
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.2);
    border-bottom:1px solid var(--line);
    overflow:hidden;
  }

  .card-image-box::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom, transparent 35%, var(--void) 100%);
    pointer-events:none;
    z-index:2;
  }

  .card-watermark{
    position:absolute;
    font-family:'ROG Font', sans-serif;
    font-size:160px;
    font-weight:400;
    color:rgba(255,255,255,0.022);
    pointer-events:none;
    user-select:none;
    letter-spacing:0.02em;
    line-height:0.8;
    z-index:0;
    transform:translateY(-45px) scaleY(1.1);
  }

  .card-img{
    width:92%;
    height:92%;
    object-fit:contain;
    filter:drop-shadow(0 15px 25px rgba(0,0,0,0.55));
    transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index:1;
  }

  .download-card:hover .card-img{
    transform:scale(1.1) rotate(-6deg);
  }

  .card-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:16px;
  }

  .card-badge{
    display:inline-block;
    align-self:flex-start;
    font-size:10px;
    font-weight:700;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--cyan);
    border:1px solid rgba(57,215,240,0.25);
    background:rgba(57,215,240,0.05);
    padding:4px 10px;
    border-radius:100px;
  }

  .card-title{
    font-family:'ROG Font', var(--display);
    font-size:18px;
    font-weight:700;
    color:var(--text-1);
    letter-spacing:0.04em;
  }

  .card-divider{
    height:1px;
    background:var(--line);
  }

  .card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:4px;
  }

  .card-maintainer{
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .maintainer-label{
    font-size:10px;
    color:var(--text-3);
    text-transform:uppercase;
    font-weight:600;
  }

  .maintainer-name{
    font-size:14px;
    color:var(--text-1);
    font-weight:500;
  }

  .btn-download{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg, var(--magenta), var(--cyan));
    color:#ffffff;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    padding:10px 18px;
    border-radius:8px;
    transition:all 0.25s ease;
    box-shadow:0 4px 12px rgba(255,61,154,0.15);
  }

  .btn-download:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(255,61,154,0.35);
  }

  .btn-download.disabled{
    background:rgba(255,255,255,0.04);
    color:var(--text-3);
    border:1px solid var(--line);
    box-shadow:none;
    cursor:not-allowed;
    pointer-events:none;
  }

  .btn-download.disabled:hover{
    transform:none;
    box-shadow:none;
  }

  .icon-download{
    width:14px;
    height:14px;
  }

  /* ---- download page entry animations ---- */
  @keyframes card-fade-in-up {
    from {
      opacity: 0;
      top: 30px;
    }
    to {
      opacity: 1;
      top: 0;
    }
  }

  @keyframes img-fade-in-up {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .download-card {
    position: relative;
    opacity: 0;
    animation: card-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .card-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: img-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Stagger delays (card entry then image entry) */
  .download-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .download-card:nth-child(1) .card-img-wrapper {
    animation-delay: 0.28s;
  }

  .download-card:nth-child(2) {
    animation-delay: 0.22s;
  }
  .download-card:nth-child(2) .card-img-wrapper {
    animation-delay: 0.4s;
  }

  .download-card:nth-child(3) {
    animation-delay: 0.34s;
  }
  .download-card:nth-child(3) .card-img-wrapper {
    animation-delay: 0.52s;
  }

  .download-card:nth-child(4) {
    animation-delay: 0.46s;
  }
  .download-card:nth-child(4) .card-img-wrapper {
    animation-delay: 0.64s;
  }

  /* Cursor-following Tooltip for Unavailable Devices */
  .cursor-tooltip {
    position: absolute;
    width: 320px;
    max-width: calc(100vw - 20px);
    background: rgba(17, 17, 23, 0.95);
    border: 1px solid rgba(255, 61, 154, 0.35); /* Neon pink border */
    border-radius: 12px;
    padding: 16px;
    color: var(--text-1);
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none; /* Mouse events pass through to card */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 61, 154, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .cursor-tooltip.visible {
    opacity: 1;
    transform: scale(1);
  }

  .tooltip-title {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .tooltip-title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
  }

  .tooltip-text {
    color: var(--text-2);
    margin-bottom: 12px;
  }

  .tooltip-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }

  .tooltip-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
  }

  .tooltip-contact strong {
    color: var(--text-1);
  }

  .tooltip-contact code {
    font-family: monospace;
    color: var(--magenta);
    background: rgba(255, 61, 154, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 61, 154, 0.15);
  }

  /* Download Mirror Selection Modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100000;
  }

  .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-container {
    background: rgba(17, 17, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 580px;
    padding: 32px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8), 0 0 30px rgba(57, 215, 240, 0.1);
  }

  .modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
    border-color: rgba(57, 215, 240, 0.25);
  }

  .modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text-2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding-bottom: 2px;
  }

  .modal-close:hover {
    background: rgba(255, 61, 154, 0.1);
    color: var(--magenta);
    border-color: var(--magenta);
  }

  .modal-header h2 {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
  }

  .modal-header p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .mirror-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .mirror-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: var(--text-1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 16px;
  }

  .mirror-card:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(57, 215, 240, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -10px rgba(57, 215, 240, 0.25);
  }

  .mirror-icon-wrapper {
    font-size: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    flex-shrink: 0;
  }

  .mirror-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  }

  /* Internet Archive logo is solid black, so invert it to make it white/light */
  .mirror-icon-img.archive-logo {
    filter: brightness(0) invert(0.9);
  }

  .mirror-card:hover .mirror-icon-img {
    transform: scale(1.12);
  }

  .mirror-card:hover .mirror-icon-img.archive-logo {
    filter: brightness(0) invert(1);
  }

  .mirror-details {
    flex-grow: 1;
  }

  .mirror-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .badge-recommended {
    background: rgba(79, 216, 138, 0.1);
    color: #4fd88a;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(79, 216, 138, 0.2);
  }

  .mirror-desc {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.4;
  }

  .mirror-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s ease;
    flex-shrink: 0;
  }

  .mirror-card:hover .mirror-action {
    gap: 10px;
  }

  .mirror-action svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  .modal-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  /* Checksum Section inside Download Modal */
  .checksum-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
  }

  .checksum-header {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .checksum-header::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
  }

  .checksum-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .checksum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 16px;
  }

  .checksum-algo {
    font-weight: 600;
    color: var(--text-2);
    width: 60px;
    flex-shrink: 0;
  }

  .checksum-value {
    font-family: monospace;
    color: var(--text-1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    padding: 4px 8px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: nowrap;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  /* Webkit custom scrollbars for long checksum paths */
  .checksum-value::-webkit-scrollbar {
    height: 3px;
  }
  .checksum-value::-webkit-scrollbar-track {
    background: transparent;
  }
  .checksum-value::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 10px;
  }

  .checksum-value:hover {
    color: var(--cyan);
    border-color: rgba(57, 215, 240, 0.35);
    background: rgba(57, 215, 240, 0.02);
  }

  /* Toast Notifications */
  #toast {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(17, 17, 23, 0.95);
    color: var(--cyan);
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(57, 215, 240, 0.3);
    padding: 12px 16px;
    position: fixed;
    z-index: 1000000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(57, 215, 240, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #toast.show {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  /* FAQ Accordion Styling */
  .faq-section {
    padding: 0 clamp(24px, 5vw, 72px) 100px;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
  }

  .faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.012);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: card-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Entrance animations for FAQ items (staggered) */
  .faq-item:nth-child(1)  { animation-delay: 0.05s; }
  .faq-item:nth-child(2)  { animation-delay: 0.08s; }
  .faq-item:nth-child(3)  { animation-delay: 0.11s; }
  .faq-item:nth-child(4)  { animation-delay: 0.14s; }
  .faq-item:nth-child(5)  { animation-delay: 0.17s; }
  .faq-item:nth-child(6)  { animation-delay: 0.20s; }
  .faq-item:nth-child(7)  { animation-delay: 0.23s; }
  .faq-item:nth-child(8)  { animation-delay: 0.26s; }
  .faq-item:nth-child(9)  { animation-delay: 0.29s; }
  .faq-item:nth-child(10) { animation-delay: 0.32s; }
  .faq-item:nth-child(11) { animation-delay: 0.35s; }
  .faq-item:nth-child(12) { animation-delay: 0.38s; }
  .faq-item:nth-child(13) { animation-delay: 0.41s; }
  .faq-item:nth-child(14) { animation-delay: 0.44s; }

  .faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
  }

  .faq-item.active {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(57, 215, 240, 0.3);
    box-shadow: 0 10px 30px -15px rgba(57, 215, 240, 0.15);
  }

  .faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--text-1);
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.25s ease;
  }

  .faq-question span {
    line-height: 1.4;
  }

  .faq-question:hover {
    color: var(--cyan);
  }

  .faq-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-3);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    flex-shrink: 0;
  }

  .faq-question:hover .faq-arrow {
    color: var(--cyan);
  }

  .faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--cyan);
  }

  /* Height slide animation container */
  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .faq-item.active .faq-answer {
    grid-template-rows: 1fr;
  }

  .faq-answer-inner {
    min-height: 0;
    padding: 0 28px 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.75;
    transition: padding-bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .faq-item.active .faq-answer-inner {
    padding-bottom: 24px;
  }

  .faq-answer-inner p {
    margin-bottom: 14px;
  }

  .faq-answer-inner p:last-child {
    margin-bottom: 0;
  }

  .faq-answer-inner a {
    color: var(--cyan);
    text-decoration: none;
    transition: border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
  }

  .faq-answer-inner a:hover {
    border-bottom-color: var(--cyan);
  }

  .faq-answer-inner .warning-note {
    margin-top: 14px;
    font-size: 13px;
  }

  @media (max-width: 600px) {
    .faq-question {
      padding: 18px 20px;
      font-size: 15px;
    }
    .faq-answer-inner {
      padding: 0 20px 20px;
      font-size: 13.5px;
    }
  }