:root {
    --bg-core: #0a0a0a;
    --text-primary: #ededed;
    --text-secondary: #888888;
    --accent: #00E5FF;
    /* Restored Cyan */
    --accent-dim: rgba(0, 229, 255, 0.1);
    --border-subtle: #222;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-core);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.logo-img {
    height: 48px;
    /* Increased from 32px */
    width: auto;
    filter: brightness(0) invert(1);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 5% 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Subtle grid background for hero */
    /* Cyber grid + Glow background for hero */
    background-image:
        /* Extended fade mask at bottom - 35% fade zone */
        linear-gradient(to bottom, transparent 0%, transparent 65%, var(--bg-core) 100%),
        radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    background-position: center;
}

/* Hero Graphic (Simple Geometric) */
.hero-graphic.geometric {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.geo-circle {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px solid #444;
    border-radius: 50%;
}

.hero-content.center-align {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    /* Above graphic */
    background: radial-gradient(circle, var(--bg-core) 0%, transparent 80%);
    /* Fade out line behind text */
    padding: 2rem;
}

.data-badge {
    font-family: var(--font-mono);
    color: var(--accent);
    /* Cyan */
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    border-radius: 4px;
    background: var(--bg-core);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.highlight-text {
    color: var(--accent);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.btn.primary {
    background: var(--text-primary);
    color: var(--bg-core);
    border: 1px solid var(--text-primary);
}

.btn.primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.cta-group.center-align {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* --- Benefits Section (Grid) --- */
.benefits-section {
    padding: 8rem 10%;
    /* Removed border-bottom for seamless transition */
    background:
        /* Extended fade zones - 30% at top, 55% at bottom */
        linear-gradient(to bottom, var(--bg-core) 0%, transparent 30%, transparent 45%, var(--bg-core) 100%),
        radial-gradient(circle at top, rgba(0, 229, 255, 0.05), transparent 70%);
}

.section-header.center {
    text-align: center;
    margin-bottom: 5rem;
}

.separator-center {
    width: 40px;
    height: 1px;
    background: #444;
    margin: 1.5rem auto;
    display: block;
    /* Re-added separator */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.benefit-item {
    text-align: center;
    /* Centered again */
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border-subtle);
    /* Re-added visible border */
    transition: 0.3s;
}

.benefit-item:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* --- Feature Grid (Text Only) --- */
.feature-grid-text {
    padding: 8rem 10%;
    background-color: var(--bg-core);
    background-image:
        /* Extended fade masks - 25% at top and bottom */
        linear-gradient(to bottom, var(--bg-core) 0%, transparent 25%, transparent 75%, var(--bg-core) 100%),
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

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

.text-feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--border-subtle);
    /* Border */
    background: var(--bg-core);
    position: relative;
    transition: 0.3s;
}

.text-feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.text-feature-card .icon-large {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent);
    /* Cyan */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #222;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.text-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.text-feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stat-box {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.75rem;
    border: 1px solid var(--border-subtle);
    margin-top: 1rem;
    text-transform: uppercase;
}


/* --- Protocol / Timeline -- */
.protocol {
    padding: 8rem 10%;
    /* Removed border-bottom for seamless transition */
}

.timeline {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Add a line behind timeline */
.timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #222;
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.timeline-marker {
    width: 14px;
    height: 14px;
    background: var(--bg-core);
    border: 1px solid #444;
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: #fff;
    border-color: #fff;
}

.timeline h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* --- FAQ Section --- */
.faq-section {
    padding: 8rem 10%;
    /* Extended gradient fade - 30% at top, 20% at bottom */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-core) 30%, var(--bg-core) 80%, transparent 100%);
}

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

.faq-item {
    padding: 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-core);
    transition: 0.3s;
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: 0.3s;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    padding: 0 2rem;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large height */
    padding-bottom: 2rem;
    opacity: 1;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}


/* --- Final CTA / Booking --- */
.landing-contact {
    padding: 6rem 5% 4rem;
    /* Removed border-top for seamless transition */
    /* Extended fade - 40% at top, 30% at bottom */
    background: linear-gradient(to bottom, var(--bg-core) 0%, transparent 40%, transparent 70%, var(--bg-core) 100%);
}

