/* Vector Landing Page - Design System */

/* ========== CSS Variables ========== */
:root {
    /* Colors - matching app design system */
    --background: hsl(220, 20%, 6%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 18%, 10%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(175, 85%, 45%);
    --primary-foreground: hsl(220, 20%, 6%);
    --secondary: hsl(220, 15%, 15%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(220, 15%, 18%);
    --muted-foreground: hsl(215, 20%, 55%);
    --accent: hsl(175, 85%, 45%);
    --border: hsl(220, 15%, 20%);

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        hsl(175, 85%, 45%),
        hsl(190, 90%, 50%)
    );
    --gradient-glow: radial-gradient(
        ellipse at center,
        hsl(175, 85%, 45%, 0.15),
        transparent 70%
    );
    --text-gradient: linear-gradient(
        135deg,
        hsl(175, 85%, 55%),
        hsl(190, 90%, 60%)
    );

    /* Shadows */
    --shadow-glow: 0 0 60px hsl(175, 85%, 45%, 0.3);
    --shadow-card: 0 8px 32px hsl(0, 0%, 0%, 0.4);

    /* Typography */
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Space Grotesk", sans-serif;

    /* Spacing */
    --radius: 0.75rem;
    --container-max: 1200px;

    /* Gamification Colors */
    --color-xp: hsl(175, 85%, 45%);
    --color-streak: #f97316;
    --color-badge: #a855f7;
    --color-gate: #f59e0b;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Utilities ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 80px hsl(175, 85%, 45%, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: hsl(220, 15%, 15%);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.cta-signin-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.cta-signin-link:hover {
    color: var(--primary);
}

/* ========== Animations ========== */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(120px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    animation: fade-in 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: hsl(220, 20%, 6%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-foreground);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: 0.3s;
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.glow-1 {
    top: 10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: hsl(175, 85%, 45%, 0.12);
    animation: pulse-glow 4s ease-in-out infinite;
}

.glow-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: hsl(175, 85%, 45%, 0.08);
    animation: pulse-glow 4s ease-in-out infinite;
    animation-delay: 2s;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 30%,
        transparent 70%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-note {
    width: 100%;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Hero Card Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-card);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: hsl(175, 85%, 45%, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.hero-card-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.path-node {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.path-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.path-role {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
}

.path-node.target .path-role {
    color: var(--primary);
}

.path-line {
    color: var(--muted-foreground);
}

.hero-card-phases {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.phase {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.phase span {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.phase-bar {
    height: 6px;
    background: var(--muted);
    border-radius: 3px;
    overflow: hidden;
}

.phase-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--width);
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Orbit Animation */
.orbit-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px dashed var(--border);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -6px;
    animation: orbit 8s linear infinite;
    box-shadow: 0 0 20px var(--primary);
}

/* ========== Features Section ========== */
.features {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: hsl(175, 85%, 45%, 0.5);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: hsl(175, 85%, 45%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

/* Gamification Colors & Cards */
.feature-card.xp:hover {
    border-color: var(--color-xp);
}
.feature-card.xp .feature-icon {
    background: rgba(45, 212, 191, 0.1);
    color: var(--color-xp);
}

.feature-card.streak:hover {
    border-color: var(--color-streak);
}
.feature-card.streak .feature-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-streak);
}

.feature-card.badge:hover {
    border-color: var(--color-badge);
}
.feature-card.badge .feature-icon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--color-badge);
}

.feature-card.gate:hover {
    border-color: var(--color-gate);
}
.feature-card.gate .feature-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-gate);
}

/* ========== How It Works Section ========== */
.how-it-works {
    padding: 120px 0;
    background: var(--card);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.step {
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: hsl(175, 85%, 45%, 0.2);
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

/* ========== Benefits Section ========== */
.benefits {
    padding: 120px 0;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.0625rem;
}

.benefits-list svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.benefit-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 500;
}

.benefit-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.benefit-bar {
    height: 8px;
    background: var(--muted);
    border-radius: 4px;
    overflow: hidden;
}

.benefit-bar div {
    height: 100%;
    width: var(--width);
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ========== CTA Section ========== */
.cta {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-bg .glow-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
}

.cta-bg .glow-2 {
    display: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========== Footer ========== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-tagline {
    color: var(--muted-foreground);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========== Responsive ========== */

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .features,
    .how-it-works,
    .benefits,
    .cta {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-visual {
        order: 2;
    }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        justify-content: center;
    }

    .hero-note {
        text-align: center;
    }

    .features,
    .how-it-works,
    .benefits,
    .cta {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 2rem;
    }

    .step-number {
        font-size: 3rem;
    }

    .benefits-list li {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .orbit-ring {
        width: 180px;
        height: 180px;
    }

    .glow-1 {
        width: 300px;
        height: 300px;
    }

    .glow-2 {
        width: 250px;
        height: 250px;
    }
}

/* ---------- Small Mobile (≤480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-card {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-title {
        font-size: 1.125rem;
    }

    .feature-desc {
        font-size: 0.875rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step-title {
        font-size: 1.125rem;
    }

    .step-desc {
        font-size: 0.875rem;
    }

    .benefits-list li {
        font-size: 0.9375rem;
        gap: 0.75rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-subtitle {
        font-size: 0.9375rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .orbit-ring {
        display: none;
    }
}

/* ---------- Extra Small (≤360px) ---------- */
@media (max-width: 360px) {
    .hero {
        padding: 88px 0 48px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .features,
    .how-it-works,
    .benefits,
    .cta {
        padding: 48px 0;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .benefit-card {
        padding: 1rem;
    }
}
