/* ═══════════════════════════════════════
   LINE ZERO — Design System
   ═══════════════════════════════════════ */

:root {
    --bg-base: #0b0d12;
    --bg-raised: #111420;
    --bg-card: #141824;
    --bg-card-hover: #1a1f30;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(0, 255, 180, 0.25);

    --text-primary: #f0f2fa;
    --text-secondary: #8b92aa;
    --text-muted: #555c72;

    --accent: #00ffb4;
    --accent-dark: #00cc90;
    --accent-glow: rgba(0, 255, 180, 0.15);
    --accent-glow-strong: rgba(0, 255, 180, 0.3);

    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ── Container ── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11, 13, 18, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.navbar__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-right: auto;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.3rem;
}

.logo-text {
    color: var(--text-primary);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn--sm {
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
}

.btn--lg {
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
}

.btn--xl {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

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

.btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    color: #000;
    box-shadow: 0 0 24px var(--accent-glow-strong);
}

.btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px var(--accent-glow-strong), 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.btn--accent {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn--accent:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 28px var(--accent-glow-strong);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero__bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 255, 180, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34, 211, 238, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

/* Live badge */
.badge--live {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 255, 180, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    animation: fadeSlideDown 0.8s ease both;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent-glow-strong);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 180, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 255, 180, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 180, 0);
    }
}

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

.badge__number {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.6rem;
    border-radius: 100px;
}

.hero__headline {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 0.9s 0.1s ease both;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subheadline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    animation: fadeSlideUp 0.9s 0.2s ease both;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeSlideUp 0.9s 0.3s ease both;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ═══════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════ */
.section {
    padding: 7rem 0;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3.5rem;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════ */
.how-it-works {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-raised) 100%);
}

.how-it-works .section-title,
.how-it-works .section-label {
    text-align: center;
}

.steps {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.step-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 255, 180, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.step-card:hover::before {
    opacity: 1;
}

.step-card__number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 255, 180, 0.1);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.step-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.step-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-connector {
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, var(--border-accent) 50%, transparent 100%);
    flex-shrink: 0;
    margin: 2rem 0;
}

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.features {
    background: var(--bg-raised);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover .feature-card__glow {
    opacity: 1;
}

.feature-card__glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 100px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card__icon {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
}

.feature-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   CALCULATOR
   ═══════════════════════════════════════ */
.calculator-section {
    background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%);
}

.calculator-widget {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 80px rgba(0, 255, 180, 0.06);
}

.calc-header {
    background: linear-gradient(135deg, rgba(0, 255, 180, 0.07) 0%, rgba(34, 211, 238, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-rate-badge {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    letter-spacing: -0.01em;
}

.calc-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.calc-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calc-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.calc-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.calc-input-wrapper:focus-within {
    border-color: var(--accent);
}

.calc-number-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    width: 72px;
    padding: 0.4rem 0.6rem;
    text-align: right;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.calc-number-input::-webkit-inner-spin-button,
.calc-number-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.calc-input-unit {
    padding: 0.4rem 0.7rem 0.4rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Custom range slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-raised);
    outline: none;
    position: relative;
}

.calc-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-glow-strong);
    margin-top: -9px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--accent-glow-strong);
}

.calc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.calc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.calc-breakdown {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.calc-breakdown-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-breakdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.calc-breakdown-row--total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calc-breakdown-row--total span {
    color: var(--accent) !important;
    font-size: 1.25rem;
}

.calc-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-section {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 2rem;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.footer__copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer__disclaimer {
    font-size: 0.76rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ═══════════════════════════════════════
   SLIDER FILL (JS-driven)
   ═══════════════════════════════════════ */
.calc-slider {
    background: linear-gradient(to right,
            var(--accent) 0%,
            var(--accent) var(--fill, 10%),
            var(--bg-raised) var(--fill, 10%),
            var(--bg-raised) 100%);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
        margin: 0;
    }
}

@media (max-width: 700px) {
    .navbar__links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(11, 13, 18, 0.97);
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 0.25rem;
    }

    .navbar__links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .navbar__inner .btn--sm {
        display: none;
    }

    .contact-inner {
        flex-direction: column;
        text-align: center;
    }

    .contact-inner .section-title,
    .contact-inner .section-sub {
        text-align: center !important;
    }

    .hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .desktop-br {
        display: none;
    }
}