/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Colors (Light Mode Default) */
    --bg-main: #FAFAFC;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F3F4F6;

    --primary: #2563EB;
    /* Vibrant Blue */
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #7B61FF;
    /* Electric Purple */

    --text-main: #111827;
    /* Dark Slate */
    --text-muted: #4B5563;
    /* Gray */

    --border: rgba(0, 0, 0, 0.1);
    --btn-text: #FFFFFF;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-w: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --bg-main: #050507;
    --bg-surface: #0f0f13;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --primary: #00F0FF;
    /* Neon Cyan */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #7B61FF;
    /* Electric Purple */

    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;

    --border: rgba(255, 255, 255, 0.08);
    --btn-text: #000000;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-auto {
    margin-top: auto;
}

.w-full {
    width: 100%;
    display: block;
}

.max-w-lg {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #ff4d4d;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--btn-text);
}

.btn-primary:hover {
    background-color: var(--text-main);
    color: var(--bg-main);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--bg-main);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary);
}

/* ==========================================================================
   Layout Grids
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.icon-wrapper.primary {
    background: var(--primary-glow);
    color: var(--primary);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, rgba(37, 99, 235, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(50px);
}

[data-theme="dark"] .hero-bg-glow {
    background: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, rgba(0, 240, 255, 0.1) 40%, rgba(5, 5, 7, 0) 70%);
}

.hero .headline {
    font-size: 5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero .sub-headline {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-cta {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    p {
        font-size: 1rem;
    }

    .container, .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    button#theme-toggle {
        width: 36px !important;
        height: 36px !important;
        padding: 0.4rem !important;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero .headline {
        font-size: 2.25rem;
    }

    .hero .sub-headline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .card {
        padding: 1.5rem !important;
    }

    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Pillars Section */
.pillar-card {
    position: relative;
    overflow: hidden;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: var(--border);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    z-index: 0;
    transition: var(--transition);
}

.pillar-card:hover .pillar-number {
    color: var(--primary-glow);
    transform: scale(1.1);
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
}

.pillar-card p {
    z-index: 1;
    position: relative;
    font-size: 1rem;
}

/* Process Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Pricing Section */
.pricing-card {
    position: relative;
}

.pricing-card.premium {
    border-color: var(--primary);
    background: var(--bg-surface);
    box-shadow: 0 15px 40px var(--primary-glow);
}

[data-theme="dark"] .pricing-card.premium {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--btn-text);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-name {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tier-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.focus {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-weight: bold;
}

.feature-list li strong {
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Keyboard Accessibility & Focus Indicators (WCAG AA Compliance)
   ========================================================================== */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Custom adjustments for highly rounded buttons and theme toggle */
.btn:focus-visible,
#theme-toggle:focus-visible {
    outline-offset: 2px;
    border-radius: 50px;
}

/* Improve footer contact links interaction */
.footer a:hover,
.footer a:focus-visible {
    text-decoration: underline !important;
    opacity: 0.9 !important;
}