.contact-box.simple {
    text-align: center;
}

.contact-box.simple h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-box.simple p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.booking-container.page-embed {
    width: 100%;
    max-width: 650px;
    /* Constrain width on desktop */
    margin: 0 auto;
    /* Center the container */
    min-height: 500px;
    height: auto;
    /* Allow dynamic resizing to fit iframe content */
    /* Updated to match new iframe height */
    ;
    border: 1px solid var(--border-subtle);
    /* Slight border for frame */
    /* Slight border for frame */
    border-radius: 4px;
}

/* --- Custom Form Styles --- */
.custom-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-row input {
    width: 100%;
}

input,
textarea {
    width: 100%;
    background: var(--bg-core);
    border: 1px solid var(--border-subtle);
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    border-radius: 2px;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

input::placeholder,
textarea::placeholder {
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn.full-width {
    width: 100%;
}

/* --- Footer --- */
footer {
    padding: 4rem 5%;
    color: #888;
    text-align: center;
    font-size: 0.8rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.6) 100%);
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--text-secondary);
    font-size: 1rem;
    transition: 0.3s;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* --- Mobile --- */
/* --- Mobile --- */
@media (max-width: 768px) {

    /* Header optimization */
    header {
        padding: 1rem 5%;
    }

    .logo-img {
        height: 40px;
        /* Increased from 28px */
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero Optimization */
    .hero {
        padding: 8rem 5% 4rem;
        min-height: auto;
    }

    h1 {
        font-size: 2.2rem;
        /* Smaller for mobile */
        letter-spacing: -0.02em;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
    }

    .hero-graphic.geometric {
        width: 300px;
        height: 300px;
        opacity: 0.2;
    }

    .cta-group {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }

    /* Force full width on all mobile buttons */
    .btn,
    .btn.large,
    .btn.primary {
        width: 100% !important;
        display: block;
        text-align: center;
        box-sizing: border-box;
        /* prevent padding from breaking width */
    }

    /* Sections Padding */
    section,
    .benefits-section,
    .feature-grid-text,
    .protocol,
    .faq-section,
    .landing-contact {
        padding: 5rem 5%;
    }

    /* Reduce spacing specifically between Contact and FAQ on mobile */
    .landing-contact {
        padding-bottom: 1rem;
        border-bottom: none;
    }

    .contact-box,
    .booking-container {
        margin-bottom: 0 !important;
    }

    .faq-section {
        padding-top: 3rem;
    }

    .section-header.center {
        margin-bottom: 3rem;
    }

    /* Grid Gaps */
    .benefits-grid,
    .grid-3-col,
    .faq-grid {
        gap: 2rem;
    }

    /* Timeline Vertical Stack */
    .timeline {
        flex-direction: column;
        gap: 0;
        padding-left: 20px;
        align-items: flex-start;
        /* Force left alignment of items */
    }

    .timeline::before {
        width: 1px;
        height: 100%;
        left: 29px;
        top: 0;
        background: #333;
    }

    .timeline-item {
        text-align: left !important;
        /* Force left text */
        align-items: flex-start !important;
        padding: 0 0 3rem 3rem;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .timeline-marker {
        position: absolute;
        left: 22px;
        top: 0;
        margin: 0;
    }

    .timeline-item.right {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .timeline-line {
        display: none;
    }

    /* Booking Embed */
    .booking-container.page-embed {
        height: auto;
        min-height: 500px;
        /* Allow dynamic sizing */
    }

    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- Legal Pages --- */
.hero-mini {
    padding: 12rem 5% 4rem;
    text-align: center;
}

.hero-mini .hero-content.center-align {
    background: none;
    padding: 0;
}

.legal-content {
    min-height: 60vh;
}

.legal-text-section {
    padding: 2rem 5% 8rem;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-text-section h2 {
    font-size: 1.25rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-text-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-text-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-text-section li {
    margin-bottom: 0.5rem;
}

.legal-text-section a {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-email {
        display: none;
        /* Hide in mobile nav to save space, still in footer */
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}