:root {
    /* Color Palette - Navy */
    --navy-950: #0A0F1A;
    --navy-900: #0E1621;
    --navy-800: #152032;
    --navy-700: #1E2D45;

    /* Color Palette - Gold */
    --gold-500: #B89A5A;
    --gold-300: #D4B87A;
    --gold-100: #EDD9A3;

    /* Support Colors */
    --cream: #F5F2EC;
    --gray-400: #9CA3AF;
    --gray-700: #374151;

    /* Spacing */
    --spacing-section-desktop: 200px;
    /* Increased for premium breathability */
    --spacing-section-mobile: 120px;

    /* Layout */
    --max-width: 1200px;
    --container-padding: 60px;
    /* More white space */

    /* Radii (cohesion tokens) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--navy-950);
}

body {
    background-color: var(--navy-950);
    color: var(--gray-400);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Global Reset for Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 300ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover {
    color: var(--cream);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--cream);
    font-weight: 400;
}

/* Form controls — dark-native (override Bootstrap defaults) */
.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cream);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
    transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
        background 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(184, 154, 90, 0.15);
    color: var(--cream);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-label {
    color: var(--gold-300);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    margin: 12px auto;
    animation: authCardIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Accessible keyboard focus — gold, on-brand (not Bootstrap blue) */
:focus-visible {
    outline: 2px solid rgba(184, 154, 90, 0.6);
    outline-offset: 3px;
    border-radius: 4px;
}

.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.btn-primary:focus-visible {
    outline-offset: 4px;
}

/* Inputs already signal focus via gold ring/border */
.form-control:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}

.hero-title-sm {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    color: var(--cream);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-check-input:checked {
    background-color: var(--gold-500);
    border-color: var(--gold-500);
}

.form-check-label {
    color: var(--gray-400);
    font-size: 14px;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

.font-mono {
    font-family: 'DM Mono', monospace;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--cream);
}

.hero-title strong {
    font-weight: 600;
}

.section-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 24px;
}

.section-number {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--gold-500);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

/* Typographic scale utilities (consistent hierarchy) */
.text-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.text-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-400);
}

.card-title {
    font-size: 21px;
    line-height: 1.25;
    color: var(--cream);
}

.text-helper {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-400);
}

/* Layout Elements */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

section {
    padding: var(--spacing-section-desktop) 0;
}

.bg-950 {
    background-color: var(--navy-950);
}

.bg-900 {
    background-color: var(--navy-900);
}

/* Buttons and Microinteractions */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--gold-500);
    color: var(--navy-950);
    padding: 18px 40px;
    font-weight: 500;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.cta-primary:hover {
    filter: brightness(1.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(184, 154, 90, 0.6);
}

/* Badges and Social Proof */
.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    color: var(--gray-400);
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: transparent;
    color: var(--gold-500);
    border: 1px solid rgba(184, 154, 90, 0.3);
    padding: 18px 40px;
    font-weight: 500;
    text-decoration: none;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 15px;
    border-radius: var(--radius-md);
}

.cta-secondary:hover {
    border-color: var(--gold-500);
    background-color: rgba(184, 154, 90, 0.05);
    transform: translateY(-2px);
}

/* Textures */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--navy-700) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.4;
    pointer-events: none;
}

/* Components */
.separator-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    width: 200px;
    margin: 0 auto;
}

.card {
    background: rgba(21, 32, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 56px;
    transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md);
}

.card:hover {
    border-color: rgba(184, 154, 90, 0.4);
    background: rgba(21, 32, 50, 0.6);
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(184, 154, 90, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(184, 154, 90, 0.2), rgba(184, 154, 90, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--gold-500);
    margin-bottom: 8px;
    border: 1px solid rgba(184, 154, 90, 0.1);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    color: var(--gold-300);
    padding: 4px 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 991px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }
}

/* Navigation and Mobile Menu */
.nav-container {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: none !important;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--cream) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-500);
    transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 12px;
    margin-right: -12px; /* Align with container padding */
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--gold-500);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--navy-950);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    color: var(--cream);
    text-decoration: none;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        background: rgba(184, 154, 90, 0.05);
        border: 1px solid rgba(184, 154, 90, 0.2);
        border-radius: 12px;
        padding: 10px;
    }
}

/* Sections Specific */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background-color: var(--navy-950);
    /* Themed background: accent glows + bottom fade + fine technical grid */
    background-image:
        radial-gradient(circle at 50% 14%, rgba(184, 154, 90, 0.10), transparent 45%),
        radial-gradient(circle at 50% 88%, rgba(30, 45, 69, 0.45), transparent 50%),
        linear-gradient(to bottom, rgba(10, 15, 26, 0.45), var(--navy-950) 90%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    background-position: center;
}

