:root {
    --bg: #fff;
    --cell-size: 165px;
    --icon-size: 84px;
    --stroke-width: 12px;
    --icon-color: #000;
    --grid-line: rgba(0, 0, 0, 0.08);
    --main-blue: #006CFF;
  }

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

  body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background: var(--bg);
  }

  .hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  }

  /* Everything decorative — icon grid, blur/vignette, glowing badge —
     lives in one wrapper so a single opacity change fades all of it
     together as you scroll past the hero. */
  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .logo-link {
   display: inline-block;
   text-decoration: none;
   cursor: pointer;
  }

  .iso-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    perspective: 20000px;
    transform-style: preserve-3d;
  }

  .grid-container {
    position: absolute;
    inset: -30%;
    transform: rotateX(35deg) rotateY(25deg) rotateZ(-25deg) scale(1.10, 0.95);
    transform-origin: center center;
    opacity: 0;
    transition: opacity 1.1s ease;
  }

@supports (-moz-appearance: none) {
 .icon-cell.is-hovered .icon-inner {
    border-width: 1px;
    border-color: rgba(115, 115, 115, 0.02); 
  }

}

.hero-section.is-paused .icon-row {
  animation-play-state: paused !important;
}

  .grid-container.is-visible {
    opacity: 1;
  }

  .icon-row {
    position: absolute;
    display: flex;
    left: 0; top: 0;
    will-change: transform;
  }

  .icon-cell {
    width: var(--cell-size); height: var(--cell-size);
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0; pointer-events: none; cursor: default;
  }

  .icon-inner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    border: 0.5px solid var(--grid-line);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .icon-cell.is-hovered .icon-inner {
    background: rgba(255, 255, 255, 1);
    box-shadow: -25px 25px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    transform: translate(35px, -35px);
    z-index: 100;
  }

  .icon-cell svg {
    width: var(--icon-size); height: var(--icon-size);
    stroke: var(--icon-color); stroke-width: var(--stroke-width);
    fill: none; pointer-events: none;
  }

  .row-left { animation: scrollLeft 200s linear infinite; }
  .row-right { animation: scrollRight 220s linear infinite; }

  @keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
  @keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

  .focus-mask {
    position: absolute;
    inset: 0; z-index: 3; pointer-events: none;
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, transparent 38%, black 88%);
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, transparent 38%, black 88%);
  }
  
  .vignette {
    position: absolute;
    inset: 0; z-index: 4; pointer-events: none;
    background: radial-gradient(ellipse 78% 72% at 50% 46%, transparent 55%, var(--bg) 100%);
  }

  .hero-bg-shadow {
    position: absolute;
    top: 0; left: 0; right: 0; height: 40vh;
    background: linear-gradient(to bottom, rgba(250,250,250, 0) 0%, rgba(250,250,250, 1) 12%, rgba(250,250,250, 0.95) 65%, rgba(250,250,250, 0) 100%);
    z-index: 5; pointer-events: none;
  }


  .hero-bg-shadow-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 35vh;
    background: linear-gradient(to top, rgba(255,255,255, 1) 0%, rgba(255,255,255, 0.75) 55%, rgba(255,255,255, 0) 100%);
    z-index: 11; pointer-events: none;
    opacity: 0;
  }

  /* ================= NAV & BUTTONS ================= */
  .glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: rgba(250,250,250,0.65);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--grid-line);
  }
  .glass-nav .logo svg { height: 24px; width: auto; display: block; }
  .glass-nav nav { position: relative; display: flex; gap: 26px; align-items: center; }
  .glass-nav nav a {
    text-decoration: none; font-size: 14px; font-weight: 500; color: #8a8a92;
    padding: 4px 0 18px 0; margin-bottom: -15px; transition: color .2s;
  }
  .glass-nav nav a:hover, .glass-nav nav a.active { color: #1b1b1f; }
  
  .nav-underline {
    position: absolute; bottom: -24px; left: 0; height: 2px;
    background: var(--main-blue); border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1); pointer-events: none;
  }

  .button-gradient {
    position: relative; border: none; cursor: pointer; border-radius: 999px; padding: 0;
    isolation: isolate; background: transparent; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
  }
  .nav-cta.button-gradient { width: 140px; height: 42px; }
  .btn-get-pro.button-gradient { width: 160px; height: 48px; }

  .button-gradient .btn-content {
    position: relative; z-index: 10; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500; color: #fff;
  }
  .button-gradient .glass { position: absolute; inset: 2px; z-index: 5; background: transparent; border-radius: 999px; transition: all 0.3s ease; opacity: 0; backdrop-filter: blur(0px); will-change: opacity, background; }
  .button-gradient .gradient-bg { position: absolute; inset: -20px; z-index: 1; filter: blur(14px) saturate(1.6); background: #0d0d10; overflow: hidden; transition: opacity 0.6s ease;}
  .button-gradient .color { position: absolute; border-radius: 50%; mix-blend-mode: plus-lighter; opacity: 0.85; animation: iconsaxDrift 8s ease-in-out infinite alternate; }
  .button-gradient .color-1 { width: 100px; height: 100px; background: #0050FF; top: -20px; left: -20px; animation-duration: 3s; }
  .button-gradient .color-2 { width: 70px; height: 70px; background: #5ded04; top: 10px; right: -10px; animation-delay: -2s; animation-duration: 2s; }
  .button-gradient .color-3 { width: 50px; height: 50px; background: #1245ff; bottom: -20px; left: 20px; animation-delay: -0.4s; animation-duration: 3s; }
  .button-gradient .color-4 { width: 90px; height: 90px; background: #ff12b8; bottom: -10px; right: 30px; animation-delay: -1s; animation-duration: 4s; }

  @keyframes iconsaxDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15px, -10px) scale(1.15); } 100% { transform: translate(-10px, 15px) scale(0.9); } }
  .button-gradient:hover .glass { background: var(--bg); backdrop-filter: blur(4px); opacity: 1;}
  .button-gradient:hover .btn-content { color: #1b1b1f; }
  .button-gradient:hover .gradient-bg { background: #000; }

  /* ================= HERO CONTENT ================= */
  .hero-content {
    position: relative; z-index: 6;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 130px 24px 0; max-width: 680px; margin: 0 auto;
  }
  .hero-content h1 { font-size: 32px; line-height: 1.3; font-weight: 400; color: #16161a; margin-bottom: 12px; }
  .hero-content h1 .accent-blue { color: var(--main-blue); }
  .hero-content h1 .accent-black { color: #000; font-weight: 400; }
  .hero-content p.subtitle { font-size: 15px; color: #858585; margin-bottom: 5px; }
  .counter-pill { font-size: 15px; color: #858585; margin-bottom: 22px; }
  .counter-pill b { color: #16161a; font-weight: 600; }
  .cta-row { display: flex; gap: 12px; margin-bottom: 30px; align-items: center; }
  .btn-outline { text-decoration: none;height: 48px; padding: 0 26px; border-radius: 999px; border: 2.5px solid var(--grid-line); background: transparent; color: #16161a; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s;display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
  .btn-outline:hover { border-color: #16161a; background-color: rgba(0,0,0,0.02); }
  
  .tool-link {
    text-decoration: none;
    color: #000; 
    font-weight: 400;
    transition: color 0.3s ease;
    cursor: pointer;
}

.tool-link:hover {
    color: var(--main-blue);
}
  
.reverse-hover .glass {
    background: var(--bg); backdrop-filter: blur(4px); opacity: 1;
}

.reverse-hover .gradient-bg {
    background: transparent; 
}

.reverse-hover .btn-content {
    color: #1b1b1f;
}

.reverse-hover:hover .glass {
    opacity: 0;
    background: transparent;
}

.reverse-hover:hover .gradient-bg {
    opacity: 1;
}

.reverse-hover:hover .btn-content {
    color: #ffffff;
}

  .center-badge-container {
    position: absolute;
    left: 50%;
    z-index: 10;
    width: clamp(140px, 22vmin, 320px);
    height: clamp(140px, 22vmin, 320px);
    transform: translate(-50%, -50%);
    transition: width .25s ease, height .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .badge-interactor {
    position: relative;
    width: 100%; height: 100%;
    cursor: pointer;
    isolation: isolate;
  }

  .badge-interactor.webgl-unavailable::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 31%;
    background: var(--main-blue);
    pointer-events: none;
  }

  .badge-interactor::after {
    content: '';
    position: absolute;
    inset: -22%;
    z-index: 0;
    border-radius: 45%;
    background: radial-gradient(circle at 50% 55%, rgba(0, 108, 255, 0.45), rgba(0, 108, 255, 0) 68%);
    filter: blur(36px);
    pointer-events: none;
  }

  .shader-container {
    position: absolute;
    width: 200%; height: 200%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
  }
  .shader-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }

  .badge-fg-icon {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    pointer-events: auto;
  }
  .badge-fg-icon svg {
    width: 100%; height: 100%;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
  }
  
  .logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-link:hover {
    transform: scale(1.05);
}

.badge-fg-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.next-section {
    position: relative;
    min-height: 100vh;
    background: #fff;
}
.next-section-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 140px 24px 100px;
    text-align: center;
}
.next-section-inner h2 {
    font-size: 26px;
    font-weight: 700;
    color: #16161a;
    margin-bottom: 12px;
}
.next-section-inner p {
    font-size: 15px;
    color: #858585;
}


.site-footer {
  background-color: #fff;
  background-repeat: repeat;
  height: 300px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 0px;
  width: 220px;
  height: 80px;
  transform: translateX(-50%) scaleX(2.5);
  background: conic-gradient(
    from 90deg, 
    #F00 5deg, 
    #EAB308 63deg, 
    #5CFF80 115deg, 
    #1E00FF 170deg, 
    #855AFC 220deg, 
    #3A8BFD 286deg, 
    #F00 360deg
  );
  filter: blur(50px) saturate(4.8);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 0) 85%);
  
  pointer-events: none;
  z-index: 2;
}

.footer-container {
  width: 100%;
  max-width: 1180px;
  margin: 220px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; 
  z-index: 3;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #858585;
}

.footer-left {
  flex: 1;
}

.footer-center {
  flex: 1;
  text-align: center;
}

.footer-socials-col {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}


.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-producthunt {
  position: absolute;
  right: 0;
  top: -55px;
}

.footer-producthunt img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-center a,
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-center a:hover,
.site-footer a:hover {
  color: #0050FF;
  text-decoration: none;
}

/* ================= MOBILE ADAPTATION ================= */

@media (max-width: 900px) {
  .site-footer {
    height: auto;
    padding: 0 20px 40px 20px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-socials-col {
    justify-content: center;
  }
  .footer-producthunt {
    position: static;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
  }
}

.mobile-menu-checkbox,
.mobile-menu-btn {
  display: none;
}

@media (max-width: 768px) {
  
  .glass-nav {
    padding: 12px 16px; 
    flex-wrap: wrap; 
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .glass-nav .logo-link { 
    order: 1; 
  }
  .mobile-menu-btn { 
    order: 2; 
    margin-left: auto; 
    margin-right: 12px; 
  }
  .glass-nav .nav-cta { 
    order: 3; 
    width: 110px; 
    height: 36px;
  }
  .glass-nav .nav-cta .btn-content {
    font-size: 13px; 
  }

  .glass-nav nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    padding-top: 16px; 
    padding-bottom: 8px;
    gap: 16px; 
    align-items: flex-start;
  }


.mobile-menu-btn svg line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: 14px 12px;
}

.mobile-menu-checkbox:checked + .mobile-menu-btn svg line:nth-child(1) {
  opacity: 0;
}

.mobile-menu-checkbox:checked + .mobile-menu-btn svg line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-checkbox:checked + .mobile-menu-btn svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

  .mobile-menu-checkbox:checked ~ nav {
    display: flex;
  }

  .nav-underline {
    display: none;
  }

  /* --- (Hero Section) --- */

  .hero-content {
    padding: 110px 40px 0; 
  }

  .hero-content h1 {
    font-size: 26px; 
  }
  .hero-content p.subtitle, 
  .counter-pill {
    font-size: 14px; 
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    gap: 14px;
  }

  .btn-outline, 
  .btn-get-pro.button-gradient {
    width: 100%; 
    max-width: 100%;
  }

  .center-badge-container {
    top: 62%;
  }
}

@media (max-width: 1100px) {
  .center-badge-container {
    display: none !important;
  }

  .hero-bg-shadow {
    display: none !important;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: auto 0;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content h1 {
    background: rgba(0, 80, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 40px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.4;
  }

  .hero-content h1 .accent-black,
  .hero-content h1 .tool-link,
  .hero-content h1 a {
    color: #ffffff !important;
    text-decoration: none;
  }

  .hero-content h1 .accent-blue {
    color: #b3d1ff !important;
  }

  .counter-pill {
    background: rgba(0, 80, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    margin-bottom: 20px;
    width: fit-content;
    max-width: 100%;
  }

  .cta-row {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
