/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Surfaces */
    --bg-left: #f8f9fb;
    --bg-right: #0d1117;
    --card-bg: #ffffff;
    --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);

    /* Text */
    --text-primary: #0d1117;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-on-dark: #e5e7eb;

    /* Accent */
    --accent: #00e676;
    --accent-hover: #00c853;
    --accent-glow: rgba(0, 230, 118, 0.35);
    --accent-soft: rgba(0, 230, 118, 0.10);

    /* Gold for stars */
    --gold: #f5a623;

    /* Borders */
    --border: #e5e7eb;
    --border-focus: var(--accent);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transition */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-left);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================================
   LANDING — TWO-COLUMN LAYOUT
   ============================================================ */
.landing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---------- Left Column ---------- */
.col--left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: var(--bg-left);
    position: relative;
}

/* Subtle decorative gradient on left */
.col--left::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.col__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

/* ---------- Right Column ---------- */
.col--right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: linear-gradient(135deg, #0d1b2a 0%, #0a1f30 25%, #08213a 50%, #051a25 75%, #0a1620 100%);
    position: relative;
}

/* Primary glow on right side - GREEN DOMINANT */
.col--right::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 70%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.25) 0%, rgba(0, 180, 90, 0.12) 35%, rgba(0, 200, 118, 0.05) 60%, transparent 85%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    animation: float-glow 8s ease-in-out infinite;
}

/* Secondary glow overlay for depth */
.col--right::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.15) 0%, rgba(0, 200, 100, 0.06) 40%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
    animation: float-glow-reverse 10s ease-in-out infinite;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(-10px);
    }
}

@keyframes float-glow-reverse {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(20px) translateX(10px);
    }
}

/* Ensure form is above animations */
.col__inner {
    position: relative;
    z-index: 10;
}

/* Wave bubble background effect */
.wave-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.wave-bubble {
    position: absolute;
    border: 1px solid rgba(0, 230, 118, 0.05);
    border-radius: 50%;
    opacity: 0.06;
    animation: wave-float ease-in-out infinite;
}

.wave-bubble-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.02);
}

.wave-bubble-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 5%;
    animation-duration: 8s;
    animation-delay: 1s;
    box-shadow: 0 0 40px rgba(0, 200, 100, 0.015);
}

.wave-bubble-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
    animation-duration: 7s;
    animation-delay: 2s;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.015);
}

.wave-bubble-4 {
    width: 180px;
    height: 180px;
    top: 35%;
    right: 20%;
    animation-duration: 9s;
    animation-delay: 0.5s;
    box-shadow: 0 0 35px rgba(0, 180, 90, 0.015);
}

@keyframes wave-float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.06;
    }

    25% {
        transform: translateY(-15px) translateX(10px) scale(1.02);
        opacity: 0.08;
    }

    50% {
        transform: translateY(0) translateX(20px) scale(1);
        opacity: 0.06;
    }

    75% {
        transform: translateY(15px) translateX(5px) scale(0.98);
        opacity: 0.05;
    }
}

/* Animated grid pattern overlay */
.col--right::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY — LEFT COLUMN
   ============================================================ */
h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.subtitle {
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
}

/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain-points {
    margin-bottom: 2.25rem;
}

.pain-points__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pain-points__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pain-points__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.pain-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0d1117;
    border-radius: 50%;
    padding: 4px;
    margin-top: 2px;
}

.pain-icon svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.stars {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
}

.social-proof__text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.social-proof__text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 3vw, 2.75rem);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--card-shadow);
    animation: cardReveal 0.8s var(--ease) both;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-card__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-card__sub {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

/* ---------- Fields ---------- */
.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.field input,
.field select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.field input::placeholder {
    color: var(--text-muted);
}

.field input:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Input validation states */
.field input.error,
.field select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field .error-msg {
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 0.3rem;
    display: none;
}

.field input.error~.error-msg,
.field select.error~.error-msg {
    display: block;
}

/* ---------- Select Wrapper ---------- */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    display: flex;
}

