/* ===== Design System & Theme ===== */
    :root {
      --bg-color: #EAEDF0;
      --text-color: #1d1d1f;
      --text-muted: #86868b;
      --glass-bg: rgba(255,255,255,0.4);
      --glass-border: rgba(0,0,0,0.08);
      --section-border: rgba(0,0,0,0.06);
      --accent-color: #38bdf8; /* Wifi accent color (sky blue) */
      --page-pd: clamp(24px,6vw,100px);
      --transition-base: all 0.8s cubic-bezier(0.16,1,0.3,1);
    }
    body[data-color="dark"] {
      --bg-color: #09090b;
      --text-color: #f5f5f7;
      --text-muted: #86868b;
      --glass-bg: rgba(255,255,255,0.03);
      --glass-border: rgba(255,255,255,0.08);
      --section-border: rgba(255,255,255,0.08);
      --accent-color: #38bdf8;
    }

    * { box-sizing:border-box; margin:0; padding:0; cursor:none !important; user-select:none; -webkit-user-select:none; }

    html {
      font-size:16px; scroll-behavior:smooth; scroll-padding-top:70px;
      scrollbar-width:none; -ms-overflow-style:none; overflow-x:clip;
    }
    html::-webkit-scrollbar { display:none; }
    html.lenis { height:auto; }
    .lenis.lenis-smooth { scroll-behavior:auto !important; }
    .lenis.lenis-stopped { overflow:hidden; }

    body {
      background-color:var(--bg-color);
      color:var(--text-color);
      font-family:'Inter',-apple-system,system-ui,sans-serif;
      overflow-x:clip;
      transition:background-color 0.8s cubic-bezier(0.16,1,0.3,1),color 0.5s ease;
      -webkit-font-smoothing:antialiased;
    }

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

    /* ===== Custom Cursor ===== */
    .custom-cursor {
      position:fixed; top:0; left:0; width:14px; height:14px;
      border-radius:50%; background-color:var(--text-color);
      pointer-events:none; z-index:999999; transform:translate(-50%,-50%);
      opacity:0; transition:transform 0.2s ease,opacity 0.2s ease,background-color 0.3s;
    }
    .custom-cursor.visible { opacity:1; }
    .custom-cursor.hover {
      transform:translate(-50%,-50%) scale(3.5);
      border:1px solid var(--text-color);
      backdrop-filter:invert(1) grayscale(1);
    }

    @media (max-width: 991px) {
      .custom-cursor {
        display: none !important;
      }
      * {
        cursor: auto !important;
      }
      a, button, [role="button"], select, option, .mobile-menu-btn {
        cursor: pointer !important;
      }
    }

    /* ===== Page Loader ===== */
    #intellihome-loader {
      position:fixed; inset:0; z-index:99999;
      background:#EAEDF0;
      transition:transform 0.85s cubic-bezier(0.76,0,0.24,1);
    }
    body[data-color="dark"] #intellihome-loader { background:#09090b; }
    #intellihome-loader.slide-up { transform:translateY(-100%); }

    /* ===== Navbar ===== */
    nav {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translate3d(-50%, 0, 0);
      width: calc(100% - 40px);
      max-width: 1000px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100;
      background-color: rgba(255, 255, 255, 0.75);
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 9999px;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body[data-color="dark"] nav {
      background-color: rgba(9, 9, 11, 0.75);
      border-color: rgba(255, 255, 255, 0.08);
    }
    nav.scrolled {
      top: 12px;
      height: 52px;
      background-color: rgba(255, 255, 255, 0.85);
      border-color: rgba(0, 0, 0, 0.12);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    }
    body[data-color="dark"] nav.scrolled {
      background-color: rgba(9, 9, 11, 0.85);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    nav.nav-hidden {
      transform: translate3d(-50%, -100px, 0) !important;
      opacity: 0 !important;
      pointer-events: none;
    }
    .nav-container {
      width: 100%;
      height: 100%;
      padding: 0 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-brand {
      display:flex; align-items:center; gap:10px; text-decoration:none;
      color:var(--text-color); font-family:'Outfit',sans-serif;
      font-size:20px; font-weight:500; letter-spacing:-0.02em;
    }
    .nav-links { display:flex; align-items:center; gap:32px; }
    .nav-links a {
      font-size:13px; font-weight:500; color:var(--text-muted);
      text-decoration:none; transition:color 0.3s;
    }
    .nav-links a:hover, .nav-links a.active { color:var(--text-color); }
    .nav-contact { color:var(--accent-color) !important; }
    .custom-theme-toggle {
      background:transparent; border:none; color:var(--text-muted);
      font-family:'Inter',sans-serif; font-size:13px; font-weight:500;
      padding:0; cursor:pointer; transition:color 0.3s;
    }
    .custom-theme-toggle:hover {
      color:var(--text-color); background-color:transparent;
    }
    .mobile-menu-btn {
      display:none; background:transparent; border:none; color:var(--text-muted);
      font-family:'Inter',sans-serif; font-size:13px; font-weight:500;
      padding:0; cursor:pointer; z-index:10001; transition:color 0.3s;
    }
    .mobile-menu-btn:hover {
      color:var(--text-color);
    }
    @media(max-width:768px) {
      .nav-links { display:none; }
      .mobile-menu-btn { display:block; }
    }

    /* Mobile Menu Overlay */
    .mobile-nav-overlay {
      position:fixed; inset:0; width:100%; height:100vh;
      background-color:var(--bg-color); z-index:99;
      display:flex; flex-direction:column; justify-content:center;
      padding:0 var(--page-pd); opacity:0; pointer-events:none;
      transition:opacity 0.5s ease;
    }
    body.menu-open .mobile-nav-overlay { opacity:1; pointer-events:auto; }
    .mobile-nav-links { display:flex; flex-direction:column; gap:28px; }
    .mobile-nav-links a {
      font-family:'Outfit',sans-serif; font-size:32px; font-weight:600;
      color:var(--text-color); text-decoration:none;
    }
    .mobile-nav-links a:hover { color:var(--accent-color); }

    /* ===== Hero ===== */
    .page-hero {
      width:100%; min-height:100vh; display:flex;
      align-items:center; justify-content:center;
      padding:100px var(--page-pd) 60px; position:relative; overflow:hidden;
    }
    .hero-bg-wrapper {
      position:absolute; inset:0; z-index:1;
      background-image:url('assets/wifi_hero.jpg');
      background-size:cover; background-position:center;
      will-change:transform;
    }
    body[data-color="dark"] .hero-bg-wrapper {
      background-image:url('assets/wifi_hero.jpg');
    }
    .hero-content {
      position:relative; z-index:2; text-align:center;
      display:flex; flex-direction:column; align-items:center; gap:20px;
      max-width:800px; will-change:transform,opacity;
    }
    .hero-eyebrow {
      font-family:'Outfit',sans-serif; font-size:12px; font-weight:700;
      letter-spacing:0.15em; color:var(--text-muted); text-transform:uppercase;
    }
    .hero-title {
      font-family:'Outfit',sans-serif; font-size:clamp(52px,7vw,96px);
      font-weight:800; line-height:0.92; letter-spacing:-0.045em;
      color:var(--text-color);
    }
    .hero-desc {
      font-size:15px; line-height:1.55; color:var(--text-muted); max-width:560px;
    }
    .hero-cta-row { display:flex; gap:16px; align-items:center; flex-wrap:wrap; justify-content:center; }

    /* Glass pill button */
    .glass-pill-btn {
      display:inline-block; padding:12px 32px; font-size:14px; font-weight:500;
      font-family:'Inter',system-ui,sans-serif; color:var(--text-color);
      background:linear-gradient(135deg,rgba(255,255,255,0.45) 0%,rgba(255,255,255,0.15) 100%);
      border:1px solid rgba(255,255,255,0.4); border-radius:30px; text-decoration:none;
      box-shadow:inset 0 1px 1px rgba(255,255,255,0.6),0 4px 10px rgba(0,0,0,0.04);
      backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
      transition:transform 0.3s ease,box-shadow 0.3s ease,background 0.3s ease;
    }
    body[data-color="dark"] .glass-pill-btn {
      background:linear-gradient(135deg,rgba(255,255,255,0.08) 0%,rgba(255,255,255,0.02) 100%);
      border:1px solid rgba(255,255,255,0.08);
    }
    .glass-pill-btn:hover { transform:translateY(-2px); }
    .outline-pill-btn {
      display:inline-block; padding:12px 32px; font-size:14px; font-weight:500;
      font-family:'Inter',system-ui,sans-serif; color:var(--text-muted);
      background:transparent; border:1px solid var(--glass-border);
      border-radius:30px; text-decoration:none;
      transition:transform 0.3s ease,color 0.3s,border-color 0.3s;
    }
    .outline-pill-btn:hover { transform:translateY(-2px); color:var(--text-color); border-color:var(--text-color); }

    /* Always white text overrides in Hero for readability on dark background image */
    .page-hero .hero-eyebrow { color: rgba(255, 255, 255, 0.7); }
    .page-hero .hero-title { color: #ffffff; }
    .page-hero .hero-desc { color: rgba(255, 255, 255, 0.85); }
    .page-hero .glass-pill-btn { color: #ffffff; border-color: rgba(255,255,255,0.4); background: linear-gradient(135deg,rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.05) 100%); }
    body[data-color="dark"] .page-hero .glass-pill-btn { background: linear-gradient(135deg,rgba(255,255,255,0.08) 0%,rgba(255,255,255,0.02) 100%); }
    .page-hero .outline-pill-btn { color: rgba(255, 255, 255, 0.8); border-color: rgba(255, 255, 255, 0.25); }
    .page-hero .outline-pill-btn:hover { color: #ffffff; border-color: #ffffff; }

    /* Hero entrance */
    .hero-content > * {
      opacity:0; transform:translateY(20px);
      animation:itemReveal 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
    }
    .hero-eyebrow { animation-delay:0.5s; }
    .hero-title   { animation-delay:0.65s; }
    .hero-desc    { animation-delay:0.8s; }
    .hero-cta-row { animation-delay:0.95s; }
    @keyframes itemReveal { to { opacity:1; transform:translateY(0); } }

    /* ===== Lifestyle Section & Collage ===== */
    .lifestyle-section {
      background-color: #ffffff;
      color: #1d1d1f;
      border-top: 1px solid var(--section-border);
      border-bottom: 1px solid var(--section-border);
      padding: clamp(80px, 12vw, 160px) var(--page-pd);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    body[data-color="dark"] .lifestyle-section {
      background-color: #121212;
      color: #f5f5f7;
    }
    .btn-yellow {
      display: inline-block;
      padding: 12px 32px;
      font-size: 14px;
      font-weight: 600;
      font-family: 'Inter', system-ui, sans-serif;
      color: #1d1d1f;
      background-color: var(--accent-color);
      border: none;
      border-radius: 30px;
      text-decoration: none;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
      text-align: center;
    }
    .btn-yellow:hover {
      transform: translateY(-2px);
      opacity: 0.9;
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    }
    .lifestyle-collage {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 20px;
      width: 100%;
      max-width: 580px;
      position: relative;
    }
    .collage-col {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .collage-col-right {
      padding-top: 30px;
    }
    .lifestyle-item-wrapper {
      width: 100%;
      will-change: transform, opacity;
      opacity: 0;
    }
    .collage-item-wrapper {
      width: 100%;
      will-change: transform, opacity;
      opacity: 0;
    }
    .collage-item {
      position: relative;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
      background-color: var(--glass-bg);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body[data-color="dark"] .collage-item {
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    .collage-item:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }
    .collage-item img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }
    .collage-item-1 {
      aspect-ratio: 1.25 / 1;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,1) 40%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,1) 40%);
    }
    .collage-item-2 {
      aspect-ratio: 0.85 / 1;
    }
    .collage-item-3 {
      aspect-ratio: 0.8 / 1;
    }
    .collage-item-4 {
      aspect-ratio: 1.1 / 1;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0.2) 100%);
    }
    .collage-item-5 {
      aspect-ratio: 0.85 / 1;
    }

    .section-container-split {
      width: 100%;
      max-width: 1200px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .section-left-text {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      max-width: 480px;
    }
    .section-headline {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(36px, 4.5vw, 64px);
      font-weight: 700;
      line-height: 1.05;
      letter-spacing: -0.03em;
    }
    .section-body {
      font-size: 15px;
      line-height: 1.55;
      color: var(--text-muted);
    }

    @media (max-width: 991px) {
      .section-container-split {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
      }
      .section-left-text {
        align-items: center;
        max-width: 100%;
      }
      .lifestyle-section {
        padding: 80px var(--page-pd);
      }
      .lifestyle-collage {
        margin: 0 auto;
        max-width: 480px;
      }
    }

    /* ===== CTA Banner ===== */
    .cta-section {
      padding:clamp(80px,12vw,140px) var(--page-pd);
      display:flex; align-items:center; justify-content:center;
      border-top:1px solid var(--section-border);
    }
    .cta-inner {
      max-width:1200px; width:100%;
      display:flex; align-items:center; justify-content:space-between;
      gap:40px;
    }
    @media(max-width:768px) { .cta-inner { flex-direction:column; text-align:center; align-items:center; } }
    .cta-headline {
      font-family:'Outfit',sans-serif; font-size:clamp(32px,4.5vw,60px);
      font-weight:800; letter-spacing:-0.04em; line-height:1.0;
      color:var(--text-color); max-width:500px;
    }
    .cta-actions { display:flex; flex-direction:column; gap:14px; align-items:flex-end; }
    @media(max-width:768px) { .cta-actions { align-items:center; } }
    .cta-sub {
      font-size:14px; color:var(--text-muted); max-width:260px;
      text-align:right; line-height:1.55;
    }
    @media(max-width:768px) { .cta-sub { text-align:center; } }
    .arrow-circle-btn {
      display:inline-flex; align-items:center; justify-content:center;
      width:50px; height:50px; border-radius:50%;
      border:1px solid rgba(0,0,0,0.1); color:var(--text-color);
      background:transparent; font-size:20px; text-decoration:none;
      transition:background-color 0.3s,transform 0.3s,border-color 0.3s,color 0.3s;
    }
    body[data-color="dark"] .arrow-circle-btn { border-color:rgba(255,255,255,0.15); }
    .arrow-circle-btn:hover {
      background-color:var(--text-color); color:var(--bg-color);
      border-color:var(--text-color); transform:scale(1.05);
    }
    .cta-btn-row { display:flex; gap:12px; align-items:center; }

    /* Reveal states for CTA */
    .cta-section .cta-headline,
    .cta-section .cta-actions {
      opacity:0; transform:translateY(24px);
      transition:opacity 1s cubic-bezier(0.16,1,0.3,1),transform 1s cubic-bezier(0.16,1,0.3,1);
    }
    .cta-section.revealed .cta-headline { opacity:1; transform:translateY(0); }
    .cta-section.revealed .cta-actions  { opacity:1; transform:translateY(0); transition-delay:0.15s; }

    /* ===== Footer ===== */
    footer {
      background-color:var(--bg-color); border-top:1px solid var(--section-border);
      padding:80px var(--page-pd) 40px; color:var(--text-color);
      display:flex; align-items:center; justify-content:center;
    }
    .footer-container {
      width:100%; max-width:1200px; display:flex;
      flex-direction:column; align-items:center; gap:32px;
    }
    .footer-logo {
      display:flex; align-items:center; gap:10px;
      font-family:'Outfit',sans-serif; font-size:22px;
      font-weight:500; color:var(--text-color);
    }
    .footer-credits {
      font-size:13px; color:var(--text-muted); text-align:center;
      border-top:1px solid var(--section-border); padding-top:24px; width:100%;
    }
    .footer-credits a { color:var(--accent-color); text-decoration:none; font-weight:500; }

    /* ===== Glassmorphic Card Details Overlay (Home Upgrade Style) ===== */
    .product-card-overlay {
      position: absolute;
      bottom: 12px;
      left: 12px;
      width: calc(100% - 24px);
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(20px) saturate(140%);
      -webkit-backdrop-filter: blur(20px) saturate(140%);
      border-radius: 20px;
      padding: 18px 20px;
      box-sizing: border-box;
      border: 1px solid rgba(255, 255, 255, 0.45);
      display: flex;
      flex-direction: column;
      gap: 6px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
      z-index: 10;
      text-align: left;
    }
    body[data-color="dark"] .product-card-overlay {
      background: rgba(18, 18, 18, 0.7);
      border-color: rgba(255, 255, 255, 0.08);
    }
    .product-card-header {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .profile-name {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: #1d1d1f;
      letter-spacing: -0.01em;
      margin: 0;
    }
    body[data-color="dark"] .profile-name {
      color: #f5f5f7;
    }
    .verified-badge {
      display: flex;
      align-items: center;
      justify-content: center;
      color: #10b981;
    }
    .verified-badge svg {
      width: 16px;
      height: 16px;
    }
    .profile-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-color);
      margin: 0 0 2px 0;
    }
    .profile-bio {
      font-size: 12px;
      line-height: 1.45;
      color: var(--text-muted);
      margin: 0 0 8px 0;
    }
    .product-card-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-top: auto;
    }
    .follow-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 16px;
      font-size: 12px;
      font-weight: 600;
      color: #1d1d1f !important;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 20px;
      text-decoration: none;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
    }
    body[data-color="dark"] .follow-btn {
      background: #f5f5f7;
      color: #1d1d1f !important;
      border-color: transparent;
    }
    .follow-btn:hover {
      transform: scale(1.05);
      background-color: #f5f5f7;
    }
    body[data-color="dark"] .follow-btn:hover {
      background-color: #ffffff;
    }

    @media (max-width: 991px) {
      .product-card-overlay {
        padding: 14px 16px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        gap: 4px;
      }
      .product-card-header {
        gap: 5px;
      }
      .profile-name {
        font-size: 15px;
      }
      .verified-badge svg {
        width: 14px;
        height: 14px;
      }
      .profile-title {
        font-size: 11px;
        margin: 0 0 1px 0;
      }
      .profile-bio {
        font-size: 11px;
        line-height: 1.4;
        margin: 0 0 6px 0;
      }
      .follow-btn {
        padding: 6px 14px;
        font-size: 11px;
      }
    }

    @media (max-width: 576px) {
      .product-card-overlay {
        padding: 10px 12px;
      }
      .profile-bio {
        display: none; /* Hide bio on mobile to fit the overlay in collage grid cards */
      }
    }