/* =====================================================
   Blue VEin — Design System & Styles
   ===================================================== */

/* ── 1. Google Fonts & Reset ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
    /* Colors */
    --color-bg: #000000;
    --color-surface: #07070f;
    --color-card: #0a0a16;
    --color-cyan: #00f3ff;
    --color-cyan-dim: rgba(0, 243, 255, 0.12);
    --color-cyan-glow: rgba(0, 243, 255, 0.35);
    --color-blue: #0050ff;
    --color-blue-dim: rgba(0, 80, 255, 0.15);
    --color-white: #f0f8ff;
    --color-muted: rgba(160, 185, 210, 0.55);
    --color-border: rgba(0, 243, 255, 0.1);
    --color-error: #ff4a6e;
    --color-success: #00f3ff;

    /* Typography */
    --font-heading: 'Orbitron', 'Arial Black', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Text scale */
    --text-xs: clamp(0.7rem, 1.5vw, 0.75rem);
    --text-sm: clamp(0.8rem, 1.8vw, 0.875rem);
    --text-base: clamp(0.9rem, 2vw, 1rem);
    --text-lg: clamp(1rem, 2.5vw, 1.125rem);
    --text-xl: clamp(1.1rem, 3vw, 1.25rem);
    --text-2xl: clamp(1.3rem, 4vw, 1.5rem);
    --text-3xl: clamp(1.6rem, 5vw, 2.2rem);
    --text-hero: clamp(2.8rem, 8vw, 5.5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 20rem;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow-sm: 0 0 20px rgba(0, 243, 255, 0.25);
    --shadow-glow-md: 0 0 40px rgba(0, 243, 255, 0.4);
    --shadow-glow-lg: 0 0 80px rgba(0, 243, 255, 0.5);
    --shadow-glow-btn: 0 0 25px rgba(0, 243, 255, 0.45), 0 4px 20px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --tr-fast: 150ms ease;
    --tr-base: 280ms ease;
    --tr-slow: 500ms ease;

    /* Layout */
    --container: 1180px;
}

/* ── 2. Global Reset ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-cyan);
    color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── 3. Utility Classes ──────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ── 4. Reveal Animation ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── 5. Buttons ──────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--tr-base);
    white-space: nowrap;
    border-radius: var(--radius-full);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
}

.btn-cta {
    background: var(--color-cyan);
    color: #000;
    box-shadow: var(--shadow-glow-btn);
}

.btn-cta:hover,
.btn-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.7), 0 8px 30px rgba(0, 0, 0, 0.6);
    outline: none;
}

.btn-cta:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-lg {
    font-size: var(--text-sm);
    padding: 1rem 2.4rem;
}

.btn-icon {
    flex-shrink: 0;
    transition: transform var(--tr-fast);
}

.btn-cta:hover .btn-icon {
    transform: translateX(4px);
}

/* ── 6. Header ───────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    transition: background var(--tr-base), border-color var(--tr-base), backdrop-filter var(--tr-base);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--color-white);
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.logo-text em,
h1 em,
.footer-logo em {
    font-style: normal;
    color: var(--color-cyan);
}

.nav-cta {
    padding: 0.55rem 1.3rem;
    font-size: 0.6rem;
}

/* ── 7. Hero Section ─────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.75) 85%, #000 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 80, 255, 0.2) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    padding-bottom: 100px;
    max-width: 780px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: var(--space-6);
    animation-delay: 0.1s;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    animation-delay: 0.2s;
}

.glow-text {
    display: inline-block;
    color: var(--color-white);
    text-shadow:
        0 0 20px var(--color-cyan),
        0 0 60px rgba(0, 243, 255, 0.5),
        0 0 100px rgba(0, 243, 255, 0.2);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {

    0%,
    100% {
        text-shadow:
            0 0 20px var(--color-cyan),
            0 0 60px rgba(0, 243, 255, 0.5),
            0 0 100px rgba(0, 243, 255, 0.2);
    }

    50% {
        text-shadow:
            0 0 30px var(--color-cyan),
            0 0 80px rgba(0, 243, 255, 0.7),
            0 0 130px rgba(0, 243, 255, 0.35);
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(200, 220, 240, 0.85);
    line-height: 1.55;
    margin-bottom: var(--space-8);
    animation-delay: 0.3s;
}

.hero-subtitle strong {
    color: var(--color-white);
    font-weight: 600;
}

.hero-cta {
    animation-delay: 0.4s;
}

.scarcity-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: var(--space-4);
}

.scarcity-label svg {
    color: #00ff88;
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Hero scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-cyan), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scaleY(1);
        transform-origin: top;
    }
}

/* ── 8. Frequency Divider ────────────────────────── */
.freq-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    overflow: hidden;
}

