/* ===================================
   MATCH48 DESIGN SYSTEM (LIGHT/PREMIUM)
   =================================== */

:root {
    /* --- COLOR PALETTE (Brand Book v1.0 - Host Triad) --- */

    /* Base Neutrals */
    --color-bg-body: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-bg-surface: #F1F5F9;

    /* Primary Identity: "Strategic Navy" (Trust & Logistics) */
    --color-primary: #0F2440;
    --color-primary-dark: #020617;
    --color-primary-light: #E2E8F0;

    /* Accents */
    --color-accent-green: #1B5E20;
    /* Tierra Green */
    --color-accent-red: #B91C1C;
    /* Maple Alert */

    /* Typography Colors */
    --color-text-display: #0F2440;
    --color-text-body: #334155;
    --color-text-muted: #64748B;

    /* UI Elements */
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;

    /* --- GRADIENTS --- */
    --gradient-hero: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
    --gradient-primary: linear-gradient(135deg, #0F2440 0%, #1E3A8A 100%);
    --gradient-accent: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);

    /* --- SHADOWS --- */
    --glow-card: 0 4px 6px -1px rgba(15, 36, 64, 0.05), 0 2px 4px -1px rgba(15, 36, 64, 0.03);
    --glow-hover: 0 10px 15px -3px rgba(15, 36, 64, 0.08), 0 4px 6px -2px rgba(15, 36, 64, 0.04);

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Inter', sans-serif;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 800;

    --text-display: 3.5rem;
    --text-h1: 2.75rem;
    --text-h2: 2.25rem;
    --text-h3: 1.5rem;
    --text-body-lg: 1.125rem;
    --text-body: 1rem;
    --text-sm: 0.875rem;

    /* --- SPACING & SHAPES --- */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
    --space-2xl: 6rem;
    --container-width: 1140px;
    --container-padding: 1.5rem;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ===================================
   RESET & BASE
   =================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* ===================================
   UTILITY & LAYOUT
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.centered {
    text-align: center;
}

/* ===================================
   TYPOGRAPHY STYLES
   =================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: var(--font-weight-bold);
}

h2 {
    font-weight: var(--font-weight-bold);
}

.section-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-md);
}

.section-intro {
    font-size: var(--text-body-lg);
    color: var(--color-text-body);
    max-width: 650px;
    margin: 0 auto var(--space-xl);
}

.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* Subtle underline highlight effect */
.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: hsla(205, 55%, 45%, 0.15);
    z-index: -1;
    border-radius: 4px;
}

/* ===================================
   BUTTONS (Soft & Tactile)
   =================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-body);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    cursor: pointer;
}

.primary-cta {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 80, 120, 0.25);
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 80, 120, 0.35);
}

.secondary-cta {
    background: var(--color-bg-card);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.secondary-cta:hover {
    border-color: var(--color-primary);
    background: hsl(205, 50%, 98%);
    transform: translateY(-1px);
}

.large-cta {
    font-size: var(--text-body-lg);
    padding: 1.25rem 2.5rem;
}

/* ===================================
   NAVBAR (Sticky & Glass)
   =================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-display);
    letter-spacing: -0.04em;
}

.brand-highlight {
    color: var(--color-primary);
}

.small-cta {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

/* ===================================
   HERO SECTION (Open, Travel, Optimism)
   =================================== */
.hero {
    position: relative;
    padding: var(--space-2xl) 0;
    background: var(--gradient-hero);
    overflow: hidden;
    min-height: 80vh;
}