.select-arrow svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: #0d1117;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease),
        background var(--duration) var(--ease);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.25) 0%,
            transparent 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-cta__arrow {
    font-size: 1.1rem;
    transition: transform var(--duration) var(--ease);
}

.btn-cta:hover .btn-cta__arrow {
    transform: translateX(4px);
}

/* Loading state */
.btn-cta.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-cta.loading .btn-cta__text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #0d1117;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   MICROCOPY & CONSENT
   ============================================================ */
.microcopy {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
    letter-spacing: 0.01em;
}

.consent {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    line-height: 1.4;
}

/* ============================================================
   SUCCESS CARD
   ============================================================ */
.success-card {
    position: relative;
    z-index: 1;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 3vw, 2.75rem);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.success-card.hidden {
    display: none;
}

.success-card.reveal {
    animation: successReveal 0.7s var(--ease) both;
}

@keyframes successReveal {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--accent);
    color: #0d1117;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPop 0.5s 0.3s var(--ease) both;
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0);
    }

    70% {
        transform: scale(1.15);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-card__icon svg {
    width: 30px;
    height: 30px;
}

.success-card__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-card__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.success-card__bar {
    width: 48px;
    height: 4px;
    background: var(--accent);
    border-radius: 100px;
    margin: 1.5rem auto 0;
    animation: barGrow 0.6s 0.5s var(--ease) both;
}

@keyframes barGrow {
    from {
        width: 0;
    }

    to {
        width: 48px;
    }
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
.col--left .col__inner>* {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s var(--ease) forwards;
}

.col--left .col__inner>*:nth-child(1) {
    animation-delay: 0.1s;
}

.col--left .col__inner>*:nth-child(2) {
    animation-delay: 0.2s;
}

.col--left .col__inner>*:nth-child(3) {
    animation-delay: 0.3s;
}

.col--left .col__inner>*:nth-child(4) {
    animation-delay: 0.45s;
}

.col--left .col__inner>*:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   LOCK ICON (microcopy)
   ============================================================ */
.lock-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Desktop — no scrolling, all content visible */
@media (min-width: 1025px) {
    html {
        overflow: hidden;
    }

    body {
        overflow: hidden;
    }

    .landing {
        height: 100vh;
        overflow: hidden;
    }

    .col--left,
    .col--right {
        height: 100vh;
        overflow: hidden;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    html {
        overflow-y: auto;
    }

    body {
        overflow-y: auto;
        min-height: unset;
    }

    .landing {
        grid-template-columns: 1fr;
        min-height: unset;
        height: auto;
    }

    .col--left,
    .col--right {
        min-height: unset;
        height: auto;
        overflow: visible;
        display: block;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .col--left {
        padding: clamp(2rem, 5vw, 3.5rem);
    }

    .col--right {
        padding: clamp(2rem, 5vw, 3.5rem);
    }

    .col__inner {
        max-width: 600px;
    }

    .form-card,
    .success-card {
        max-width: 520px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    html {
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    body {
        overflow-y: auto;
        min-height: unset;
    }

    .landing {
        grid-template-columns: 1fr;
        min-height: unset;
        height: auto;
    }

    .col--left,
    .col--right {
        padding: 2rem 1.25rem;
        min-height: unset;
        height: auto;
        overflow: visible;
        display: block;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .form-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
        margin: 0 auto;
    }

    .success-card {
        padding: 2.5rem 1.25rem;
        border-radius: var(--radius-lg);
        margin: 0 auto;
    }

    .btn-cta {
        font-size: 0.95rem;
        padding: 0.9rem 1.25rem;
    }

    /* Disable animations on mobile for better scroll performance */
    .col--right::before,
    .col--right::after {
        animation: none !important;
    }

    .wave-bubble {
        animation: none !important;
    }

    .col--left .col__inner > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High-contrast preference */
@media (prefers-contrast: high) {

    .field input,
    .field select {
        border-width: 2px;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}