/* ============================================
   OFFSET — Carbon Noir Design System
   ============================================ */

:root {
    --bg: #0A0A0A;
    --surface: #111111;
    --card: #141414;
    --accent: #B8F442;
    --accent-hover: #ceff5c;
    --danger: #FF4D4D;
    --text: #F0F0F0;
    --text-muted: #8a8a8a;
    --text-dim: #444444;
    --border: rgba(255, 255, 255, 0.07);
    --border-solid: #222222;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Reset */
*, *::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: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Noise Overlay (global)
   ============================================ */

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

/* ============================================
   Nav
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav__link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav__link:hover {
    color: var(--accent);
}

.site-nav__logo-img {
    height: 76px;
    width: auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn--primary {
    background-color: var(--accent);
    color: var(--bg);
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(184, 244, 66, 0.2);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary svg {
    transition: transform 0.2s;
}

.btn--primary:hover svg {
    transform: translateX(4px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: 8px;
}

.btn--small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn--full {
    width: 100%;
}

.btn--loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn--loading .btn__text {
    visibility: hidden;
}

.btn--loading .btn__spinner {
    display: block;
}

.btn__spinner {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Hero
   ============================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 80px 80px;
    position: relative;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(184, 244, 66, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__left {
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 244, 66, 0.08);
    border: 1px solid rgba(184, 244, 66, 0.25);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero__title--accent {
    color: var(--accent);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 44px;
}

.hero__cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero__microcopy {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__microcopy span {
    color: var(--accent);
    font-weight: 500;
}

.hero__right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ============================================
   App Mockup
   ============================================ */

.mockup {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: float 5s ease-in-out infinite;
}

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

.mockup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mockup__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.mockup__subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mockup__chip {
    background: rgba(184, 244, 66, 0.12);
    border: 1px solid rgba(184, 244, 66, 0.3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 100px;
}

.mockup__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.txn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.txn:hover {
    border-left-color: var(--accent);
    background: #1e1e1e;
}

.txn__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.txn__icon--flight { background: rgba(100, 180, 255, 0.15); }
.txn__icon--fashion { background: rgba(255, 120, 200, 0.15); }
.txn__icon--food { background: rgba(255, 180, 50, 0.15); }
.txn__icon--gas { background: rgba(255, 100, 50, 0.15); }

.txn__meta { flex: 1; }

.txn__name {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 2px;
}

.txn__date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.txn__amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.txn__spent {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.txn__offset {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 500;
}

.txn__offset::before {
    content: '\2192 ';
    opacity: 0.6;
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 100px;
}

.stat {
    background: var(--bg);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat__num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat__label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   Section (shared)
   ============================================ */

.section {
    padding: 0 80px 100px;
}

.section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 64px;
    max-width: 600px;
    letter-spacing: -0.02em;
}

/* ============================================
   Steps
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.step-card {
    background: var(--card);
    padding: 44px 40px;
    position: relative;
    transition: background 0.3s;
}

.step-card:hover {
    background: #181818;
}

.step-card__num {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(184, 244, 66, 0.08);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.step-card__icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: block;
}

.step-card__heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.step-card__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-card__text strong {
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   Gamification
   ============================================ */

.gamif {
    padding: 0 80px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gamif__left .section__title {
    margin-bottom: 24px;
}

.gamif__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.gamif__desc strong {
    color: var(--text);
}

.gamif__right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all 0.2s;
}

.rank:hover {
    border-color: rgba(184, 244, 66, 0.2);
}

.rank--active {
    border-color: var(--accent);
    background: rgba(184, 244, 66, 0.05);
}

.rank__emoji {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.rank__info { flex: 1; }

.rank__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.rank__name--red { color: #ff6b6b; }
.rank__name--orange { color: #ffa94d; }
.rank__name--green { color: var(--accent); }
.rank__name--blue { color: #74c0fc; }
.rank__name--lime { color: #a9e34b; }

.rank__desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rank__badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(184, 244, 66, 0.1);
    color: var(--accent);
    border: 1px solid rgba(184, 244, 66, 0.2);
}

/* ============================================
   Divider
   ============================================ */

.divider {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 80px;
    margin: 0 0 80px;
    opacity: 0.4;
}

.divider__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider__text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
    padding: 0 80px 100px;
}

.faq__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2px;
}

.faq__question {
    width: 100%;
    background: var(--card);
    border: none;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background 0.2s;
}

.faq__question:hover {
    background: #181818;
}

.faq__arrow {
    width: 24px;
    height: 24px;
    border: 1px solid #3a3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
}

.faq__item.open .faq__arrow {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(45deg);
}

.faq__answer {
    background: #161616;
    border-top: 1px solid var(--border);
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.faq__item.open .faq__answer {
    max-height: 200px;
    padding: 20px 28px;
}

/* ============================================
   Footer CTA
   ============================================ */

.footer-cta {
    margin: 0 80px 80px;
    background: linear-gradient(135deg, #131313 0%, #0f1a00 100%);
    border: 1px solid rgba(184, 244, 66, 0.15);
    border-radius: 20px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(184, 244, 66, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-cta__inner {
    position: relative;
    z-index: 1;
}

.footer-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.footer-cta__text {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

/* ============================================
   Waitlist Section
   ============================================ */

.waitlist {
    padding: 80px 80px 120px;
}

.waitlist__inner {
    max-width: 520px;
    margin: 0 auto;
}

.waitlist__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.waitlist .section__title {
    text-align: center;
    max-width: none;
}

/* ============================================
   Form
   ============================================ */

.form {
    max-width: 520px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 16px;
}

.form__fieldset {
    border: none;
}

.form__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form__input::placeholder {
    color: var(--text-dim);
}

.form__input:focus {
    border-color: var(--accent);
}

.form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__radio,
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 10px;
}

.form__radio input,
.form__checkbox input {
    accent-color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.form__legal {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.form__message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form__message--success {
    display: block;
    background: rgba(184, 244, 66, 0.1);
    color: var(--accent);
    border: 1px solid rgba(184, 244, 66, 0.2);
}

.form__message--error {
    display: block;
    background: rgba(255, 77, 77, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 32px 80px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo-img {
    height: 74px;
    width: auto;
}

.footer__copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.footer__nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__sep {
    opacity: 0.4;
}

/* ============================================
   Language Switcher
   ============================================ */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch__item {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    padding: 4px 6px;
    border-radius: 4px;
}

.lang-switch__item:hover {
    color: var(--accent);
}

.lang-switch__item--active {
    color: var(--accent);
    background: rgba(184, 244, 66, 0.1);
}

.lang-switch__sep {
    color: var(--text-dim);
    font-size: 0.7rem;
    user-select: none;
}

/* ============================================
   Accessibility
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .site-nav {
        padding: 0 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 120px 32px 60px;
        gap: 60px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }

    .section {
        padding: 0 32px 60px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .gamif {
        grid-template-columns: 1fr;
        padding: 0 32px 60px;
    }

    .divider {
        padding: 0 32px;
    }

    .faq {
        padding: 0 32px 60px;
    }

    .footer-cta {
        margin: 0 32px 60px;
        padding: 48px 32px;
    }

    .waitlist {
        padding: 60px 32px;
    }

    .footer {
        padding: 24px 32px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
