/* Design Tokens */
:root {
    --primary: #557aff;
    --accent: #bfbc0f;
    --bg: #11132a;
    --ink: #201717;
    --paper: #efedea;
    
    /* Additional colors for better design */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-radius: 1rem;
    --button-radius: 0.75rem;
    
    /* Typography */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'League Spartan', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 19, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

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

.nav-logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    line-height: 1;
}

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

.nav-logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 650;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--accent);
}

.nav-menu li a.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--button-radius);
    transition: background-color 0.3s ease;
}

.nav-cta:hover {
    background: #4465d9 !important;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg) 0%, #1e2139 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(85, 122, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #4465d9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    height: 52px;
}

/* Benefits Section */
.benefits {
    padding: var(--section-padding);
    background: var(--white);
}

.benefits-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--card-radius);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--ink);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ink);
}

.spark-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.25rem;
    color: var(--gray-600);
}

.spark-subtitle strong {
    color: var(--primary);
    font-weight: 700;
}

.process-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .process-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

/* Flip Card Styles */
.flip-card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--card-radius);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.flip-card-front {
    background: var(--white);
    border: 2px solid var(--gray-200);
}

.flip-card-back {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
    padding: 1.5rem;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back {
    box-shadow: var(--shadow-lg);
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-family: var(--font-heading);
    position: relative;
}

.step-number::before {
    content: attr(data-letter);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.flip-card-front h3 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.flip-card-back h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.flip-card-back p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.flip-hint {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: auto;
}

/* Mobile tap support */
@media (max-width: 767px) {
    .flip-card {
        height: 260px;
    }
    
    .flip-hint {
        display: none;
    }
    
    .flip-card-front::after {
        content: "Tap to learn more";
        color: var(--gray-500);
        font-size: 0.85rem;
        font-style: italic;
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    .flip-card {
        height: 240px;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .flip-card-front h3,
    .flip-card-back h3 {
        font-size: 1.1rem;
    }
    
    .flip-card-back p {
        font-size: 0.9rem;
    }
}

/* Trusted By Section */
.credibility {
    padding: 3rem 0;
    background: var(--bg);
    color: var(--white);
}

.trusted-by-content {
    text-align: center;
}

.trusted-by-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.company-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .company-logos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .company-logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .company-logos {
        grid-template-columns: repeat(7, 1fr);
        gap: 1.5rem;
    }
}

.logo-placeholder {
    width: 80px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        align-items: stretch;
    }
}

.service-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--ink);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.service-header {
    margin-bottom: 1rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.5rem;
}

.service-duration,
.service-outcome {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-card .btn {
    margin-top: auto;
}

/* Resources Section */
.resources {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.resources-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.resource-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--ink);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

.about-text p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.headshot-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-md);
}

/* Book Section */
.book {
    padding: var(--section-padding);
    background: var(--gray-50);
    text-align: center;
}

.book-subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-embed {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.calendar-widget {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.calendar-description {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-weight: 600;
}

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

/* Footer */
.footer {
    background: var(--bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-contact {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .footer-contact {
        gap: 3rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-align: center;
}

.contact-icon {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 400;
}



.contact-item span {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .footer-contact {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .contact-item span {
        white-space: normal;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
    }
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--card-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlide 0.3s ease;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--gray-600);
}

#modal-title {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#modal-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.kit-form-container {
    /* Kit form will inject its own styles */
    min-height: 120px;
}

/* Text color utilities */
.text-primary {
    color: var(--primary) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

.text-accent {
    color: var(--accent) !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } 