/* ===================================
   The Fintech Dev - Brand Styles
   Redesigned: Atmospheric dark theme
   =================================== */

/* CSS Variables - Brand Colors */
:root {
    /* Primary Colors */
    --brand-teal: #0891B2;
    --brand-teal-hover: #0E7490;
    --brand-teal-dark: #134E4A;
    --brand-teal-light: #CFFAFE;
    --brand-teal-50: #F0F9FF;

    /* Navy Scale */
    --navy: #1E293B;
    --navy-dark: #0F172A;
    --navy-light: #334155;
    --navy-deepest: #080E1A;

    /* Neutrals */
    --white: #FFFFFF;
    --clean-white: #F8FAFC;
    --text-bright: #F1F5F9;
    --text-dim: #94A3B8;
    --gray-100: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #475569;

    /* Pillar Colors */
    --creation: #F5A623;
    --protection: #10B981;
    --engineering: #0891B2;
    --mindset: #A78BFA;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Atmospheric */
    --teal-glow: rgba(8, 145, 178, 0.15);
    --teal-glow-strong: rgba(8, 145, 178, 0.25);
    --surface-elevated: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(148, 163, 184, 0.1);

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 900px;
}

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

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-bright);
    background-color: var(--navy-deepest);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-bright);
}

h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-bright);
}

h1 {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
}

/* Links */
a {
    color: var(--brand-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-teal-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, #06B6D4 100%);
    color: var(--white);
    box-shadow: 0 0 0 0 var(--teal-glow);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--teal-glow-strong), 0 0 40px var(--teal-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal-light);
    background: rgba(8, 145, 178, 0.05);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--gray-300);
    max-width: 600px;
    margin: -0.5rem auto var(--space-xl);
    font-size: 1.0625rem;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-deepest);
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

/* Radial gradient spotlights */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(8, 145, 178, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 60%, rgba(167, 139, 250, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(30, 41, 59, 0.8) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Pulsing teal glow */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(8, 145, 178, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero-logo {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px var(--teal-glow-strong));
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.03em;
    text-shadow: 0 0 40px var(--teal-glow-strong), 0 0 80px var(--teal-glow);
}

.tagline {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    color: var(--brand-teal-light);
    font-weight: 400;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
    opacity: 0.9;
}

/* Hero About Section (frosted glass) */
.hero-about {
    display: flex;
    align-items: stretch;
    gap: var(--space-lg);
    text-align: left;
    padding: var(--space-lg);
    border-radius: 20px;
    background: var(--surface-elevated);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
}

@supports not (backdrop-filter: blur(12px)) {
    .hero-about {
        background: rgba(30, 41, 59, 0.95);
    }
}

.hero-about-image,
.hero-profile {
    flex-shrink: 0;
}

.profile-image {
    width: auto;
    height: 100%;
    min-height: 220px;
    max-height: 300px;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--navy-dark), var(--navy-dark)),
                      linear-gradient(135deg, var(--brand-teal), var(--mindset), var(--brand-teal));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 30px var(--teal-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-bio p {
    color: var(--gray-300);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.hero-bio p:last-of-type {
    margin-bottom: 0;
}

.hero-bio strong {
    color: var(--text-bright);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-start;
    margin-top: var(--space-md);
}

/* ===================================
   4 Pillars Section
   =================================== */
.pillars {
    padding: var(--space-3xl) var(--space-md);
    background: var(--navy);
    position: relative;
}

/* Dot grid pattern overlay */
.pillars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* Bottom gradient transition to tools section */
.pillars::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--navy-dark));
    pointer-events: none;
}

.pillars .container {
    position: relative;
    z-index: 1;
}

.pillar-h2 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 2.25rem;
}

