/* =========================================
           CSS VARIABLES & RESET
           ========================================= */
      :root {
        --primary: #f0b429;
        --accent: #d42b2b;
        --bg: #0a0a0a;
        --surface: #141414;
        --surface-raised: #1e1e1e;
        --text-primary: #f5f5f5;
        --text-secondary: #9a9a9a;
        --success: #22c55e;
        --ios-blue: #3b82f6;
        --border: #2a2a2a;
        --gradient-wash: linear-gradient(135deg, #f0b429 0%, #d42b2b 100%);

        --font-display: "Barlow Condensed", sans-serif;
        --font-body: "DM Sans", sans-serif;
        --font-ui: "DM Mono", monospace;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        font-family: var(--font-body);
        background-color: var(--bg);
        color: var(--text-primary);
        line-height: 1.5;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }

      a {
        text-decoration: none;
        color: inherit;
      }

      ul {
        list-style: none;
      }

      img {
        max-width: 100%;
        height: auto;
        display: block;
      }

      /* =========================================
           TYPOGRAPHY & UTILITIES
           ========================================= */
      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        font-family: var(--font-display);
        text-transform: uppercase;
      }

      .text-gradient {
        background: var(--gradient-wash);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
      }

      .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .container-narrow {
        max-width: 800px;
      }

      .section-padding {
        padding: 96px 0;
      }

      .bg-surface {
        background-color: var(--surface);
      }

      .section-header {
        margin-bottom: 48px;
      }

      .section-title {
        font-size: 40px;
        font-weight: 800;
        margin-bottom: 16px;
        position: relative;
      }

      .section-title.centered {
        text-align: center;
      }

      .section-title:not(.centered)::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
        margin-top: 12px;
      }

      .section-title.centered::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
        margin: 12px auto 0;
      }

      .body-text {
        font-size: 17px;
        color: var(--text-primary);
        margin-bottom: 24px;
        line-height: 1.6;
      }

      /* =========================================
           COMPONENTS
           ========================================= */
      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 18px;
        text-transform: uppercase;
        padding: 14px 32px;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        border: none;
        gap: 8px;
      }

      .btn-type-a {
        background: var(--gradient-wash);
        color: #111;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(240, 180, 41, 0.2);
      }

      .btn-type-a:hover {
        box-shadow: 0 6px 20px rgba(240, 180, 41, 0.4);
        transform: translateY(-2px);
      }

      .btn-type-b {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
        border-radius: 6px;
      }

      .btn-type-b:hover {
        background: rgba(240, 180, 41, 0.1);
      }

      .btn-type-b.capsule {
        border-radius: 50px;
      }

      .center-btn-wrap {
        text-align: center;
        margin-top: 32px;
      }

      .icon-gold {
        fill: none;
        stroke: var(--primary);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      /* Platform Badges */
      .platform-badge {
        display: inline-flex;
        align-items: center;
        background: var(--surface-raised);
        border-radius: 20px;
        font-family: var(--font-ui);
        font-weight: 700;
        font-size: 13px;
        color: var(--text-primary);
        padding: 6px 14px;
        margin-bottom: 12px;
      }

      .badge-android {
        border-left: 3px solid var(--success);
      }
      .badge-ios {
        border-left: 3px solid var(--ios-blue);
      }

      /* Stat Pills */
      .stat-pills {
        display: flex;
        gap: 12px;
        margin-bottom: 32px;
        flex-wrap: wrap;
      }

      .stat-pill {
        background: var(--surface-raised);
        border: 1px solid var(--primary);
        border-radius: 24px;
        padding: 8px 20px;
        font-family: var(--font-ui);
        font-size: 14px;
        font-weight: 500;
        color: var(--primary);
      }

      /* =========================================
           NAVBAR
           ========================================= */
      .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: rgba(30, 30, 30, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 100;
        border-bottom: 1px solid var(--border);
      }

      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .logo {
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 800;
        color: var(--text-primary);
        letter-spacing: 1px;
      }

      .nav-links {
        display: flex;
        gap: 32px;
      }

      .nav-link {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 15px;
        color: var(--text-primary);
        transition: color 0.2s;
      }

      .nav-link:hover {
        color: var(--primary);
      }

      .nav-actions {
        display: flex;
        gap: 16px;
      }

      .nav-btn {
        padding: 8px 20px;
        font-size: 16px;
        border-radius: 50px;
      }

      .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
      }

      .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        margin: 5px 0;
        transition: 0.3s;
      }

      .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--surface-raised);
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-y: auto;
      }

      .mobile-menu.active {
        transform: translateX(0);
      }

      .mobile-menu .nav-links {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
      }

      .mobile-menu .nav-link {
        font-size: 18px;
        display: block;
      }

      .mobile-menu .nav-actions {
        flex-direction: column;
      }

      .mobile-menu .btn {
        width: 100%;
      }

      /* =========================================
           SECTION 1: HERO (DOWNLOAD PAGE)
           ========================================= */
      .download-hero {
        position: relative;
        padding: 160px 0 100px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        /* Geometric grid overlay + solid background */
        background-color: var(--bg);
        background-image:
          linear-gradient(#1a1a1a 1px, transparent 1px),
          linear-gradient(90deg, #1a1a1a 1px, transparent 1px);
        background-size: 40px 40px;
        overflow: hidden;
      }

      .hero-split {
        display: flex;
        align-items: center;
        gap: 40px;
      }

      .hero-content {
        width: 50%;
        position: relative;
        z-index: 2;
      }

      .hero-title {
        font-size: 58px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
        color: #ffffff;
      }

      .hero-actions {
        display: flex;
        gap: 16px;
      }

      .btn-hero-dl {
        min-width: 200px;
      }

      .hero-visual {
        width: 50%;
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        perspective: 1200px; /* Enable 3D space */
      }

      .hero-visual-inner {
        transform: rotateY(-8deg) rotateX(2deg); /* Slight upward 3D angle */
        transition: transform 0.5s ease;
      }

      .hero-visual:hover .hero-visual-inner {
        transform: rotateY(-2deg) rotateX(0deg);
      }

      /* =========================================
           SECTION 2: WHY USE THE APP
           ========================================= */
      .advantage-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }

      .advantage-card {
        background: var(--surface-raised);
        border-radius: 4px;
        padding: 32px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
      }

      .advantage-card:hover {
        border-color: var(--primary);
      }

      .adv-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
        transition: filter 0.3s;
      }

      .advantage-card:hover .adv-icon {
        filter: drop-shadow(0 0 8px rgba(240, 180, 41, 0.6));
      }

      .adv-title {
        font-size: 20px;
        margin-bottom: 8px;
      }

      .adv-stat {
        display: block;
        font-family: var(--font-ui);
        font-size: 28px;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 12px;
      }

      .adv-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 3 & 4: DOWNLOAD GUIDES (SHARED)
           ========================================= */
      .guide-split {
        display: flex;
        align-items: stretch;
        gap: 5%;
      }

      .guide-content {
        width: 55%;
      }

      .guide-visual {
        width: 45%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
      }

      /* Vertical Step List */
      .guide-steps {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-bottom: 32px;
      }

      .g-step-row {
        display: flex;
        position: relative;
        padding: 24px 0;
      }

      .g-step-row::before {
        content: "";
        position: absolute;
        left: 24px; /* Center of 48px num col */
        top: 0;
        bottom: 0;
        width: 2px;
        background-image: linear-gradient(
          to bottom,
          var(--primary) 40%,
          transparent 40%
        );
        background-size: 2px 10px;
        background-repeat: repeat-y;
        opacity: 0.4;
        z-index: 0;
      }

      .g-step-row:first-child::before {
        top: 32px;
      }
      .g-step-row:last-child::before {
        bottom: calc(100% - 32px);
      }

      .g-step-num-col {
        width: 48px;
        flex-shrink: 0;
        text-align: right;
        position: relative;
        z-index: 1;
      }

      .g-step-num {
        font-family: var(--font-ui);
        font-weight: 800;
        font-size: 40px; /* Slightly smaller than register page */
        color: var(--primary);
        background: var(--bg);
        line-height: 1;
        padding: 8px 0;
        display: inline-block;
      }

      .guide-content-col {
        flex-grow: 1;
        padding-left: 24px;
        padding-top: 8px;
      }

      .g-step-title {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 8px;
      }

      .g-step-desc {
        font-size: 16px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* Android Step 1 Callout */
      .g-step-callout {
        background: var(--surface-raised);
        border-left: 3px solid var(--primary);
        padding: 16px;
        border-radius: 0 4px 4px 0;
        margin-top: 12px;
      }

      .g-step-callout .g-step-desc {
        color: var(--text-primary);
        font-weight: 500;
        font-size: 15px;
      }

      /* iOS Inline Icon */
      .inline-icon {
        display: inline-flex;
        align-items: center;
        background: var(--surface-raised);
        padding: 2px 8px;
        border-radius: 4px;
        border: 1px solid var(--border);
        gap: 6px;
        margin: 0 4px;
        vertical-align: middle;
      }

      .inline-icon svg {
        width: 16px;
        height: 16px;
        stroke: var(--primary);
      }

      /* Sticky Android Mockup */
      .android-sticky-mockup {
        position: sticky;
        top: 120px;
        width: 280px;
        height: 580px;
        border: 12px solid #1a1a1a;
        border-radius: 36px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        background: #000;
      }

      .android-sticky-mockup img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      /* CSS iOS Mockup */
      .ios-css-mockup {
        position: sticky;
        top: 120px;
        width: 280px;
        height: 580px;
        border: 12px solid #1a1a1a;
        border-radius: 40px;
        background: #0f0f10;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: hidden;
      }

      .ios-notch {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 26px;
        background: #1a1a1a;
        border-radius: 0 0 16px 16px;
      }

      /* Simulating the Share Sheet in CSS */
      .ios-share-sheet {
        background: #1c1c1e;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        width: 100%;
        height: 60%;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .ios-app-icon-row {
        display: flex;
        gap: 12px;
        align-items: center;
        padding-bottom: 16px;
        border-bottom: 1px solid #333;
      }

      .ios-fake-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background: var(--gradient-wash);
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: var(--font-display);
        font-weight: 800;
        color: #111;
      }

      .ios-fake-text {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }
      .ios-line-1 {
        width: 80px;
        height: 12px;
        background: #fff;
        border-radius: 6px;
      }
      .ios-line-2 {
        width: 120px;
        height: 10px;
        background: #666;
        border-radius: 5px;
      }

      .ios-action-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: #2c2c2e;
        border-radius: 12px;
      }
      .ios-action-row.highlight {
        border: 1px solid var(--primary);
      }
      .ios-action-text {
        color: #fff;
        font-family: var(--font-body);
        font-size: 14px;
        flex-grow: 1;
      }
      .ios-action-icon {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: #fff;
        stroke-width: 2;
      }

      /* =========================================
           SECTION 5: APP-EXCLUSIVE FEATURES
           ========================================= */
      .features-grid-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 24px;
      }

      .features-grid-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 632px;
        margin: 0 auto;
      }

      .feature-card {
        background: var(--surface-raised);
        border-radius: 4px;
        border-top: 3px solid var(--primary);
        padding: 24px;
        position: relative;
      }

      .app-only-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        background: var(--accent);
        color: #fff;
        font-family: var(--font-ui);
        font-size: 11px;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 4px;
        letter-spacing: 0.5px;
      }

      .feat-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 16px;
      }

      .feat-title {
        font-size: 18px;
        margin-bottom: 8px;
      }

      .feat-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 6: SYSTEM REQUIREMENTS
           ========================================= */
      .req-split {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-bottom: 32px;
      }

      .req-card {
        background: var(--surface-raised);
        border-radius: 4px;
        padding: 32px;
      }

      .req-def-list {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .req-def-row {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
        padding-bottom: 8px;
      }

      .req-label {
        font-family: var(--font-body);
        font-weight: 500;
        color: var(--text-primary);
        font-size: 15px;
      }

      .req-val {
        font-family: var(--font-ui);
        color: var(--text-secondary);
        font-size: 14px;
        text-align: right;
      }

      .req-footer-note {
        width: 100%;
        text-align: center;
        font-family: var(--font-body);
        font-style: italic;
        font-size: 14px;
        color: var(--text-secondary);
      }

      /* =========================================
           FAQ
           ========================================= */
      .faq-list {
        max-width: 800px;
        margin: 0 auto;
      }

      .faq-item {
        border-bottom: 1px solid var(--border);
      }

      .faq-question {
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        padding: 24px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 16px;
        color: var(--text-primary);
        cursor: pointer;
      }

      .faq-icon {
        width: 20px;
        height: 20px;
        stroke: var(--primary);
        transition: transform 0.3s ease;
      }

      .faq-item.active .faq-icon {
        transform: rotate(180deg);
      }

      .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
      }

      .faq-answer-inner {
        padding-bottom: 24px;
        font-size: 16px;
        color: var(--text-secondary);
        padding-right: 40px;
        line-height: 1.6;
      }

      /* =========================================
           FOOTER
           ========================================= */
      footer {
        background: #050505;
        padding: 64px 0 32px;
        border-top: 1px solid var(--border);
      }

      .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 48px;
        margin-bottom: 48px;
      }

      .footer-logo {
        font-family: var(--font-display);
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 16px;
      }

      .footer-desc {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 24px;
      }

      .footer-heading {
        font-family: var(--font-display);
        font-size: 18px;
        margin-bottom: 24px;
        color: var(--text-primary);
      }

      .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .footer-link {
        font-size: 14px;
        color: var(--text-secondary);
        transition: color 0.2s;
      }

      .footer-link:hover {
        color: var(--primary);
      }

      .social-links {
        display: flex;
        gap: 16px;
      }

      .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--surface-raised);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }

      .social-link:hover {
        background: var(--primary);
      }

      .social-link svg {
        width: 20px;
        height: 20px;
        fill: var(--text-primary);
      }

      .badges-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
      }

      .license-badge {
        background: var(--surface-raised);
        border: 1px solid var(--border);
        border-radius: 50px;
        padding: 6px 12px;
        font-family: var(--font-ui);
        font-size: 12px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }

      .footer-bottom {
        border-top: 1px solid var(--border);
        padding-top: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: var(--text-secondary);
      }

      /* =========================================
           FLOATING CTA
           ========================================= */
      .floating-cta {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: var(--gradient-wash);
        color: #111;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 16px;
        text-transform: uppercase;
        padding: 16px 24px;
        border-radius: 50px;
        z-index: 90;
        box-shadow: 0 0 20px rgba(240, 180, 41, 0.4);
        animation: pulse-glow 2s infinite;
        transition:
          opacity 0.3s,
          visibility 0.3s;
      }

      .floating-cta.hidden {
        opacity: 0;
        visibility: hidden;
      }

      @keyframes pulse-glow {
        0% {
          box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.7);
        }
        70% {
          box-shadow: 0 0 0 15px rgba(240, 180, 41, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(240, 180, 41, 0);
        }
      }

      /* =========================================
           RESPONSIVE BREAKPOINTS
           ========================================= */
      @media (max-width: 1023px) {
        /* Tablet */
        .hero-title {
          font-size: 48px;
        }
        .guide-split {
          flex-direction: column;
          gap: 40px;
        }
        .guide-content,
        .guide-visual {
          width: 100%;
        }
        .guide-visual {
          justify-content: center;
        }
        .android-sticky-mockup,
        .ios-css-mockup {
          position: relative;
          top: 0;
          margin-bottom: 24px;
        }

        /* iOS flips layout logic on tablet/mobile so text is below mockup */
        #ios .guide-split {
          flex-direction: column-reverse;
        }

        .features-grid-top {
          grid-template-columns: repeat(2, 1fr);
        }
        .features-grid-bottom {
          grid-template-columns: 1fr;
          max-width: none;
        }
        .features-grid-top .feature-card:nth-child(3) {
          grid-column: span 2;
        }

        .req-split {
          grid-template-columns: 1fr;
        }

        .g-step-row::before {
          left: 24px;
        }

        .footer-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      @media (max-width: 767px) {
        /* Mobile */
        .nav-links,
        .nav-actions {
          display: none;
        }
        .mobile-menu-btn {
          display: block;
        }

        .hero-split {
          flex-direction: column-reverse;
          padding-top: 40px;
        }
        .hero-content,
        .hero-visual {
          width: 100%;
          text-align: center;
        }
        .hero-title {
          font-size: 36px;
        }
        .stat-pills {
          justify-content: center;
        }
        .hero-actions {
          flex-direction: column;
        }
        .hero-actions .btn {
          width: 100%;
        }

        .advantage-grid {
          grid-template-columns: 1fr;
        }

        .g-step-row::before {
          left: 16px;
        }
        .g-step-num-col {
          width: 32px;
          text-align: left;
        }
        .g-step-num {
          font-size: 32px;
        }
        .guide-content-col {
          padding-left: 16px;
        }

        .features-grid-top {
          grid-template-columns: 1fr;
        }
        .features-grid-top .feature-card:nth-child(3) {
          grid-column: span 1;
        }

        .footer-grid {
          grid-template-columns: 1fr;
          gap: 32px;
        }
        .footer-bottom {
          flex-direction: column;
          gap: 16px;
          text-align: center;
        }
      }
