@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
    --void: #0F0E0D;
    --vellum: #E8E1D5;
    --gold: #C6A664;
    --magma: #E0B158;
    --ember: #CC5500;
    --stone: #1C1A18;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--void);
    color: var(--vellum);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 1. Atmospheric Background Gradient (Aurora) */
.ambient-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle at 50% 50%, rgba(198, 166, 100, 0.05) 0%, rgba(15, 14, 13, 0) 50%);
    animation: rotateAurora 40s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes rotateAurora {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Noise Overlay for Golden Alchemist Texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.025;
    /* Dialed in for elegance */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Hide the landing page if OAuth is running */
#landing.hidden {
    display: none !important;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(15, 14, 13, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(198, 166, 100, 0.05);
    /* Extremely subtle bottom border */
    z-index: 200;
    transition: all 0.5s ease;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 5px;
    font-style: italic;
    text-shadow: 0 0 15px rgba(198, 166, 100, 0.2);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--vellum);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
    transition: all 0.4s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-links a:hover {
    opacity: 0.9;
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 10px var(--gold);
}

.nav-cta {
    padding: 14px 32px;
    background: rgba(198, 166, 100, 0.05);
    border: 1px solid rgba(198, 166, 100, 0.4);
    color: var(--gold);
    border-radius: 40px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(198, 166, 100, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--void);
    box-shadow: 0 0 30px rgba(198, 166, 100, 0.3);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
    z-index: 100;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border: 1px solid rgba(198, 166, 100, 0.3);
    border-radius: 40px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 48px;
    background: rgba(198, 166, 100, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(198, 166, 100, 0.2);
}

.hero-badge i {
    font-style: normal;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
        text-shadow: 0 0 10px var(--gold);
    }
}

/* Cinematic Typography */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(60px, 9vw, 110px);
    font-weight: 300;
    font-style: italic;
    color: var(--vellum);
    line-height: 1.05;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--gold) 20%, var(--magma) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Title Glow underlay */
.hero-title span::after {
    content: "Wisdom";
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(24px);
    opacity: 0.4;
}

.hero-desc {
    font-size: 17px;
    color: rgba(232, 225, 213, 0.7);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto 64px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legendary Shimmer Button */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--magma));
    color: var(--void);
    padding: 22px 54px;
    border-radius: 100px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 4s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px -10px rgba(198, 166, 100, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: #FFF;
}

.btn-outline {
    background: rgba(28, 26, 24, 0.5);
    border: 1px solid rgba(232, 225, 213, 0.15);
    color: var(--vellum);
    padding: 20px 40px;
    border-radius: 100px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(15px);
}

.btn-outline svg {
    opacity: 0.7;
    transition: all 0.4s;
}

.btn-outline:hover {
    background: rgba(198, 166, 100, 0.05);
    border-color: rgba(198, 166, 100, 0.6);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover svg {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px rgba(198, 166, 100, 0.5));
}

/* Authority Bar (Social Proof) */
.authority-bar {
    width: 100%;
    padding: 40px 0;
    border-top: 1px solid rgba(198, 166, 100, 0.05);
    border-bottom: 1px solid rgba(198, 166, 100, 0.05);
    background: linear-gradient(90deg, transparent, rgba(15, 14, 13, 0.6), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 100;
    margin-top: 40px;
}

.auth-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.auth-stat {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-style: italic;
    color: var(--gold);
}

.auth-label {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vellum);
}

/* Sections */
section {
    padding: 160px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(198, 166, 100, 0.15);
}

.section-desc {
    font-size: 11px;
    color: rgba(232, 225, 213, 0.4);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

/* Features Grid (Glassmorphism 2.0) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.7) 0%, rgba(15, 14, 13, 0.9) 100%);
    border: 1px solid rgba(198, 166, 100, 0.08);
    border-radius: 32px;
    padding: 64px 40px;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    perspective: 1000px;
}

/* Animated glowing border effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 166, 100, 0.8), transparent);
    transition: left 0.8s ease;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(198, 166, 100, 0.3);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(198, 166, 100, 0.05);
}

.feature-card:hover::before {
    left: 100%;
    opacity: 1;
}

/* Giant Roman Numeral Watermark */
.feature-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 180px;
    font-style: italic;
    font-weight: 300;
    color: rgba(198, 166, 100, 0.03);
    position: absolute;
    right: -20px;
    bottom: -40px;
    line-height: 1;
    transition: all 0.6s ease;
    pointer-events: none;
}

.feature-card:hover .feature-num {
    color: rgba(198, 166, 100, 0.08);
    transform: scale(1.1) translateX(-10px);
}

.feature-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    color: var(--vellum);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.feature-text {
    font-size: 15px;
    color: rgba(232, 225, 213, 0.6);
    line-height: 1.9;
    position: relative;
    z-index: 2;
}