/* Background Map Decoration (Abstract) */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60%;
    height: 80%;
    background-image: url('hero-map-stylized.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Subtle background hint */
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Badge (Pill) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
    color: var(--color-primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hero-headline {
    font-size: var(--text-display);
    color: var(--color-text-display);
    margin-bottom: var(--space-md);
}

.hero-subheadline {
    font-size: var(--text-body-lg);
    color: var(--color-text-body);
    margin-bottom: var(--space-lg);
    max-width: 540px;
}

.hero-trust {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Map Image Container */
.map-container {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-card);
    transform: rotate(1deg);
    /* Slight playful tilt */
    transition: transform 0.4s ease;
}

.map-container:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
    /* Lift effect */
}

.hero-image {
    border-radius: var(--radius-md);
}

/* ===================================
   PROBLEM SECTION (Clean Cards)
   =================================== */
.problem-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.problem-card {
    background: var(--color-bg-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.problem-card:hover {
    background: white;
    box-shadow: var(--glow-card);
    border-color: var(--color-border);
    transform: translateY(-4px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--color-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.problem-card h3 {
    font-size: var(--text-h3);
    margin-bottom: var(--space-xs);
    color: var(--color-text-display);
    font-weight: var(--font-weight-semibold);
}

.problem-card p {
    color: var(--color-text-body);
    font-size: var(--text-body);
}

/* ===================================
   LEAD MAGNET (Premium Document)
   =================================== */
.lead-magnet-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-body);
    /* Slightly off-white */
}

.lead-magnet-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.pdf-mockup {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.pdf-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--color-accent-green);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

.lead-intro {
    font-size: var(--text-body-lg);
    margin-bottom: var(--space-lg);
}

.benefits-list li {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    align-items: flex-start;
}

.benefits-list svg {
    color: var(--color-accent-green);
    /* Checkmarks in green */
    flex-shrink: 0;
    margin-top: 4px;
}

.emotional-benefit {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: hsl(205, 50%, 96%);
    /* Light blue tint */
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    color: var(--color-primary-dark);
}

/* ===================================
   FORM SECTION (Focus & Simplicity)
   =================================== */
.form-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-bg-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.form-title {
    margin-bottom: var(--space-xs);
}

.email-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: border-color 0.2s;
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-cta {
    width: 100%;
}

.privacy-text {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: flex-start;
    /* Top align for multiline text */
    justify-content: center;
    gap: 8px;
    text-align: left;
    line-height: 1.4;
}

.privacy-icon-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
    /* Optical alignment with text cap-height */
}

/* ===================================
   FOR WHOM (Clarity)
   =================================== */
.for-whom-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-body);
}

.for-whom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.for-whom-card {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--color-border);
}

.yes-card {
    border-top: 4px solid var(--color-accent-green);
    background: #F0FDF4;
    /* Light Green Tint */
}

.no-card {
    border-top: 4px solid var(--color-accent-red);
    background: #FEF2F2;
    /* Light Red Tint */
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.yes-card .card-header svg {
    color: var(--color-accent-green);
}

.no-card .card-header svg {
    color: var(--color-text-muted);
}

.for-whom-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.yes-card .for-whom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-green);
    font-weight: bold;
}

.no-card .for-whom-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: bold;
}

/* ===================================
   AUTHORITY SECTION (New Layout)
   =================================== */
.authority-section {
    padding: var(--space-2xl) 0;
    background: white;
}

.authority-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.authority-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glow-card);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.authority-image-wrapper:hover {
    transform: rotate(0deg);
}

.authority-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.authority-content h2 {
    font-size: var(--text-h2);
    margin-bottom: var(--space-md);
    color: var(--color-text-display);
    font-weight: var(--font-weight-bold);
}

.authority-content p {
    font-size: var(--text-body-lg);
    color: var(--color-text-body);
    line-height: 1.7;
}

/* ===================================
   FOOTER (Clean)
   =================================== */
.footer {
    padding: var(--space-xl) 0;
    background: var(--color-bg-body);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text-display);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    :root {
        --text-display: 2.5rem;
        --text-h1: 2rem;
        --text-h2: 1.75rem;
        --space-2xl: 4rem;
    }

    .hero .container,
    .lead-magnet-content,
    .authority-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subheadline,
    .section-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero::before {
        width: 100%;
        height: 50%;
        top: 0;
        right: 0;
        opacity: 0.1;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}