.freq-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

.freq-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}

.freq-bar {
    width: 3px;
    background: var(--color-cyan);
    border-radius: 2px;
    opacity: 0.35;
    animation: freq-anim 1.2s ease-in-out infinite;
}

.freq-bar:nth-child(even) {
    animation-delay: -0.3s;
}

.freq-bar:nth-child(3n) {
    animation-delay: -0.6s;
}

.freq-bar:nth-child(4n) {
    animation-delay: -0.9s;
}

.freq-bar:nth-child(5n) {
    animation-delay: -0.15s;
}

@keyframes freq-anim {

    0%,
    100% {
        height: var(--min-h, 6px);
        opacity: 0.25;
    }

    50% {
        height: var(--max-h, 28px);
        opacity: 0.8;
    }
}

/* ── 9. Features Section ─────────────────────────── */
.features {
    background: url(../assets/images/bluevein.jpg);
    background-size: cover;
    background-position: center;
    padding: var(--space-24) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: var(--space-4);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.section-sub {
    font-size: var(--text-base);
    color: var(--color-muted);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, var(--color-cyan-dim) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--tr-base);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.12), 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 243, 255, 0.3);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-6);
    background: var(--color-cyan-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-cyan);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
}

/* ── 10. Register Section ────────────────────────── */
.register {
    padding: var(--space-24) 0;
    position: relative;
}

.register::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 80, 255, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 50% 0%, rgba(0, 243, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.register-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.register-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: var(--space-8);
}

.glow-text-sm {
    color: var(--color-cyan);
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.register-perks {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.register-perks li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(200, 220, 240, 0.8);
}

.register-perks li svg {
    stroke: var(--color-cyan);
    flex-shrink: 0;
}

/* Form box */
.form-box {
    position: relative;
}

.form-glow {
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, transparent 50%, rgba(0, 80, 255, 0.15) 100%);
    z-index: 0;
    pointer-events: none;
    animation: form-glow-anim 4s ease-in-out infinite;
}

@keyframes form-glow-anim {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.lead-form {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 5vw, 2.8rem);
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 243, 255, 0.6);
    margin-bottom: 0.55rem;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke: rgba(0, 243, 255, 0.35);
    pointer-events: none;
    transition: stroke var(--tr-fast);
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
    caret-color: var(--color-cyan);
}

.form-input::placeholder {
    color: rgba(160, 185, 210, 0.3);
}

.form-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.12);
    background: rgba(0, 243, 255, 0.03);
}

.form-input:focus~.input-icon,
.input-wrap:focus-within .input-icon {
    stroke: rgba(0, 243, 255, 0.7);
}

/* Input validation states */
.form-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(255, 74, 110, 0.12);
}

.form-input.is-valid {
    border-color: rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.08);
}

/* Field errors */
.field-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: 0.4rem;
    min-height: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--tr-fast), transform var(--tr-fast);
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Global error */
.global-error {
    background: rgba(255, 74, 110, 0.08);
    border: 1px solid rgba(255, 74, 110, 0.25);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--text-xs);
    padding: 0.7rem 1rem;
    margin-bottom: 1.2rem;
    display: none;
}

.global-error.visible {
    display: block;
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    margin-top: var(--space-2);
    position: relative;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Privacy note */
.form-privacy {
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-align: center;
    margin-top: var(--space-4);
    line-height: 1.5;
}

/* ── 11. Social Icons ────────────────────────────── */
.hero-socials {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    animation-delay: 0.5s;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    background: var(--color-cyan-dim);
    transition: color var(--tr-base), border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
}

.social-link:hover,
.social-link:focus-visible {
    color: var(--color-cyan);
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.35), 0 0 6px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
    outline: none;
}

/* ── 12. Footer ──────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-12) 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer-logo .logo-text {
    font-size: 1.3rem;
}

.footer-tagline {
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-link {
    font-size: var(--text-xs);
    color: var(--color-muted);
    transition: color var(--tr-fast);
}

.footer-link:hover {
    color: var(--color-cyan);
}

.footer-sep {
    color: var(--color-border);
}

.footer-copy {
    font-size: var(--text-xs);
    color: rgba(100, 120, 140, 0.5);
}

/* ── 12. Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .register-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-scroll-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        display: none;
    }
}