/* Treasury Grid (Metallic Polish) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: rgba(28, 26, 24, 0.5);
    border: 1px solid rgba(232, 225, 213, 0.05);
    border-radius: 32px;
    padding: 56px 40px;
    text-align: left;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

/* Hover activation */
.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 166, 100, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.pricing-card.premium {
    border-color: rgba(198, 166, 100, 0.4);
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.9) 0%, rgba(198, 166, 100, 0.06) 100%);
    transform: translateY(-20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pricing-card.premium:hover {
    transform: translateY(-28px);
    border-color: rgba(198, 166, 100, 0.7);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(198, 166, 100, 0.1);
}

.pricing-card.ultimate {
    border-color: var(--magma);
    background: linear-gradient(180deg, rgba(28, 26, 24, 0.95) 0%, rgba(224, 177, 88, 0.1) 100%);
    box-shadow: 0 0 50px rgba(224, 177, 88, 0.08);
}

.pricing-card.ultimate:hover {
    transform: translateY(-12px);
    border-color: #FACC15;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(224, 177, 88, 0.15);
}

/* Metallic Labels */
.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(198, 166, 100, 0.1) 0%, rgba(198, 166, 100, 0.2) 100%);
    border: 1px solid rgba(198, 166, 100, 0.5);
    color: var(--gold);
    font-size: 9px;
    padding: 8px 16px;
    border-radius: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tier-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    color: var(--vellum);
    margin-bottom: 12px;
}

.tier-price {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(198, 166, 100, 0.2);
}

.tier-price span {
    font-size: 14px;
    color: rgba(232, 225, 213, 0.4);
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: none;
}

.tier-features {
    list-style: none;
    margin-bottom: 56px;
}

.tier-features li {
    font-size: 14px;
    color: rgba(232, 225, 213, 0.7);
    margin-bottom: 24px;
    padding-left: 32px;
    position: relative;
    line-height: 1.5;
}

.tier-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
    top: 1px;
    opacity: 0.8;
    text-shadow: 0 0 5px var(--gold);
}

.btn-tier {
    display: block;
    text-align: center;
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(232, 225, 213, 0.15);
    border-radius: 100px;
    color: var(--vellum);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pricing-card:hover .btn-tier {
    border-color: rgba(198, 166, 100, 0.4);
    color: var(--gold);
}

.pricing-card.premium .btn-tier,
.pricing-card.ultimate .btn-tier {
    background: linear-gradient(135deg, var(--gold), var(--magma));
    color: var(--void);
    border: none;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.pricing-card.premium .btn-tier::after,
.pricing-card.ultimate .btn-tier::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    transform: skewX(-20deg);
}

.pricing-card.premium:hover .btn-tier::after,
.pricing-card.ultimate:hover .btn-tier::after {
    left: 150%;
}

.pricing-card.premium .btn-tier:hover,
.pricing-card.ultimate .btn-tier:hover {
    box-shadow: 0 15px 35px rgba(198, 166, 100, 0.4);
    transform: translateY(-3px);
    color: #000;
}

/* ═══════════════════════════════════════════════════════ */
/* THE DAILY CODEX — Newsletter Section                   */
/* Premium glassmorphic split-card with subscribe form    */
/* ═══════════════════════════════════════════════════════ */

.codex-section {
    position: relative;
    overflow: hidden;
}

.codex-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(198, 166, 100, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: codexPulse 6s ease-in-out infinite alternate;
}

@keyframes codexPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.codex-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, rgba(28, 26, 24, 0.8) 0%, rgba(15, 14, 13, 0.95) 100%);
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px rgba(198, 166, 100, 0.04);
    position: relative;
    backdrop-filter: blur(30px);
}

.codex-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 166, 100, 0.4), transparent);
}

/* Left side — Quote Preview */
.codex-preview {
    padding: 72px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(198, 166, 100, 0.08);
    position: relative;
    background: linear-gradient(180deg, rgba(198, 166, 100, 0.03) 0%, transparent 100%);
}

.codex-quote-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    opacity: 0.8;
}

.codex-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: var(--vellum);
    line-height: 1.5;
    margin: 0 0 24px;
    padding: 0;
    border: none;
    position: relative;
}

.codex-quote::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold), transparent);
    border-radius: 2px;
}

.codex-cite {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-style: normal;
    color: rgba(232, 225, 213, 0.4);
    letter-spacing: 1px;
}

/* Right side — Subscribe Form */
.codex-form-wrap {
    padding: 72px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.codex-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    color: var(--vellum);
    margin-bottom: 16px;
}

.codex-form-desc {
    font-size: 14px;
    color: rgba(232, 225, 213, 0.5);
    line-height: 1.8;
    margin-bottom: 36px;
}

