:root{
    --navy-900:#14123A;
    --navy-800:#1E1B4B;
    --navy-700:#312E81;
    --navy-600:#4338CA;
    --gold-600:#B8790C;
    --gold-500:#F59E0B;
    --gold-400:#FBBF4A;
    --gold-100:#FDECC8;
    --bg:#F7F7FB;
    --surface:#FFFFFF;
    --text-primary:#1A1830;
    --text-secondary:#5B5A76;
    --text-muted:#8B89A6;
    --border:#E7E6F2;
    --shadow-card: 0 1px 2px rgba(20,18,58,0.04), 0 8px 24px rgba(20,18,58,0.06);
    --shadow-card-hover: 0 4px 10px rgba(20,18,58,0.08), 0 16px 40px rgba(20,18,58,0.12);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  html{scroll-behavior:smooth;}

  body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text-primary);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }

  h1,h2,h3,h4{
    font-family:'Fraunces',serif;
    font-weight:600;
    letter-spacing:-0.01em;
    color:var(--navy-900);
  }

  a{text-decoration:none;color:inherit;}
  ul{list-style:none;}
  img{max-width:100%;display:block;}
  button{font-family:inherit;cursor:pointer;border:none;background:none;}

  .container{
    max-width:1240px;
    margin:0 auto;
    padding:0 32px;
  }

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important;}
  }

  /* ===== Header ===== */
  header{
    position:fixed;
    top:0; left:0; right:0;
    z-index:1000;
    padding:22px 0;
    transition:background 0.35s var(--ease-out), padding 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color .35s var(--ease-out);
    border-bottom:1px solid transparent;
  }
  header.scrolled{
    background:rgba(247,247,251,0.85);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    padding:14px 0;
    border-bottom-color:var(--border);
    box-shadow:0 4px 24px rgba(20,18,58,0.05);
  }
  .nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Fraunces',serif;
    font-weight:700;
    font-size:21px;
    color:var(--navy-900);
  }
  .logo-mark{
    width:32px; height:32px;
    border-radius:8px;
    background:linear-gradient(155deg, var(--navy-800), var(--navy-700));
    display:flex; align-items:center; justify-content:center;
    color:var(--gold-500);
    font-size:15px; font-weight:700;
    font-family:'Fraunces',serif;
  }
  nav.main-nav{
    display:flex;
    align-items:center;
    gap:38px;
  }
  .nav-links{display:flex; gap:34px; align-items:center;}
  .nav-links li a{
    position:relative;
    font-size:14.5px;
    font-weight:500;
    color:var(--navy-800);
    padding:6px 0;
    display:inline-flex;
    align-items:center;
    gap:5px;
  }
  .nav-links li a::after{
    content:'';
    position:absolute;
    left:0; bottom:0;
    width:0; height:2px;
    background:var(--gold-500);
    transition:width 0.28s var(--ease-out);
  }
  .nav-links li a:hover::after{width:100%;}
  .nav-links li a:hover{color:var(--navy-900);}
  .caret{font-size:10px; transition:transform 0.25s var(--ease-out); color:var(--text-muted);}
  .has-dropdown:hover .caret{transform:rotate(180deg);}

  .dropdown{
    position:absolute;
    top:calc(100% + 14px);
    left:50%;
    transform:translateX(-50%) translateY(6px);
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:14px;
    box-shadow:var(--shadow-card-hover);
    padding:10px;
    width:420px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:2px;
    opacity:0;
    visibility:hidden;
    transition:opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.22s;
  }
  .has-dropdown{position:relative;}
  .has-dropdown:hover .dropdown{
    opacity:1; visibility:visible;
    transform:translateX(-50%) translateY(0);
  }
  .dropdown a{
    display:block;
    padding:9px 12px;
    border-radius:8px;
    font-size:13.5px;
    font-weight:500;
    color:var(--text-secondary);
    transition:background 0.18s, color 0.18s;
  }
  .dropdown a:hover{background:var(--bg); color:var(--navy-900);}

  .nav-actions{display:flex; align-items:center; gap:18px;}
  .icon-btn{
    width:38px; height:38px;
    border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    color:var(--navy-800);
    transition:background 0.2s;
  }
  .icon-btn:hover{background:rgba(20,18,58,0.06);}
  .menu-toggle{display:none;}

  .mobile-menu{
    display:none;
    flex-direction:column;
    gap:2px;
    background:var(--surface);
    border-top:1px solid var(--border);
    padding:14px 32px 22px;
    box-shadow:0 12px 24px rgba(20,18,58,0.08);
  }
  .mobile-menu.open{display:flex;}
  .mobile-menu a{
    padding:13px 2px;
    font-size:15px;
    font-weight:500;
    color:var(--navy-800);
    border-bottom:1px solid var(--border);
  }
  .mobile-menu a:hover{color:var(--gold-600);}
  .mobile-menu a.mobile-cta{
    text-align:center;
    border-bottom:none;
    margin-top:8px;
    padding:12px 22px;
  }
  .btn-primary{
    background:orange;
    color:#fff;
    padding:11px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    transition:transform 0.2s var(--ease-out), background 0.2s;
    display:inline-block;
  }
  .btn-primary:hover{background:var(--navy-700); transform:scale(1.03);}
  .btn-primary:active{transform:scale(0.97);}

  .btn-gold{
    background:var(--gold-500);
    color:var(--navy-900);
    padding:12px 24px;
    border-radius:10px;
    font-size:14.5px;
    font-weight:600;
    display:inline-block;
    transition:transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
    box-shadow:0 1px 2px rgba(181,120,10,0.2);
  }
  .btn-gold:hover{background:var(--gold-400); transform:scale(1.035); box-shadow:0 6px 20px rgba(245,158,11,0.35);}
  .btn-gold:active{transform:scale(0.97);}

  .btn-outline{
    border:1.5px solid var(--navy-800);
    color:var(--navy-900);
    padding:10.5px 22px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    display:inline-block;
    transition:background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
  }
  .btn-outline:hover{background:var(--navy-800); color:#fff; transform:scale(1.03);}

  /* ===== Hero ===== */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:150px 0 90px;
    background:radial-gradient(ellipse 90% 70% at 50% 0%, #F0EEFB 0%, var(--bg) 60%);
    overflow:hidden;
  }
  #hero-canvas{
    position:absolute;
    top:0; right:0;
    width:56%;
    height:100%;
    z-index:1;
  }
  .orb{
    position:absolute;
    border-radius:50%;
    filter:blur(60px);
    opacity:0.35;
    z-index:0;
    animation:drift 14s ease-in-out infinite;
  }
  .orb-1{width:340px; height:340px; background:var(--gold-400); top:8%; right:8%; animation-delay:0s;}
  .orb-2{width:280px; height:280px; background:var(--navy-600); bottom:5%; right:30%; animation-delay:-5s;}
  .orb-3{width:200px; height:200px; background:var(--gold-500); top:45%; right:2%; animation-delay:-9s; opacity:0.22;}
  @keyframes drift{
    0%,100%{transform:translate(0,0) scale(1);}
    50%{transform:translate(-20px, 26px) scale(1.08);}
  }

  .hero-inner{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:40px;
  }
  .hero-copy{max-width:560px;}
  .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--gold-100);
    color:var(--gold-600);
    font-size:13px;
    font-weight:600;
    padding:7px 14px;
    border-radius:20px;
    margin-bottom:22px;
    opacity:0;
    animation:fadeUp 0.7s var(--ease-out) forwards;
    animation-delay:0.1s;
  }
  .hero-copy h1{
    font-size:52px;
    line-height:1.08;
    margin-bottom:22px;
    opacity:0;
    animation:fadeUp 0.75s var(--ease-out) forwards;
    animation-delay:0.22s;
  }
  .hero-copy h1 em{
    font-style:italic;
    color:var(--gold-600);
  }
  .hero-copy p{
    font-size:17.5px;
    color:var(--text-secondary);
    margin-bottom:34px;
    max-width:480px;
    opacity:0;
    animation:fadeUp 0.75s var(--ease-out) forwards;
    animation-delay:0.34s;
  }
  @keyframes fadeUp{
    from{opacity:0; transform:translateY(16px);}
    to{opacity:1; transform:translateY(0);}
  }

  .search-box{
    display:flex;
    align-items:center;
    background:var(--surface);
    border:1.5px solid var(--border);
    border-radius:14px;
    padding:6px 6px 6px 18px;
    box-shadow:var(--shadow-card);
    max-width:480px;
    opacity:0;
    animation:fadeUp 0.75s var(--ease-out) forwards;
    animation-delay:0.46s;
    transition:border-color 0.25s, box-shadow 0.25s;
  }
  .search-box:focus-within{
    border-color:var(--gold-500);
    box-shadow:0 0 0 4px rgba(245,158,11,0.14);
  }
  .search-box input{
    flex:1;
    border:none;
    outline:none;
    font-size:15px;
    font-family:inherit;
    padding:10px 0;
    background:transparent;
    color:var(--text-primary);
  }
  .search-box input::placeholder{color:var(--text-muted);}
  .search-box button{
    background:var(--navy-800);
    color:#fff;
    padding:11px 20px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    transition:background 0.2s, transform 0.2s var(--ease-out);
  }
  .search-box button:hover{background:var(--navy-700); transform:scale(1.03);}

  .trust-row{
    display:flex;
    gap:32px;
    margin-top:38px;
    opacity:0;
    animation:fadeUp 0.75s var(--ease-out) forwards;
    animation-delay:0.56s;
  }
  .trust-item{}
  .trust-item strong{
    display:block;
    font-family:'Fraunces',serif;
    font-size:24px;
    color:var(--navy-900);
    font-weight:600;
  }
  .trust-item span{
    font-size:12.5px;
    color:var(--text-muted);
    font-weight:500;
  }

  /* ===== Section shared ===== */
  section{padding:110px 0;}
  .section-head{
    max-width:620px;
    margin:0 auto 56px;
    text-align:center;
  }
  .section-head .eyebrow{background:rgba(30,27,75,0.06); color:var(--navy-700);}
  .section-head h2{font-size:36px; margin:14px 0 12px;}
  .section-head p{color:var(--text-secondary); font-size:16px;}

  .reveal{
    opacity:0;
    transform:translateY(26px);
    transition:opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .reveal.in-view{opacity:1; transform:translateY(0);}

  /* ===== Category grid ===== */
  .cat-grid{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:18px;
  }
  .cat-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:16px;
    padding:26px 20px;
    text-align:left;
    transition:transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s;
  }
  .cat-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-card-hover);
    border-color:rgba(245,158,11,0.4);
  }
  .cat-icon{
    width:44px; height:44px;
    border-radius:11px;
    background:var(--navy-800);
    color:var(--gold-400);
    display:flex; align-items:center; justify-content:center;
    font-size:19px;
    margin-bottom:18px;
    transition:background 0.28s, transform 0.28s var(--ease-out);
  }
  .cat-card:hover .cat-icon{background:var(--gold-500); color:var(--navy-900); transform:scale(1.08) rotate(-4deg);}
  .cat-card h4{font-size:15.5px; font-weight:600; margin-bottom:5px; font-family:'Inter',sans-serif; color:var(--navy-900);}
  .cat-card p{font-size:12.5px; color:var(--text-muted);}

  /* ===== Top 10 carousel ===== */
  .rank-scroll{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding:8px 4px 20px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .rank-scroll::-webkit-scrollbar{display:none;}
  .rank-card{
    flex:0 0 320px;
    scroll-snap-align:start;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:18px;
    padding:26px;
    transition:transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    position:relative;
  }
  .rank-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-card-hover);}
  .rank-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:var(--navy-900);
    color:var(--gold-400);
    font-family:'Fraunces',serif;
    font-weight:600;
    font-size:13px;
    padding:6px 12px;
    border-radius:20px;
    margin-bottom:18px;
  }
  .rank-card h4{font-size:19px; margin-bottom:8px;}
  .rank-card p{font-size:13.5px; color:var(--text-secondary); margin-bottom:20px;}
  .rank-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid var(--border);
    padding-top:16px;
  }
  .stars{color:var(--gold-500); font-size:13px; letter-spacing:1px;}
  .rank-link{
    font-size:13px;
    font-weight:600;
    color:var(--navy-800);
    display:inline-flex;
    align-items:center;
    gap:5px;
    transition:gap 0.2s var(--ease-out), color 0.2s;
  }
  .rank-link:hover{color:var(--gold-600); gap:8px;}

  .carousel-nav{
    display:flex;
    gap:10px;
    justify-content:flex-end;
    margin-bottom:-4px;
  }
  .carousel-nav button{
    width:40px; height:40px;
    border-radius:50%;
    border:1px solid var(--border);
    background:var(--surface);
    display:flex; align-items:center; justify-content:center;
    color:var(--navy-800);
    transition:background 0.2s, transform 0.2s var(--ease-out), border-color 0.2s;
  }
  .carousel-nav button:hover{background:var(--navy-800); color:#fff; transform:scale(1.06);}

  /* ===== How we rank ===== */
  .how-rank{background:var(--navy-900); color:#fff; border-radius:0;}
  .how-rank .section-head h2, .how-rank .section-head p{color:#fff;}
  .how-rank .section-head p{color:rgba(255,255,255,0.65);}
  .how-rank .eyebrow{background:rgba(245,158,11,0.15); color:var(--gold-400);}
  .steps-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:26px;
  }
  .step{
    padding:8px;
  }
  .step-num{
    font-family:'Fraunces',serif;
    font-size:15px;
    color:var(--gold-500);
    font-weight:600;
    margin-bottom:16px;
    display:flex;
    align-items:center;
    gap:10px;
  }
  .step-num::after{
    content:'';
    flex:1;
    height:1px;
    background:rgba(255,255,255,0.15);
  }
  .step h4{color:#fff; font-size:17px; margin-bottom:10px; font-family:'Fraunces',serif; font-weight:500;}
  .step p{color:rgba(255,255,255,0.6); font-size:13.5px;}

  /* ===== Newsletter ===== */
  .newsletter{
    background:linear-gradient(120deg, var(--navy-800), var(--navy-700));
    border-radius:28px;
    padding:64px 60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    position:relative;
    overflow:hidden;
  }
  .newsletter::before{
    content:'';
    position:absolute;
    width:340px; height:340px;
    background:var(--gold-500);
    filter:blur(90px);
    opacity:0.25;
    top:-100px; right:-60px;
    border-radius:50%;
  }
  .newsletter-copy{position:relative; z-index:1; max-width:420px;}
  .newsletter-copy h2{color:#fff; font-size:30px; margin-bottom:10px;}
  .newsletter-copy p{color:rgba(255,255,255,0.65); font-size:15px;}
  .newsletter-form{
    position:relative; z-index:1;
    display:flex;
    gap:10px;
    background:rgba(255,255,255,0.08);
    padding:6px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.15);
  }
  .newsletter-form input{
    background:transparent;
    border:none;
    outline:none;
    padding:12px 14px;
    color:#fff;
    font-size:14.5px;
    width:250px;
    font-family:inherit;
  }
  .newsletter-form input::placeholder{color:rgba(255,255,255,0.45);}

  /* ===== Footer ===== */
  footer{
    background:var(--navy-900);
    color:rgba(255,255,255,0.6);
    padding:70px 0 30px;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr 1fr;
    gap:40px;
    padding-bottom:50px;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .footer-brand p{font-size:13.5px; margin:16px 0 20px; max-width:260px; color:rgba(255,255,255,0.5);}
  .footer-col h5{color:#fff; font-size:13.5px; font-weight:600; margin-bottom:16px; letter-spacing:0.02em;}
  .footer-col li{margin-bottom:11px;}
  .footer-col a{font-size:13.5px; transition:color 0.2s;}
  .footer-col a:hover{color:var(--gold-400);}
  .footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:26px;
    font-size:12.5px;
  }
  .social-row{display:flex; gap:10px;}
  .social-row a{
    width:34px; height:34px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.15);
    display:flex; align-items:center; justify-content:center;
    transition:background 0.2s, border-color 0.2s;
  }
  .social-row a:hover{background:var(--gold-500); border-color:var(--gold-500); color:var(--navy-900);}

  /* Icon font fallback: simple inline svg-like glyphs via unicode where needed */
  .i{font-family:'Inter',sans-serif; font-style:normal;}

  @media (max-width:1080px){
    .cat-grid{grid-template-columns:repeat(3,1fr);}
    .steps-grid{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:1fr 1fr;}
  }
  @media (max-width:900px){
    .nav-links{display:none;}
    .nav-cta{display:none;}
    .menu-toggle{display:flex;}
    .hero{min-height:auto; padding:120px 0 56px; flex-direction:column; align-items:stretch;}
    .hero-inner{grid-template-columns:1fr; gap:28px;}
    .hero-copy{max-width:100%; text-align:center;}
    .hero-copy p{margin-left:auto; margin-right:auto;}
    .search-box{margin:0 auto;}
    .trust-row{justify-content:center; flex-wrap:wrap; row-gap:16px;}
    #hero-canvas{position:relative; width:100%; height:340px; order:-1; margin-bottom:8px;}
    .hero-copy h1{font-size:38px;}
    .newsletter{flex-direction:column; text-align:center; padding:44px 28px;}
    .newsletter-form{width:100%;}
    .newsletter-form input{width:100%;}
  }
  @media (max-width:640px){
    .container{padding:0 20px;}
    .mobile-menu{padding:14px 20px 20px;}
    .hero{padding:110px 0 44px;}
    .hero-copy h1{font-size:32px;}
    .hero-copy p{font-size:15.5px; margin-bottom:26px;}
    .eyebrow{font-size:12px; padding:6px 12px;}
    #hero-canvas{height:280px;}
    .search-box{flex-direction:column; align-items:stretch; padding:14px; gap:8px;}
    .search-box input{padding:8px 4px; text-align:center;}
    .search-box button{width:100%;}
    .trust-row{gap:22px; margin-top:28px;}
    .cat-grid{grid-template-columns:repeat(2,1fr);}
    .steps-grid{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr;}
  }
  @media (max-width:420px){
    .hero-copy h1{font-size:27px;}
    .trust-row{gap:16px 24px;}
    .trust-item strong{font-size:20px;}
    #hero-canvas{height:240px;}
  }