.pillar-h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--brand-teal);
    margin: 0 auto var(--space-md);
    border-radius: 2px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.pillar-card {
    background: var(--surface-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: var(--space-lg);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@supports not (backdrop-filter: blur(8px)) {
    .pillar-card {
        background: rgba(30, 41, 59, 0.95);
    }
}

/* Left accent stripe */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    transition: width 0.3s ease;
}

.pillar-card[data-pillar="creation"]::before { background: var(--creation); }
.pillar-card[data-pillar="protection"]::before { background: var(--protection); }
.pillar-card[data-pillar="engineering"]::before { background: var(--engineering); }
.pillar-card[data-pillar="mindset"]::before { background: var(--mindset); }

/* Faint pillar-colored glow */
.pillar-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card[data-pillar="creation"]::after { background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%); }
.pillar-card[data-pillar="protection"]::after { background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%); }
.pillar-card[data-pillar="engineering"]::after { background: radial-gradient(circle, rgba(8, 145, 178, 0.06) 0%, transparent 70%); }
.pillar-card[data-pillar="mindset"]::after { background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%); }

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--gray-500);
}

.pillar-card:hover::before {
    width: 4px;
}

.pillar-card:hover::after {
    opacity: 1;
}

/* Numbered monospace label */
.pillar-label {
    margin-bottom: var(--space-sm);
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
}

.pillar-card[data-pillar="creation"] .pillar-number { color: var(--creation); }
.pillar-card[data-pillar="protection"] .pillar-number { color: var(--protection); }
.pillar-card[data-pillar="engineering"] .pillar-number { color: var(--engineering); }
.pillar-card[data-pillar="mindset"] .pillar-number { color: var(--mindset); }

.pillar-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.pillar-card > p {
    font-size: 0.9375rem;
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.pillar-examples {
    list-style: none;
    padding: var(--space-sm) 0 0 0;
    border-top: 1px solid var(--surface-border);
    margin: auto 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pillar-examples li {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===================================
   Tools Section
   =================================== */
.tools {
    padding: var(--space-3xl) var(--space-md);
    padding-bottom: var(--space-sm);
    background: var(--navy-dark);
}

.tools-category {
    margin-bottom: var(--space-xl);
}

/* Category toggle button — visible on all sizes */
.category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: var(--space-sm) 0;
    cursor: pointer;
    color: var(--text-bright);
    text-align: left;
    transition: opacity 0.2s ease;
}

.category-toggle:hover {
    opacity: 0.8;
}

.category-toggle .category-title {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    pointer-events: none;
}

.toggle-icon {
    display: block;
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--brand-teal);
}

.tools-category.expanded .toggle-icon {
    transform: rotate(180deg);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: var(--space-md);
    text-align: left;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: var(--space-sm);
}

.category-icon {
    font-size: 1.25rem;
}

/* Collapsible tools grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    padding-top: var(--space-sm);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.tools-category.expanded .tools-grid {
    max-height: 3000px;
    opacity: 1;
    margin-top: var(--space-sm);
}

.tool-card {
    display: block;
    background: var(--surface-elevated);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: var(--space-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@supports not (backdrop-filter: blur(8px)) {
    .tool-card {
        background: rgba(30, 41, 59, 0.95);
    }
}

.tool-card:hover:not(.disabled) {
    border-color: var(--brand-teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--teal-glow);
}

.tool-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tool-card.disabled:hover {
    transform: none;
    border-color: var(--surface-border);
    box-shadow: none;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.tool-card h4 {
    color: var(--text-bright);
    margin-bottom: var(--space-xs);
}

.tool-card p {
    color: var(--gray-300);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.tool-status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-teal);
    background: rgba(8, 145, 178, 0.15);
    border-radius: 20px;
}

.tool-status.live {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.tool-status.coming-soon {
    color: var(--gray-500);
    background: rgba(100, 116, 139, 0.2);
}

/* ===================================
   Bottom Signup Section
   =================================== */
.signup-bottom {
    padding: var(--space-3xl) var(--space-md);
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deepest) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Overhead teal glow */
.signup-bottom::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
    pointer-events: none;
}

.signup-bottom .container {
    position: relative;
    z-index: 1;
}

.signup-bottom .signup-section {
    margin-top: var(--space-lg);
}

/* Custom Subscribe Form */
.signup-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.subscribe-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    background: var(--surface-elevated);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row:focus-within {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px var(--teal-glow), 0 0 30px var(--teal-glow);
}