/* Hero — relationship/connection map (animated nodes + links), sober & data-oriented */
.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-network .net-link {
    fill: none;
    stroke: var(--gold-500);
    stroke-width: 1;
    stroke-opacity: 0.16;
    stroke-dasharray: 5 9;
    animation: netFlow 14s linear infinite;
}

.hero-network .net-node {
    fill: var(--gold-500);
    transform-box: fill-box;
    transform-origin: center;
    animation: netPulse 5s ease-in-out infinite;
}

@keyframes netFlow {
    to {
        stroke-dashoffset: -140;
    }
}

@keyframes netPulse {

    0%,
    100% {
        fill-opacity: 0.22;
        transform: scale(1);
    }

    50% {
        fill-opacity: 0.7;
        transform: scale(1.7);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-network .net-link,
    .hero-network .net-node {
        animation: none;
    }
}

#hero>.container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-visual-container {
    margin-top: 100px;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
}

.hero-visual {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 80px 160px -40px rgba(0, 0, 0, 1), 0 0 40px -10px rgba(184, 154, 90, 0.1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    /* Ensure white BG behind the screenshot if transparent parts */
}

.hero-visual:hover {
    transform: scale(1.02);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(184, 154, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-separator {
    width: 40px;
    height: 1px;
    background-color: var(--gold-500);
    margin: 40px auto;
}

/* Steps (Cómo funciona) */
.steps-container {
    display: flex;
    gap: 24px;
    position: relative;
}

.step-card {
    flex: 1;
    position: relative;
    background: var(--navy-900);
    padding: 40px;
    border: 1px solid var(--navy-700);
    border-radius: var(--radius-md);
}

.step-number-bg {
    position: absolute;
    bottom: -10px;
    right: 20px;
    font-family: 'DM Mono', monospace;
    font-size: 80px;
    color: var(--gold-500);
    opacity: 0.06;
    user-select: none;
}

.step-dash {
    color: var(--gold-500);
    margin-bottom: 16px;
    display: block;
}

.steps-conector {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 1px dashed var(--gray-700);
    z-index: -1;
}

/* Contrast Blocks */
.bg-deep {
    background-color: #060910;
}

.bg-warm-navy {
    background-color: #0E1621;
}

.section-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm76-26c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM4.4 72c.442 0 .8-.358.8-.8s-.358-.8-.8-.8-.8.358-.8.8.358.8.8.8zm91.2-12c.442 0 .8-.358.8-.8s-.358-.8-.8-.8-.8.358-.8.8.358.8.8.8zm-72-40c.221 0 .4-.179.4-.4s-.179-.4-.4-.4-.4.179-.4.4.179.4.4.4zm60 40c.221 0 .4-.179.4-.4s-.179-.4-.4-.4-.4.179-.4.4.179.4.4.4z' fill='%23B89A5A' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--navy-900);
    border: 1px solid var(--navy-700);
    padding: 48px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
}

.plan-card.recommended {
    border-color: var(--gold-500);
    position: relative;
}

.badge-recommended {
    position: absolute;
    top: 0;
    right: 32px;
    transform: translateY(-50%);
    background: var(--gold-500);
    color: var(--navy-950);
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    padding: 4px 12px;
    text-transform: uppercase;
}

.feature-list {
    list-style: none;
    margin: 32px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.feature-check {
    color: var(--gold-500);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--navy-950);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--navy-700);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--gold-500);
    text-align: center;
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-700);
}

.desktop-only {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-self: end;
}

/* Scroll reveal overrides */
.reveal.active {
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.border-y {
    border-top: 1px solid var(--navy-700);
    border-bottom: 1px solid var(--navy-700);
}

/* Go to Top Button */
#go-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(184, 154, 90, 0.1);
    border: 1px solid rgba(184, 154, 90, 0.3);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2000;
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

#go-to-top.active {
    opacity: 1;
    visibility: visible;
}

#go-to-top:hover {
    background: var(--gold-500);
    color: var(--navy-950);
    transform: translateY(-5px);
}

/* Base Mobile Overrides */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .decorative-number {
        font-size: 120px;
        left: -20px;
    }

    :root {
        --container-padding: 24px;
        --spacing-section-desktop: 96px;
    }

    section {
        padding: var(--spacing-section-mobile) 0;
    }

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

    .nav-logo {
        font-size: 24px;
    }

    .steps-container {
        flex-direction: column;
        gap: 32px;
    }

    .steps-conector {
        display: none;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-visual-container {
        margin-top: 48px;
    }

    .responsive-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .responsive-flex-column {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .auth-card {
        padding: 32px 24px !important;
        margin: 10px auto !important;
    }

    section {
        padding: 60px 0 !important;
    }

    #hero {
        padding-top: 40px !important;
    }
}