.codex-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.codex-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.codex-input-icon {
    position: absolute;
    left: 20px;
    color: rgba(198, 166, 100, 0.4);
    pointer-events: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.codex-input {
    width: 100%;
    padding: 18px 20px 18px 52px;
    border: 1px solid rgba(198, 166, 100, 0.15);
    border-radius: 100px;
    background: rgba(15, 14, 13, 0.6);
    color: var(--vellum);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.codex-input::placeholder {
    color: rgba(232, 225, 213, 0.25);
}

.codex-input:focus {
    border-color: rgba(198, 166, 100, 0.5);
    box-shadow: 0 0 30px rgba(198, 166, 100, 0.08), inset 0 0 20px rgba(198, 166, 100, 0.03);
}

.codex-input:focus+.codex-input-icon,
.codex-input-group:focus-within .codex-input-icon {
    color: var(--gold);
}

/* The Legendary Subscribe Button */
.codex-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold), var(--magma));
    color: var(--void);
    padding: 20px 40px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    width: 100%;
}

.codex-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 4s infinite;
}

.codex-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(198, 166, 100, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: #FFF;
}

.codex-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.codex-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.codex-btn-icon {
    font-style: normal;
    transition: transform 0.3s;
}

.codex-btn:hover .codex-btn-icon {
    transform: rotate(90deg) scale(1.2);
}

/* Status Messages */
.codex-status {
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    animation: fadeIn 0.4s ease;
}

.codex-status.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81C784;
}

.codex-status.error {
    background: rgba(204, 85, 0, 0.1);
    border: 1px solid rgba(204, 85, 0, 0.3);
    color: var(--ember);
}

/* Benefits Row */
.codex-benefits {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 20px 0 16px;
}

.codex-benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(232, 225, 213, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.codex-benefit span {
    font-size: 16px;
}

.codex-trust {
    font-size: 11px;
    color: rgba(232, 225, 213, 0.2);
    text-align: center;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .codex-card {
        grid-template-columns: 1fr;
    }

    .codex-preview {
        border-right: none;
        border-bottom: 1px solid rgba(198, 166, 100, 0.08);
        padding: 48px 32px;
    }

    .codex-form-wrap {
        padding: 48px 32px;
    }

    .codex-quote {
        font-size: 22px;
    }

    .codex-benefits {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .codex-preview {
        padding: 36px 24px;
    }

    .codex-form-wrap {
        padding: 36px 24px;
    }

    .codex-form-title {
        font-size: 26px;
    }

    .codex-quote {
        font-size: 20px;
    }

    .codex-quote::before {
        left: -12px;
    }
}

/* Footer */
footer {
    border-top: 1px solid rgba(198, 166, 100, 0.08);
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 14, 13, 0.95) 100%);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 40px;
    color: var(--gold);
    letter-spacing: 10px;
    margin-bottom: 48px;
    opacity: 0.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(232, 225, 213, 0.4);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.4s;
}

.footer-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(198, 166, 100, 0.4);
}

.footer-bottom {
    font-size: 10px;
    color: rgba(232, 225, 213, 0.15);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* OAuth States - Absolute Takeover Containers (Glassmorphic Premium) */
.auth-state {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 14, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.auth-state.hidden {
    display: none !important;
}

.auth-card {
    background: linear-gradient(135deg, rgba(28, 26, 24, 0.95) 0%, rgba(15, 14, 13, 0.98) 100%);
    border: 1px solid rgba(198, 166, 100, 0.2);
    border-radius: 40px;
    padding: 64px 48px;
    text-align: center;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 166, 100, 0.5), transparent);
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(198, 166, 100, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.auth-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 44px;
    color: var(--gold);
    letter-spacing: 8px;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(198, 166, 100, 0.3);
}

.auth-tagline {
    color: rgba(232, 225, 213, 0.4);
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.auth-spinner {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(198, 166, 100, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin: 0 auto 40px;
    box-shadow: 0 0 30px rgba(198, 166, 100, 0.1);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-status {
    color: rgba(232, 225, 213, 0.6);
    font-size: 15px;
    line-height: 1.6;
}

.auth-icon {
    font-size: 64px;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 30px rgba(198, 166, 100, 0.3));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

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

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

.auth-btn {
    display: inline-block;
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, var(--gold), var(--magma));
    color: var(--void);
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 40px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(198, 166, 100, 0.4);
}

.auth-footer {
    font-size: 12px;
    color: rgba(198, 166, 100, 0.3);
    margin-top: 48px;
    letter-spacing: 8px;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 80px;
    }

    .feature-num {
        font-size: 140px;
    }
}

@media (max-width: 900px) {
    .pricing-card.premium {
        transform: translateY(0);
        border-color: var(--gold);
    }

    .pricing-grid {
        gap: 40px;
    }

    .authority-bar {
        flex-direction: column;
        gap: 32px;
        padding: 32px 0;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 24px;
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .hero-title {
        font-size: 56px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 120px 24px;
    }

    .section-title {
        font-size: 48px;
    }

    .auth-card {
        padding: 48px 24px;
    }
}