.input-wrapper {
    flex: 1;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-bright);
    background: transparent;
    border: none;
    outline: none;
    border-radius: 10px;
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

.subscribe-btn {
    flex-shrink: 0;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.subscribe-btn .btn-text,
.subscribe-btn .btn-loading,
.subscribe-btn .btn-success {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.subscribe-btn .btn-loading,
.subscribe-btn .btn-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn .btn-loading svg,
.subscribe-btn .btn-success svg {
    width: 20px;
    height: 20px;
}

/* Loading state */
.subscribe-btn.loading .btn-text { opacity: 0; }
.subscribe-btn.loading .btn-loading { opacity: 1; }

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.subscribe-btn.loading .btn-loading {
    animation: spin 0.8s linear infinite;
}

/* Success state */
.subscribe-btn.success {
    background: var(--success);
}

.subscribe-btn.success .btn-text { opacity: 0; }
.subscribe-btn.success .btn-success { opacity: 1; }

/* Error state on button */
.subscribe-btn.error {
    background: var(--error);
}

/* Form feedback */
.form-feedback {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 1.5em;
    text-align: center;
    transition: all 0.3s ease;
}

.form-feedback.error {
    color: var(--error);
}

.form-feedback.success {
    color: var(--success);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: var(--space-sm) 0 0 0;
}

.subscriber-count {
    color: var(--white);
    font-weight: 600;
}

/* ===================================
   Tools Notification Popup
   =================================== */
.tools-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-md);
}

.tools-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: 1px solid var(--brand-teal);
    border-radius: 20px;
    padding: var(--space-xl);
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
                0 0 80px rgba(8, 145, 178, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.tools-popup.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--gray-300);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-bright);
}

.popup-content > p {
    color: var(--gray-300);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Popup subscribe form */
.popup-form .form-row {
    margin-bottom: 0;
}

.popup-dismiss {
    background: none;
    border: none;
    color: var(--gray-500);
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color 0.2s ease;
    margin-top: var(--space-sm);
    display: inline-block;
}

.popup-dismiss:hover {
    color: var(--gray-300);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--space-xl) var(--space-md) var(--space-lg);
    background: var(--navy-deepest);
    border-top: 1px solid var(--surface-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto var(--space-md);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.social-links a {
    color: var(--text-dim);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    position: relative;
    overflow: hidden;
}

.social-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--teal-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-teal);
    border-color: var(--brand-teal);
    transform: translateY(-2px);
}

.social-links a:hover::after {
    opacity: 1;
}

.social-links svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--surface-border);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===================================
   Scroll Reveal
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger pillars */
.pillars-grid .reveal:nth-child(1) { transition-delay: 0s; }
.pillars-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.pillars-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.pillars-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Stagger tools */
.tools-grid .reveal:nth-child(1) { transition-delay: 0s; }
.tools-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.tools-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.tools-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.tools-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.tools-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }

    h2 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-about {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .hero-profile {
        display: flex;
        justify-content: center;
    }

    .profile-image {
        width: 180px;
        height: 180px;
        min-height: unset;
        max-height: unset;
    }

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

    .hero-bio p {
        font-size: 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .pillar-card {
        padding: var(--space-md);
    }

    /* Tools: single-column on mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .tool-card {
        padding: var(--space-md);
        min-width: unset;
    }

    .tool-card h4 {
        font-size: 1rem;
    }

    .tool-card p {
        font-size: 0.875rem;
    }

    .tool-icon {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .popup-content {
        padding: var(--space-lg);
    }

    .popup-icon {
        font-size: 2.5rem;
    }

    .popup-content h3 {
        font-size: 1.25rem;
    }

    .form-row {
        flex-direction: column;
        padding: 8px;
    }

    .subscribe-form input[type="email"] {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .subscribe-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    .tagline {
        font-size: 0.9375rem;
    }

    .tool-card {
        padding: var(--space-md);
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
        min-height: unset;
        max-height: unset;
    }

    .pillar-h2 {
        font-size: 1.75rem;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-content > * {
        opacity: 1;
        filter: none;
    }
}
