/* ===========================
   DESIGN TOKENS — Framer Design
=========================== */
:root {
    /* Colors */
    --primary: #ffffff;
    --on-primary: #000000;
    --accent-blue: #0099ff;
    --ink: #ffffff;
    --ink-muted: #999999;
    --canvas: #090909;
    --surface-1: #141414;
    --surface-2: #1c1c1c;
    --hairline: #262626;
    --hairline-soft: #1a1a1a;
    --inverse-canvas: #ffffff;
    --inverse-ink: #000000;
    --semantic-success: #22c55e;

    /* Gradients */
    --gradient-magenta: #d44df0;
    --gradient-violet: #6a4cf5;
    --gradient-orange: #ff7a3d;
    --gradient-coral: #ff5577;

    /* Rounded Corners */
    --rounded-xs: 4px;
    --rounded-sm: 6px;
    --rounded-md: 10px;
    --rounded-lg: 15px;
    --rounded-xl: 20px;
    --rounded-xxl: 30px;
    --rounded-pill: 100px;
    --rounded-full: 9999px;

    /* Typography */
    --font-display: 'GT Walsheim', sans-serif;
    --font-body: 'GT Walsheim', sans-serif;
}

/* ===========================
   FONTS
=========================== */
@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Regular-Trial-BF651b7fc71a47d.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Medium-Trial-BF651b7fc728fb3.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GT Walsheim';
    src: url('fonts/GT-Walsheim-Bold-Trial-BF651b7fc737c57.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    /* OpenType features for Inter Variable */
    font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03", "ss07", "dlig";
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--ink);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   TYPOGRAPHY
=========================== */
.display-xxl {
    font-family: var(--font-display);
    font-size: 110px;
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -5.5px;
}

.display-xl {
    font-family: var(--font-display);
    font-size: 85px;
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -4.25px;
}

.display-lg {
    font-family: var(--font-display);
    font-size: 62px;
    font-weight: 500;
    line-height: 1.00;
    letter-spacing: -3.1px;
}

.display-md {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -1.0px;
}

.headline {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.20;
    letter-spacing: -0.8px;
}

.subhead {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.01px;
}

.body-lg {
    font-size: 18px;
    line-height: 1.30;
    letter-spacing: -0.18px;
}

.body {
    font-size: 15px;
    line-height: 1.30;
    letter-spacing: -0.15px;
}

.body-sm {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.40;
    letter-spacing: -0.14px;
}

.caption {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.13px;
}

/* ===========================
   COMPONENTS — BUTTONS
=========================== */
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--on-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.14px;
    padding: 12px 20px;
    border-radius: var(--rounded-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-1);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.14px;
    padding: 12px 20px;
    border-radius: var(--rounded-pill);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button-secondary:hover {
    background-color: var(--surface-2);
    transform: scale(0.98);
}

.accent-link {
    color: var(--accent-blue);
}

