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

:root {
    --ink: #0b1220;
    --muted: #5c6679;
    --paper: #f8f3ec;
    --surface: #ffffff;
    --surface-alt: #f2eee8;
    --teal: #00a896;
    --coral: #f26a4b;
    --gold: #f4b75f;
    --navy: #101829;
    --accent: #0f3d3e;
    --border: rgba(11, 18, 32, 0.12);
    --shadow-sm: 0 10px 20px rgba(11, 18, 32, 0.08);
    --shadow-md: 0 18px 40px rgba(11, 18, 32, 0.14);
    --shadow-lg: 0 28px 60px rgba(11, 18, 32, 0.2);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "Space Grotesk", "Segoe UI", sans-serif;
    --gradient-hero: linear-gradient(135deg, #fff4e4 0%, #eef9f7 55%, #f8f3ec 100%);
    --gradient-accent: linear-gradient(135deg, #00a896 0%, #f26a4b 55%, #f4b75f 100%);
    --gradient-dark: linear-gradient(135deg, #0b1220 0%, #151f32 100%);
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(0, 168, 150, 0.14), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(242, 106, 75, 0.16), transparent 50%),
        radial-gradient(circle at 70% 85%, rgba(244, 183, 95, 0.18), transparent 45%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    position: relative;
    z-index: 1;
}

section {
    padding: 5.5rem 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.section-head {
    display: grid;
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-head p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

.surface {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(11, 18, 32, 0.2);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 80px;
    display: flex;
    align-items: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(248, 243, 236, 0.85);
    border-bottom: 1px solid rgba(11, 18, 32, 0.12);
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(248, 243, 236, 0.95);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--teal);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-weight: 500;
}

.nav-link {
    position: relative;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease;
}

/* Hero */
.hero {
    padding: 9rem 0 5rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.1;
    margin: 1.2rem 0 1.5rem;
    letter-spacing: -0.03em;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

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

.hero-meta {
    display: grid;
    gap: 0.85rem;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(11, 18, 32, 0.08);
    font-size: 0.95rem;
}

.hero-panel {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 168, 150, 0.25), transparent 70%);
}

.hero-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.hero-panel ul {
    display: grid;
    gap: 0.75rem;
    color: var(--muted);
}

.hero-panel li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.hero-panel li span {
    font-weight: 600;
    color: var(--teal);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 168, 150, 0.12);
    color: var(--teal);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Stats */
.stats-section {
    padding-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    padding: 1.8rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.6rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.4rem;
}

.stat-label {
    font-weight: 600;
}

.stat-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.note {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.audience-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
    position: relative;
}

.audience-card h3 {
    font-size: 1.4rem;
}

.audience-card p {
    color: var(--muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(242, 106, 75, 0.1);
    color: var(--coral);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
}

.card-list {
    display: grid;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--teal);
    font-weight: 600;
}

.card-cta span {
    transition: transform 0.3s ease;
}

.card-cta:hover span {
    transform: translateX(4px);
}

/* Platforms */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.platform-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.platform-flag {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}

.platform-card h3 {
    font-size: 1.6rem;
}

.platform-card p {
    color: var(--muted);
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 0.75rem;
}

.service-card h3 {
    font-size: 1.2rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Story */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.story-card {
    padding: 2.4rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.story-card.highlight {
    background: var(--gradient-dark);
    color: #fff;
    border: none;
}

.story-card.highlight p,
.story-card.highlight .card-list {
    color: rgba(255, 255, 255, 0.75);
}

.signal-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
}

.signal-words span {
    padding: 0;
    border-radius: 0;
    background: none;
    white-space: nowrap;
}

.signal-words span:not(:last-child)::after {
    content: "→";
    margin-left: 0.6rem;
    opacity: 0.7;
}

.story-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

.process-card span {
    font-weight: 600;
    color: var(--teal);
}

.process-card h4 {
    margin: 0.5rem 0;
}

.process-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Playgrounds */
.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.playground-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1.25rem;
}

.playground-card h3 {
    font-size: 1.4rem;
}

.playground-card p {
    color: var(--muted);
}

.playground-controls {
    display: grid;
    gap: 1rem;
}

.control-group {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.control-group input[type="range"] {
    width: 100%;
}

.playground-metrics {
    display: grid;
    gap: 0.8rem;
}

.metric {
    display: grid;
    gap: 0.35rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meter {
    height: 8px;
    background: rgba(11, 18, 32, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    background: var(--gradient-accent);
    width: 50%;
    transition: width 0.3s ease;
}

.metric-value {
    font-weight: 600;
}

.scenario-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.scenario-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-weight: 500;
}

.scenario-buttons button.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.workflow-steps {
    display: grid;
    gap: 0.6rem;
}

.workflow-steps label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* CTA */
.cta-panel {
    padding: 3rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-dark);
    color: #fff;
    display: grid;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.75);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1.25rem;
}

.contact-card h3 {
    font-size: 1.6rem;
}

.contact-card p {
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 0.75rem;
}

.contact-details span {
    font-weight: 600;
}

.contact-form {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(11, 18, 32, 0.18);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    background: var(--navy);
    color: #fff;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h5 {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-map {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.footer-map-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-map a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-map a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Scroll animation */
[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="in"] {
    opacity: 1;
    transform: translateY(0);
}

/* Page specific */
.page-hero {
    padding-top: 9rem;
    padding-bottom: 3rem;
}

.page-hero .hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.banner-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(242, 106, 75, 0.1);
    color: var(--coral);
    font-size: 0.8rem;
}

.path-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.path-metric {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

.path-metric strong {
    display: block;
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(248, 243, 236, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3.5rem 0;
    }

    .hero {
        padding-top: 7.5rem;
    }

    .hero-actions {
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
