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

    :root {
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #181818;
    --border: #222222;
    --accent: #e8ff47;
    --accent2: #47ffb2;
    --text: #f0f0f0;
    /* --muted: #666; */
    --muted: #99a1af;
    /* --muted2: #444; */
    --muted2:#67707e;
    --mono: "IBM Plex Mono", monospace;
    --sans: "Syne", sans-serif;
    }

    html {
        scroll-behavior: smooth;
        font-size: 3.8888888889vw;

        @media (min-width: 768px){
        font-size: 2.08333333333vw;
        }

        @media (min-width: 1024px){
            font-size: 1.1111vw
        }
        
        @media (min-width: 1440px){
            font-size: 1em;
        }

        @media print {
            font-size: 1em;
        }
    }
    

    body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    cursor: none;
    }

    section{
        max-width: 1440px;
    }

    h1 {
        font-family: var(--sans);
        /* font-size: clamp(48px, 7vw, 96px); */
        /* font-size: 6rem; */
        font-size: 2rem;
        font-weight: 800;
        line-height: 0.95;
        letter-spacing: -0.03em;
        /* max-width: 900px; */
        opacity: 0;
        animation: fadeUp 0.7s ease 0.35s forwards;

        @media(min-width: 48rem){
            font-size: 4rem;
        }

        @media(min-width: 64rem){
           font-size: 6rem;
        }
        
        @media(min-width: 90rem){
           
         }
    }

    h2 {
        font-family: var(--sans);
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        max-width: 700px;
        margin: 0 auto 24px;
        line-height: 1;

         @media(min-width: 48rem){
            font-size: 3rem;
        }

        @media(min-width: 64rem){
           font-size: 5rem;
        }
        
        @media(min-width: 90rem){
           
         }
    }

    h1 em {
        font-style: normal;
        color: var(--accent);
        position: relative;
    }

    /* Hidden by default on touch devices */
    .cursor,
    .cursor-ring {
     display: none;
    }

    /* Custom cursor */
    .cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        transform 0.1s ease,
        width 0.2s ease,
        height 0.2s ease;
    mix-blend-mode: difference;
    }
    .cursor-ring {
        position: fixed;
        width: 32px;
        height: 32px;
        border: 1px solid rgba(232, 255, 71, 0.4);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition:
            transform 0.15s ease,
            width 0.3s ease,
            height 0.3s ease,
            opacity 0.3s;
    }

    @media (hover: hover) and (pointer: fine) {
        body { cursor: none; }
        
        .cursor { display: block; }
        .cursor-ring { display: block; }
    }

        

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

    /* NAV */
    nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg); /* add this */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 20px 48px; */
    padding: 1.25rem 3rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;

    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    }
    nav.scrolled {
    border-color: var(--border);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    }
    .logo {
    font-family: var(--mono);
    /* font-size: 18px; */
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    }
    .logo span {
    color: var(--accent);
    }
    nav ul {
    display: none;
    list-style: none;
    /* gap: 40px; */
    gap: 2.5rem;
    align-items: center;

    @media(min-width: 64rem ){
        display: flex;
        
    }

    }
    nav ul a {
    font-family: var(--mono);
    /* font-size: 12px; */
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    }
    nav ul a:hover {
    color: var(--text);
    }
    .nav-cta {
    font-family: var(--mono);
    /* font-size: 12px; */
    font-size: 0.75rem;
    /* padding: 8px 20px; */
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    border-radius: 2px;
    transition:
        background 0.2s,
        color 0.2s !important;
    }
    .nav-cta:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
    }




    /* Hamburger button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: none;
    padding: 8px;
    transition: border-color 0.2s;
    z-index: 200;
    position: relative;

    @media(min-width: 64rem){
        display: none;
    }
  }
  .hamburger:hover { border-color: var(--muted); }
  .hamburger span {
    display: block;
    width: 100%; height: 1px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Hide hamburger when drawer is open */
    .hamburger.open { display: none; }

  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* X close button — lives inside the drawer */
.drawer-close {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: border-color 0.2s;

  @media(min-width: 64rem) {
    display: none !important;
  }
}
.drawer-close:hover { border-color: var(--muted); }
.drawer-close span {
  position: absolute;
  width: 1rem; height: 1px;
  background: var(--text);
}
.drawer-close span:nth-child(1) { transform: rotate(45deg); }
.drawer-close span:nth-child(2) { transform: rotate(-45deg); }

.drawer-close.open { display: flex; }


.mobile-drawer {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    @media(min-width: 64rem){
        display: none;
    }
  }
  .mobile-drawer.open {
    opacity: 1;
    pointer-events: all;
  }
  .mobile-drawer a {
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    padding: 1rem 2.5rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
  }
  /* .mobile-drawer a:first-child { border-top: 1px solid var(--border); } */

  .mobile-drawer a:first-of-type { border-top: 1px solid var(--border); }


  .mobile-drawer a:hover { color: var(--text); background: var(--bg2); }
  .mobile-drawer .drawer-cta {
    margin-top: 1.5rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    width: auto;
    padding: 0.875rem 2.5rem;
  }
  .mobile-drawer .drawer-cta:hover {
    background: var(--accent);
    color: var(--bg);
  }


     /* ANIMATIONS */
    @keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

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

   

    @media (max-width: 768px) {
    nav {
        /* padding: 16px 24px; */
        padding: 1rem 1.5rem;
    }
    
    .hero {
        /* padding: 120px 24px 60px; */
        padding: 7.5rem 1.5rem 3.75rem;
    }
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    footer {
        flex-direction: column;
        /* gap: 20px; */
        gap: 1.25rem;
        text-align: center;
    }
    .demo-section,
    .how-section,
    .features-section,
    .pricing-section,
    .waitlist-section {
        /* padding-left: 24px;
        padding-right: 24px; */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    }



     @media(min-width: 90rem){
        section{
            margin: 0 auto;
        }

    
    }
