/* BitZed newhome — ultra-premium minimal landing */

:root {
    --bg: #f7f7f5;
    --bg-pure: #ffffff;
    --text: #111111;
    --text-secondary: #5c5c5c;
    --text-tertiary: #8a8a8a;
    --border: rgba(17, 17, 17, 0.08);
    --border-light: rgba(17, 17, 17, 0.05);
    --orange: #f7931a;
    --orange-deep: #e8780c;
    --orange-glow: rgba(247, 147, 26, 0.18);
    --blue: #1a8cff;
    --blue-deep: #0066e0;
    --blue-glow: rgba(26, 140, 255, 0.16);
    --green: #008f4c;
    --green-deep: #007a42;
    --nav-height: 100px;
    --section-gap: clamp(2rem, 4vw, 3rem);
    --content-width: 1120px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Navigation ── */

.nav {
    position: relative;
    width: 100%;
    z-index: 10;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: transparent;
}

.nav-inner {
    width: 100%;
    max-width: var(--content-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.035em;
}

.nav-logo img {
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    background: var(--text);
    color: var(--bg-pure);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.15);
}

.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

/* ── Layout ── */

.wrap {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 2rem;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    max-width: 600px;
    height: 70%;
    background: radial-gradient(ellipse at center, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero-glow-blue {
    position: absolute;
    bottom: 10%;
    left: -15%;
    width: 50%;
    max-width: 400px;
    height: 50%;
    background: radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-drift 14s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3.6vw, 2.875rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--green);
    font-weight: 700;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 28rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.35s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.45s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.25s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-buy {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px var(--blue-glow);
}

.btn-buy:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--blue-glow);
}

.btn-spend {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-spend:hover {
    background: var(--orange-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--orange-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-pure);
    border-color: rgba(17, 17, 17, 0.12);
    transform: translateY(-2px);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Phone mockup ── */

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.3s forwards;
}

.phone {
    position: relative;
    width: min(560px, 95vw);
}

.phone-shadow {
    position: absolute;
    bottom: -4%;
    left: 15%;
    right: 15%;
    height: 10%;
    background: radial-gradient(ellipse at center, rgba(17, 17, 17, 0.1) 0%, transparent 70%);
    filter: blur(16px);
    z-index: 0;
}

.phone-frame {
    position: relative;
    z-index: 1;
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.6s var(--ease-out);
}

.phone:hover .phone-frame {
    transform: translateY(-6px);
}

.phone-frame img {
    width: 100%;
    height: auto;
    vertical-align: top;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(17, 17, 17, 0.1));
}

.phone-float {
    animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Feature sections ── */

.feature {
    padding: calc(var(--section-gap) * 0.85) 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.feature-row.reverse .feature-copy {
    order: 2;
}

.feature-row.reverse .feature-visual {
    order: 1;
}

.feature-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.feature-label.spend { color: var(--orange); }
.feature-label.buy { color: var(--blue); }

.feature-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.feature-title-line {
    display: block;
}

.feature-title-accent {
    color: var(--orange-deep);
    font-weight: 700;
}

.feature-title-accent-buy {
    color: var(--blue-deep);
    font-weight: 700;
}

@media (min-width: 360px) {
    .feature-title-line {
        white-space: nowrap;
    }
}

.feature-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 26rem;
    margin-bottom: 2rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: gap 0.3s var(--ease-out);
}

.feature-link.spend { color: var(--orange); }
.feature-link.buy { color: var(--blue); }

.feature-link:hover {
    gap: 0.75rem;
}

.feature-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.feature-link:hover svg {
    transform: translateX(3px);
}

.feature-visual {
    display: flex;
    justify-content: center;
}

.feature .phone {
    width: min(480px, 92vw);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ── Divider ── */

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ── Download CTA ── */

.download {
    padding: calc(var(--section-gap) * 0.85) 0;
}

.download-card {
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem) 0;
    color: var(--text);
}

.download-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.download-sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: var(--text);
    border: 1px solid var(--text);
    color: #fff;
    transition: background 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.store-btn:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.15);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-text {
    text-align: left;
    line-height: 1.2;
}

.store-label {
    font-size: 0.6875rem;
    opacity: 0.75;
}

.store-name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.btn-white {
    background: var(--bg-pure);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-white:hover {
    background: var(--bg-pure);
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

/* ── Footer ── */

.footer {
    padding: 2rem 0 1.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* ── Mobile nav overlay ── */

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(247, 247, 245, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--content-width);
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.mobile-menu-links a {
    display: block;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-align: center;
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    padding-top: 2rem;
    padding-bottom: 0.5rem;
}

.mobile-menu-actions .btn,
.mobile-menu-actions .store-btn {
    width: 100%;
    justify-content: center;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-desc {
        max-width: none;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-actions .store-btn,
    .hero-actions .btn-white {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-title {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title-line {
        white-space: nowrap;
    }

    .download-actions {
        flex-direction: column;
        align-items: center;
    }

    .download-actions .store-btn,
    .download-actions .btn-white {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }

    .nav-inner {
        max-width: none;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-row.reverse .feature-copy,
    .feature-row.reverse .feature-visual {
        order: unset;
    }

    #spend .feature-copy {
        order: 1;
    }

    #spend .feature-visual {
        order: 2;
    }

    .feature-desc {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-title {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-link {
        justify-content: center;
    }

    .nav-actions .nav-cta {
        display: none;
    }

    .nav-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }
}

@media (min-width: 420px) {
    .hero-title-line {
        white-space: nowrap;
    }
}

@media (max-width: 419px) {
    .hero-title {
        font-size: clamp(1.25rem, 5.8vw, 1.5rem);
        letter-spacing: -0.02em;
    }

    .hero-title-line {
        white-space: normal;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-title,
    .hero-desc,
    .hero-actions,
    .hero-visual {
        opacity: 1;
        animation: none;
    }
}
