:root[data-theme="light"] {
    --color-bg: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-nav-bg: rgba(255, 255, 255, 0.7);

    --color-primary: #8b5cf6;
    --color-secondary: #14b8a6;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary), #3b82f6);
    --gradient-bg: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.15), rgba(20, 184, 166, 0.05), transparent 70%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
}

:root[data-theme="dark"] {
    --color-bg: #0b0b0f;
    --color-bg-secondary: #13111c;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-nav-bg: rgba(11, 11, 15, 0.6);

    --color-primary: #a78bfa;
    --color-secondary: #2dd4bf;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary), #60a5fa);
    /* Vibrant mesh gradient background for dark mode */
    --gradient-bg:
        radial-gradient(circle at 15% 50%, rgba(167, 139, 250, 0.25), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(45, 212, 191, 0.25), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(96, 165, 250, 0.2), transparent 50%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);

    --glass-bg: rgba(25, 25, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Base Buttons */
.btn-primary,
.btn-secondary,
.btn-social {
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

/* Glow Button (Screenshot 2 Accent) */
.glow-button {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(167, 139, 250, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(45, 212, 191, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Glass Button (Screenshot 2 Accent) */
.glass-button {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--color-text);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Glass Card Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 32px;
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 2.5rem;
        align-items: center;
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .nav-links a:hover {
        color: var(--color-text);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
    color: var(--color-text);
    background-color: rgba(128, 128, 128, 0.1);
}

:root[data-theme="light"] .sun-icon {
    display: none;
}

:root[data-theme="dark"] .moon-icon {
    display: none;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    background: var(--color-primary);
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.hero-doodle {
    position: absolute;
    right: -120px;
    top: -20px;
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transform: rotate(10deg);
    display: none;
}

@media (min-width: 768px) {
    .hero-doodle {
        display: block;
    }
}

/* Hero Avatar Gallery */
.hero-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gallery-img-wrapper {
    width: 180px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-img-wrapper:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-gallery {
        gap: 0.5rem;
    }

    .gallery-img-wrapper {
        width: 110px;
        height: 185px;
        border-radius: 12px;
    }
}

/* Comparison Section */
.comparison {
    padding: 100px 0;
    position: relative;
}

.comparison-container {
    text-align: center;
}

.comparison h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.comparison-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

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

@media (min-width: 768px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comparison-card {
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.comparison-card.highlight-card {
    border: 1px solid var(--color-secondary);
    box-shadow: 0 10px 40px -10px rgba(45, 212, 191, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.icon-bad {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-good {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bad svg,
.icon-good svg {
    width: 16px;
    height: 16px;
}

.comparison-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.pricing-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: var(--color-primary);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    line-height: 1;
}

.pricing-container {
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    letter-spacing: -0.02em;
}

.currency {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.period {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-left: 0.25rem;
}

.pricing-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.features-list {
    margin-bottom: 2.5rem;
    flex: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-circle svg {
    width: 12px;
    height: 12px;
}

.pricing-card.popular {
    transform: scale(1.05);
    background: var(--glass-bg);
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 20px 50px -10px rgba(167, 139, 250, 0.3);
    position: relative;
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.5);
}

.full-width {
    width: 100%;
}

/* Huge Text Footer Area */
.huge-text-section {
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.huge-text {
    font-size: clamp(6rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    /* Original styling moved to pseudo-element to allow stroke glow behind it */
}

/* Localized Text Glow tracking the mouse */
.text-glow-effect {
    position: relative;
    z-index: 1;

    /* Interactive Mouse Tracking Glow (The Border Stroke) */
    --spotlight-size: calc(var(--size, 400) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
    background-image: radial-gradient(var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 210) 100% 60% / 1),
            transparent);

    /* Clip to text stroke mask */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px transparent;
    /* Outer glowing border thickness */
}

/* Base text overlay covering the inner fill, leaving only the stroke exposed */
.text-glow-effect::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: 2;
    white-space: pre-wrap;
    pointer-events: none;
    /* Mirror exact text geometry */
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;

    /* Original coloring */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    -webkit-text-stroke: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--color-text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-text);
}

.btn-footer-contact {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.auth-modal-content {
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 90%;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-modal-overlay.hidden .auth-modal-content {
    transform: translateY(20px);
}

.close-auth-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-auth-modal:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.2);
}

.auth-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    color: var(--color-text-muted);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-form label {
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form input {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.auth-error-message {
    color: #f87171;
    font-size: 0.85rem;
    background-color: rgba(2ef, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}

.auth-divider span {
    padding: 0 10px;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.auth-modal-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.auth-modal-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal-footer a:hover {
    text-decoration: underline;
}

/* Glow Card Effect matching exact React spec */
.spotlight-card {
    --radius: 20;
    --border: 1;
    --backdrop: transparent;
    --backup-border: var(--backdrop);
}

.glass-card.spotlight-card {
    --radius: 32;
    --border: 1;
    --backdrop: rgba(255, 255, 255, 0.05);
    /* matches glass-card background for fallback */
    --backup-border: var(--backdrop);
}

.spotlight-card {
    --size: 200;
    --outer: 1;
    --border-size: calc(var(--border, 2) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

    background-image: radial-gradient(var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 210) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 70) * 1%) / var(--bg-spot-opacity, 0.1)), transparent);
    background-color: var(--backdrop, transparent);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-position: 50% 50%;
    border: var(--border-size) solid var(--backup-border);
    position: relative;
    touch-action: none;
}

[data-glow]::before,
[data-glow]::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-out;
}

[data-glow]::before {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(var(--hue, 210) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 50) * 1%) / var(--border-spot-opacity, 1)), transparent 100%);
    filter: brightness(2);
}

[data-glow]::after {
    background-image: radial-gradient(calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
            hsl(0 100% 100% / var(--border-light-opacity, 1)), transparent 100%);
}

[data-glow] [data-glow] {
    position: absolute;
    inset: 0;
    will-change: filter;
    opacity: var(--outer, 1);
    border-radius: calc(var(--radius) * 1px);
    border-width: calc(var(--border-size) * 20);
    filter: blur(calc(var(--border-size) * 10));
    background: none;
    pointer-events: none;
    border: none;
}

[data-glow]>[data-glow]::before {
    inset: -10px;
    border-width: 10px;
}