@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* STRICT COLOR SYSTEM */
    --col-primary-dark: #1F3D2B;
    --col-primary-forest: #2E5A3F;
    --col-accent-blue: #0071E3;
    /* Apple Blue */
    --col-accent-blue-dark: #0077ED;
    --col-neutral-offwhite: #FAFAF7;
    --col-neutral-lightgray: #EDEDED;
    --col-neutral-charcoal: #1A1A1A;

    /* Gradients */
    --grad-olive-mesh: radial-gradient(at 0% 0%, hsla(210, 100%, 45%, 0.1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(210, 100%, 45%, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(210, 100%, 45%, 0.1) 0, transparent 50%);
    --grad-text-gold: linear-gradient(135deg, var(--col-neutral-charcoal) 30%, var(--col-primary-forest));
    --grad-btn: linear-gradient(135deg, var(--col-primary-forest) 0%, var(--col-primary-dark) 100%);
    --grad-btn-hover: linear-gradient(135deg, var(--col-accent-blue) 0%, var(--col-accent-blue-dark) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --header-height: 80px;

    /* Shadows & Glass */
    --shadow-soft: 0 10px 40px -10px rgba(31, 61, 43, 0.1);
    --shadow-float: 0 20px 60px -15px rgba(31, 61, 43, 0.2);
    --glass-bg: rgba(250, 250, 247, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur-strength: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--col-neutral-offwhite);
    color: var(--col-neutral-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--col-primary-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: #4a4a4a;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- GLASSMORPHISM --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
}

/* --- HEADER --- */
/* Floating container logic */
header {
    position: fixed;
    top: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
    background: rgba(250, 250, 247, 0.6);
    /* Slightly more opaque for readability */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    /* Pill shape or high rounded as requested */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Logo Area */
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--col-primary-dark);
    letter-spacing: -0.03em;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--col-neutral-charcoal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--col-accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header CTA */
.btn-cta {
    background: var(--grad-btn);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(31, 61, 43, 0.2);
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-cta:hover {
    transform: scale(1.05);
    background: var(--grad-btn-hover);
    /* Changes gradient/color */
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.3);
    color: var(--col-primary-dark);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--col-primary-dark);
    transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-lg);
    /* Ensure content doesn't hit bottom */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* overflow: hidden; Removed to prevent clipping if content is tall */
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 50% 50%, rgba(46, 90, 63, 0.08), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--col-neutral-lightgray);
    border-radius: 99px;
    font-size: 0.875rem;
    color: var(--col-primary-forest);
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 500;
    border: 1px solid var(--col-neutral-charcoal);
    color: var(--col-neutral-charcoal);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--col-neutral-charcoal);
    color: var(--col-neutral-offwhite);
}

/* --- CARDS (21st.dev style) --- */
.card {
    background: #FAFAF7;
    /* Fallback */
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--col-primary-forest), var(--col-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--col-neutral-lightgray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--col-primary-dark);
}

.card h3 {
    font-size: 1.35rem;
    color: var(--col-primary-dark);
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* --- CUSTOMIZATION PAGE & SECTIONS --- */
.custom-cta-section {
    background: var(--col-primary-dark);
    color: var(--col-neutral-offwhite);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-cta-section h2,
.custom-cta-section p {
    color: var(--col-neutral-offwhite);
}

.custom-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 100% 100%, rgba(0, 113, 227, 0.1), transparent 50%);
    pointer-events: none;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    /* Light default border */
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--col-primary-forest);
    box-shadow: 0 0 0 3px rgba(46, 90, 63, 0.1);
}

/* Valid/Invalid states for JS */
input.valid,
textarea.valid {
    border-color: var(--col-primary-forest);
}

input.invalid,
textarea.invalid {
    border-color: #d32f2f;
}

.error-msg {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

/* --- FOOTER --- */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--col-neutral-lightgray);
    margin-top: var(--spacing-xl);
    font-size: 0.9rem;
    color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    header {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--col-neutral-offwhite);
        flex-direction: column;
        padding: var(--spacing-md);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        border-bottom: 1px solid #ddd;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .btn-cta-header {
        display: none;
    }

    /* Hide header CTA on very small screens if crowded, or keep */

    /* Show CTA inside menu for mobile if needed, usually we just let it be or add it to nav-menu dynamically */
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}