:root {
    /* Color Palette */
    --color-bg: #ffffff;
    --color-text-main: #1f2937; /* Dark Grey */
    --color-text-muted: #4b5563; /* Medium Grey */
    --color-primary: #111827; /* Near Black */
    --color-primary-hover: #374151;
    
    /* Vibrant Accents */
    --color-accent-1: #0EA5E9; /* Sky */
    --color-accent-2: #EC4899; /* Pink */
    --color-accent-3: #F59E0B; /* Amber */
    
    /* Gradients */
    --gradient-text: linear-gradient(90deg, #0EA5E9 0%, #EC4899 100%);
    --gradient-btn: linear-gradient(135deg, #111827 0%, #374151 100%);
    
    /* Dimensions & Spacing */
    --container-max: 1200px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; width: 100%; }

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Shapes */
.ambient-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
.shape-1 {
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), rgba(255, 255, 255, 0));
}
.shape-2 {
    top: 20%; left: -200px;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1), rgba(255, 255, 255, 0));
}

/* Typography Helpers */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.2; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

.flash-container { margin: 1rem auto; display: grid; gap: 0.75rem; }
.flash-container {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    max-width: 360px;
    width: calc(100% - 2.5rem);
    z-index: 200;
    pointer-events: none;
}
.flash {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 28px -20px rgba(15, 23, 42, 0.3);
    pointer-events: auto;
    animation: flash-fade 5s ease forwards;
}
.flash-success { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.flash-danger, .flash-error { border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.1); }
.flash-warning { border-color: rgba(234,179,8,0.35); background: rgba(234,179,8,0.12); }
.flash-info, .flash-message { border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.08); }
.flash.is-dismissed { opacity: 0; transform: translateY(8px); pointer-events: none; }

@keyframes flash-fade {
    0% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* Header */
.landing-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 12px 34px -24px rgba(15, 23, 42, 0.45);
}

.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
}
.brand .tm { font-size: 0.6em; vertical-align: top; color: var(--color-accent-3); }

.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-item {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.nav-item:hover,
.nav-item:focus-visible { color: var(--color-accent-1); background: rgba(14, 165, 233, 0.08); box-shadow: var(--shadow-soft); }
.nav-item.active { color: var(--color-accent-1); background: rgba(14, 165, 233, 0.12); box-shadow: var(--shadow-soft); }
.nav-item i { font-size: 0.9em; opacity: 0.7; color: var(--color-accent-1); }

/* Mobile Toggle */
.nav-toggle { display: none; background: none; border: 1px solid #e2e8f0; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.35rem; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background-color: var(--color-accent-1); transition: 0.3s; }

/* Hero Section */
.hero { padding: 4rem 0 6rem; position: relative; }

.hero-shell {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent-1);
    background: rgba(14, 165, 233, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-subhead { font-size: 1.25rem; font-weight: 500; color: var(--color-text-main); margin-bottom: 1rem; }
.hero-desc { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 2rem; max-width: 50ch; }
.hide-on-mobile { display: block; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-media .media-frame {
    position: relative;
    max-width: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
    margin: 0 auto;
}
.hero-media:hover .media-frame { transform: rotate(0deg); }
.hero-media img { display: block; width: 100%; height: auto; }

/* Features */
.features-band {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.04) 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 4rem 0;
    margin-bottom: 6rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }

.feature-icon-wrapper {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.color-1 { background: rgba(14, 165, 233, 0.1); color: var(--color-accent-1); }
.color-2 { background: rgba(236, 72, 153, 0.1); color: var(--color-accent-2); }
.color-3 { background: rgba(245, 158, 11, 0.1); color: var(--color-accent-3); }

.feature-copy h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.feature-copy p { font-size: 0.95rem; color: var(--color-text-muted); }

/* CTA Section */
.cta { padding: 4rem 0; margin-bottom: 4rem; }
.cta-wrapper {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Decoration for CTA */
.cta-wrapper::before {
    content:''; position: absolute; top: -50px; left: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), transparent 70%); border-radius: 50%;
}
.cta-wrapper h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-wrapper p { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }

.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-actions .btn {
    max-width: 240px;
    width: auto;
    white-space: normal;
    text-align: center;
    padding: 0.9rem 1.4rem;
}
.cta-learn-more { 
    background: white; display: inline-flex; align-items: center; gap: 2rem; text-align: left;
    padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
    max-width: 600px; margin: 0 auto;
}
.cta-learn-more strong { display: block; color: var(--color-primary); }
.text-link { color: var(--color-accent-1); text-decoration: none; font-weight: 600; white-space: nowrap;}
.text-link:hover { text-decoration: underline; }

.cta-note { font-size: 0.9rem; color: var(--color-text-muted); opacity: 0.8; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.6rem; border-radius: 50px;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
    border: 1px solid transparent; cursor: pointer;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.btn-secondary { background: white; color: var(--color-primary); border: 1px solid #e5e7eb; }
.btn-secondary:hover { border-color: var(--color-primary); background: #f9fafb; }

.btn-ghost-light { background: transparent; color: var(--color-text-muted); }
.btn-ghost-light:hover { color: var(--color-primary); background: rgba(0,0,0,0.05); }

.btn-shadow { box-shadow: var(--shadow-glow); }
.btn-full { width: 100%; margin-bottom: 0.5rem; }

/* Footer */
.landing-footer { border-top: 1px solid #e5e7eb; padding: 2.5rem 0; font-size: 0.9rem; color: var(--color-text-muted); }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.landing-footer nav a { color: var(--color-text-muted); text-decoration: none; margin-left: 1.5rem; transition: color 0.2s; }
.landing-footer nav a:hover { color: var(--color-primary); }

/* Modal */
.cta-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.cta-modal[hidden] { display: none; }
.cta-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.cta-modal__dialog {
    position: relative; background: white; width: 90%; max-width: 450px;
    border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-medium);
    z-index: 10;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.5rem; margin: 0; }
.cta-modal__close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--color-text-muted); }

.select-container { position: relative; margin: 1rem 0; }
select { width: 100%; padding: 0.8rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); appearance: none; font-size: 1rem; }
.select-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; }

.cta-modal__status { color: var(--color-accent-1); margin-top: 0.5rem; font-size: 0.9rem; font-weight: 500; }

/* Mobile Responsive */
	@media (max-width: 768px) {
	    .hero-shell { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
	    .hero-actions { justify-content: center; }
	    .hero {
	        background: linear-gradient(180deg, rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.55)), url('../images/hero_image_768.jpg') center/cover no-repeat;
	        background: linear-gradient(180deg, rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.55)),
	            image-set(url('../images/hero_image_768.jpg') 1x, url('../images/hero_image_1536.jpg') 2x) center/cover no-repeat;
	        color: #f9fafb;
	    }
	    .hero-copy { color: #fff; }
	    .hero-copy p { color: rgba(255, 255, 255, 0.88); }
    .gradient-text {
        background: none;
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
    .eyebrow {
        color: #fff;
        background: rgba(255, 255, 255, 0.14);
    }
    .hero h1 { color: #f9fafb; }
    .hero-subhead,
    .hero-desc { color: rgba(249, 250, 251, 0.85); }
    .hide-on-mobile { display: none; }
    .hero .btn-primary,
    .hero .btn-secondary {
        background: linear-gradient(135deg, #ffe082, #f59e0b);
        color: #0f172a;
        border-color: transparent;
        box-shadow: 0 12px 30px -14px rgba(245, 158, 11, 0.85);
    }
    .hero-media { display: none; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98); flex-direction: column; padding: 1.5rem;
        border-bottom: 1px solid #e2e8f0; box-shadow: var(--shadow-soft);
    }
    .nav-links.is-open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .footer-container { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-learn-more { flex-direction: column; text-align: center; gap: 1rem; }
}