/* ===========================
   CARDS — GRADIENT SPOTLIGHT
=========================== */
.gradient-spotlight-card {
    border-radius: var(--rounded-xxl);
    padding: 32px;
    color: var(--ink);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gradient-spotlight-card.violet {
    background: linear-gradient(135deg, #5b3cf5 0%, #8b5cf6 40%, #6a4cf5 100%);
}

.gradient-spotlight-card.magenta {
    background: linear-gradient(135deg, #c026d3 0%, #d44df0 40%, #a855f7 100%);
}

.gradient-spotlight-card.orange {
    background: linear-gradient(135deg, #ea580c 0%, #ff7a3d 40%, #f97316 100%);
}

/* Product mockup tile — for landscape images */
.product-mockup-tile {
    background-color: var(--surface-1);
    border-radius: var(--rounded-xl);
    padding: 12px;
    width: 100%;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.25), inset 0px 0.5px 0px rgba(255, 255, 255, 0.10);
}

.product-mockup-tile img {
    width: 100%;
    height: auto;
    border-radius: var(--rounded-lg);
    display: block;
}

/* ===========================
   PHONE MOCKUP — for vertical mobile screenshots
=========================== */
.phone-mockup {
    width: 280px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    /* Dynamic Island / notch */
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 2;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
}

/* ===========================
   LAYOUT
=========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAV
=========================== */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    padding: 0 30px;
    position: sticky;
    top: 0;
    background-color: rgba(9, 9, 9, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--hairline-soft);
}

.top-nav .brand-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.top-nav .nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: var(--ink-muted);
}

.top-nav .nav-links a {
    transition: color 0.2s ease;
}

.top-nav .nav-links a:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
    text-align: center;
    padding: 120px 20px 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-section .display-xxl {
    max-width: 900px;
}

.hero-section .subhead {
    max-width: 600px;
    color: var(--ink-muted);
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Hero Showcase — Player image with violet glow */
.hero-showcase {
    margin-top: 60px;
    width: 100%;
    max-width: 1000px;
    position: relative;
}

/* Violet glow behind the player frame */
.hero-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(106, 76, 245, 0.4) 0%, rgba(106, 76, 245, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-showcase .hero-player-frame {
    position: relative;
    z-index: 1;
    background-color: var(--surface-1);
    border-radius: var(--rounded-xl);
    padding: 10px;
    box-shadow:
        0px 10px 40px rgba(0, 0, 0, 0.4),
        inset 0px 0.5px 0px rgba(255, 255, 255, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-showcase .hero-player-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--rounded-xl) - 4px);
}

/* ===========================
   SHOWCASE GRID — Feature Cards
=========================== */
.showcase-section {
    padding: 96px 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 810px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.showcase-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.showcase-card .text-content {
    margin-bottom: 30px;
}

.showcase-card .text-content .display-md {
    margin-bottom: 15px;
}

.showcase-card .text-content .body-lg {
    color: var(--ink-muted);
}

/* Phone showcase inside gradient cards */
.showcase-card .gradient-spotlight-card {
    min-height: 480px;
    padding: 40px 20px;
}

/* ===========================
   FEATURES GRID
=========================== */
.features-section {
    padding: 96px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: var(--surface-1);
    border-radius: var(--rounded-xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    background-color: var(--surface-2);
    border-color: var(--hairline);
    transform: translateY(-2px);
}

.feature-card .headline {
    color: var(--ink);
}

.feature-card .body {
    color: var(--ink-muted);
}

/* ===========================
   DOWNLOAD SECTION
=========================== */
.download-section {
    padding: 96px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Download cards — gradient spotlight variants */
.download-card {
    border-radius: var(--rounded-xxl);
    padding: 40px 32px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.download-card.violet {
    background: linear-gradient(145deg, #5b3cf5 0%, #7c5cfc 50%, #6a4cf5 100%);
}

.download-card.orange {
    background: linear-gradient(145deg, #ea580c 0%, #ff8a4f 50%, #ff7a3d 100%);
}

/* Noise overlay for depth */
.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--rounded-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.download-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.download-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-card-title .display-md {
    font-size: 28px;
}

.download-card-title .version {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.download-card .description {
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.85;
}

.download-card .button-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.download-card.orange .button-primary {
    background-color: var(--on-primary);
    color: var(--primary);
}

/* Featured badge */
.download-card .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: var(--rounded-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===========================
   FAQ SECTION
=========================== */
.faq-section {
    padding: 96px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.faq-item {
    border-bottom: 1px solid var(--hairline-soft);
}

.faq-item:first-child {
    border-top: 1px solid var(--hairline-soft);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.30;
    letter-spacing: -0.17px;
    color: var(--ink);
    list-style: none;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    color: var(--ink-muted);
}

.faq-icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--ink-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 24px 0;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.60;
    letter-spacing: -0.15px;
    max-width: 700px;
}

.faq-answer a {
    color: var(--accent-blue);
}

/* ===========================
   FOOTER
=========================== */
.footer {
    padding: 64px 32px;
    border-top: 1px solid var(--hairline);
    margin-top: 96px;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col:first-child {
    align-items: flex-start;
}

.footer .brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.footer-col .caption {
    color: var(--ink);
}

.footer-col a {
    color: var(--ink-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 30px;
    border-top: 1px solid var(--hairline-soft);
    text-align: center;
    color: var(--ink-muted);
    font-size: 12px;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.hero-showcase {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 810px) {
    .display-xxl {
        font-size: 52px;
        letter-spacing: -2.6px;
    }
    .display-xl {
        font-size: 42px;
        letter-spacing: -2px;
    }
    .display-md {
        font-size: 26px;
        letter-spacing: -0.8px;
    }
    .hero-section {
        padding: 80px 20px 60px;
    }
    .top-nav {
        padding: 0 16px;
    }
    .top-nav .nav-links {
        display: none;
    }
    .download-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }
    .faq-question {
        font-size: 15px;
    }
    .phone-mockup {
        width: 240px;
    }
    .showcase-card .gradient-spotlight-card {
        min-height: 400px;
        padding: 30px 16px;
    }
    .hero-showcase .hero-player-frame {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .display-xxl {
        font-size: 38px;
        letter-spacing: -1.9px;
    }
    .display-xl {
        font-size: 32px;
        letter-spacing: -1.6px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions a {
        width: 100%;
        text-align: center;
    }
    .hero-section {
        padding: 80px 20px 60px;
    }
    .hero-showcase {
        margin-top: 40px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    .hero-showcase .hero-player-frame {
        padding: 4px;
        border-radius: var(--rounded-md);
    }
    .hero-showcase .hero-player-frame img {
        border-radius: calc(var(--rounded-md) - 2px);
    }
    .footer {
        grid-template-columns: 1fr;
    }
    .phone-mockup {
        width: 200px;
    }
    .download-card {
        padding: 28px 24px;
    }
}
