/* ==========================================================================
   Human Purpose Framework — Design System
   ========================================================================== */

:root {
    /* Brand */
    --primary: #4F46E5;
    --primary-light: #6D5DFB;
    --primary-dark: #312E81;
    --accent: #FF6B35;
    --accent-light: #FF8A3D;

    /* Supporting palette (domain / dimension accents) */
    --c-cyan: #06B6D4;
    --c-teal: #14B8A6;
    --c-green: #22C55E;
    --c-pink: #EC4899;
    --c-purple: #A855F7;
    --c-blue: #3B82F6;
    --c-amber: #F59E0B;

    /* Surfaces */
    --bg: #F8FAFC;
    --bg-soft: #F4F7FB;
    --surface: #FFFFFF;

    /* Text */
    --text-1: #111827;
    --text-2: #374151;
    --text-3: #6B7280;
    --text-inverse: #F5F3FF;

    --border: #E6E9F2;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 8px 24px -8px rgba(49, 46, 129, 0.18);
    --shadow-lg: 0 24px 60px -16px rgba(49, 46, 129, 0.28);
    --shadow-glow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px -12px rgba(79, 70, 229, 0.55);

    /* Gradients */
    --grad-hero: radial-gradient(120% 140% at 15% 0%, #4838B8 0%, #34216E 42%, #1B1240 100%);
    --grad-primary: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --grad-panel: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);

    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radius */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-full: 999px;

    --nav-h: 76px;
}

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

html {
    width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-2);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-1);
    line-height: 1.2;
    font-weight: 700;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-full);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.eyebrow.on-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #E4E0FF;
}

.grad-text {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section { padding: 5.5rem 0; }

.section-header {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    margin-bottom: 0.9rem;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--text-3);
}

.section-header.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 10px 25px -8px rgba(255, 107, 53, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255, 107, 53, 0.65); }

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

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

.btn-dark-outline:hover { border-color: var(--primary); background: rgba(79,70,229,0.06); transform: translateY(-2px); }

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

/* Navbar --------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(230, 233, 242, 0.7);
    transition: box-shadow 0.2s ease;
}

.navbar.scrolled { box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06); }

.nav-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-link { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-image { height: 40px; width: auto; border-radius: 8px; }
.logo-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--text-1); }
.logo-wordmark span { color: var(--primary); }

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

.nav-link {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--r-full);
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover { color: var(--primary); background: rgba(79, 70, 229, 0.07); }
.nav-link.active { color: var(--primary); background: rgba(79, 70, 229, 0.09); }

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    align-items: center;
}

.hamburger .bar {
    width: 20px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 6rem;
    background: var(--grad-hero);
    color: white;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-glow span {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.glow-1 { width: 420px; height: 420px; background: #7C6CFB; top: -120px; left: -100px; }
.glow-2 { width: 380px; height: 380px; background: #FF6B35; bottom: -140px; right: -60px; opacity: 0.28; }
.glow-3 { width: 300px; height: 300px; background: #22D3EE; top: 40%; right: 12%; opacity: 0.18; }

.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 60% 60% at 20% 30%, black, transparent);
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
    color: white;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #DCD8FF;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.02rem;
    color: #BFB9EA;
    max-width: 46ch;
    margin-bottom: 2.2rem;
}

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

/* Hero framework diagram ------------------------------------------------ */
.framework-circle {
    position: relative;
    width: min(420px, 88vw);
    aspect-ratio: 1/1;
    margin: 0 auto;
}

.orbit-ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.28);
    animation: spin 60s linear infinite;
}

@media (prefers-reduced-motion: reduce) { .orbit-ring { animation: none; } }

@keyframes spin { to { transform: rotate(360deg); } }

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(84px, 24%, 118px);
    height: clamp(84px, 24%, 118px);
    border-radius: 50%;
    background: var(--grad-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    text-align: center;
    box-shadow: var(--shadow-glow);
    z-index: 4;
    cursor: default;
    animation: pulseSoft 4.5s ease-in-out infinite;
}

.center-circle small { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0.9; }
.center-circle strong { font-size: clamp(1.1rem, 3vw, 1.6rem); }

@keyframes pulseSoft {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: 0 0 0 10px rgba(255,107,53,0.08), 0 20px 60px -12px rgba(79,70,229,0.55); }
}

.domain-ring { position: relative; width: 100%; height: 100%; }

.domain-node {
    position: absolute;
    width: clamp(56px, 15%, 84px);
    height: clamp(56px, 15%, 84px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 3;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    animation: float 6s ease-in-out infinite;
}

.domain-node i { font-size: clamp(0.95rem, 2vw, 1.25rem); margin-bottom: 2px; }
.domain-node .node-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.02em; }

.domain-node:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.12);
    box-shadow: 0 0 24px rgba(255,255,255,0.25);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.domain-node:nth-child(1) { top: 0%; left: 50%; transform: translateX(-50%); background: rgba(255,107,53,0.22); animation-delay: 0s; }
.domain-node:nth-child(2) { top: 15%; right: 2%; background: rgba(20,184,166,0.24); animation-delay: 0.5s; }
.domain-node:nth-child(3) { top: 50%; right: -6%; transform: translateY(-50%); background: rgba(168,85,247,0.24); animation-delay: 1s; }
.domain-node:nth-child(4) { bottom: 12%; right: 6%; background: rgba(59,130,246,0.24); animation-delay: 1.5s; }
.domain-node:nth-child(5) { bottom: -2%; left: 50%; transform: translateX(-50%); background: rgba(236,72,153,0.24); animation-delay: 2s; }
.domain-node:nth-child(6) { bottom: 12%; left: 4%; background: rgba(6,182,212,0.24); animation-delay: 2.5s; }
.domain-node:nth-child(7) { top: 15%; left: 0%; background: rgba(34,197,94,0.24); animation-delay: 3s; }

.domain-node:hover .node-label,
.domain-node:hover i { animation: none; }

/* About ------------------------------------------------------------------ */
.about { background: var(--bg); }

.about-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 1.1rem; }
.about-copy p { color: var(--text-3); margin-bottom: 1.6rem; font-size: 1.05rem; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.about-card {
    background: var(--surface);
    padding: 2rem 1.6rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.2rem;
    background: var(--grad-primary);
}

.about-card:nth-child(2) .card-icon { background: var(--grad-accent); }
.about-card:nth-child(3) .card-icon { background: linear-gradient(135deg, var(--c-teal), var(--c-cyan)); }

.about-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.about-card p { color: var(--text-3); font-size: 0.95rem; }
.about-card small { color: var(--text-3); display: block; margin-top: 0.5rem; font-size: 0.82rem; }

/* Framework components strip -------------------------------------------- */
.formula-strip {
    margin-top: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}

.formula-strip h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }

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

.formula-item { display: flex; gap: 1rem; align-items: flex-start; }

.formula-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.formula-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.formula-item p { font-size: 0.88rem; color: var(--text-3); }

/* Domains + Dimensions two column ---------------------------------------- */
.domains-dimensions { background: var(--bg-soft); }

.dd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.dd-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.domain-list { display: flex; flex-direction: column; gap: 0.9rem; }

.domain-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.domain-row:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(90deg, rgba(79,70,229,0.04), transparent 60%);
}

.domain-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--text-3);
    width: 22px;
    flex-shrink: 0;
}

.domain-row-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.domain-row:hover .domain-row-icon { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(79,70,229,0.06); }

.domain-row-body { flex: 1; min-width: 0; }
.domain-row-body h4 { font-size: 1.02rem; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.5rem; }
.domain-row-code { font-size: 0.68rem; color: var(--text-3); font-weight: 600; letter-spacing: 0.03em; }
.domain-row-body p { font-size: 0.86rem; color: var(--text-3); }

.domain-row-arrow {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.domain-row:hover .domain-row-arrow { transform: translateX(4px); }

.icon-observing { background: var(--grad-accent); }
.icon-understanding { background: linear-gradient(135deg, var(--c-teal), var(--c-green)); }
.icon-thinking { background: linear-gradient(135deg, var(--c-purple), var(--primary)); }
.icon-deciding { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); }
.icon-performing { background: linear-gradient(135deg, var(--c-pink), #F5576C); }
.icon-experiencing { background: linear-gradient(135deg, var(--c-cyan), #00C2FE); }
.icon-repeating { background: linear-gradient(135deg, var(--c-green), var(--c-teal)); }

/* Growth dimension cards */
.dimension-cards { display: flex; flex-direction: column; gap: 0.9rem; }

.dimension-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dimension-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dimension-card-top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }

.dim-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dim-sensory { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.dim-cognitive { background: linear-gradient(135deg, var(--c-blue), #339af0); }
.dim-emotional { background: linear-gradient(135deg, var(--c-amber), #fab005); }
.dim-social { background: linear-gradient(135deg, var(--c-green), #40c057); }
.dim-spiritual { background: linear-gradient(135deg, var(--c-purple), #845ef7); }

.dimension-card-top h4 { font-size: 1rem; }

.dim-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dim-chips span {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: var(--r-full);
    background: var(--bg-soft);
    color: var(--text-2);
    border: 1px solid var(--border);
}

/* Continuous growth cycle badge ------------------------------------------ */
.growth-cycle {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 1rem 1.6rem;
    box-shadow: var(--shadow-sm);
    max-width: fit-content;
}

.growth-cycle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    animation: pulseSoft 3.5s ease-in-out infinite;
    flex-shrink: 0;
}

.growth-cycle strong { display: block; font-family: var(--font-display); color: var(--text-1); font-size: 0.98rem; }
.growth-cycle span { font-size: 0.85rem; color: var(--text-3); }

/* Integrated growth card */
.integrated-growth {
    margin-top: 2rem;
    background: var(--grad-panel);
    border: 1px solid #E4E0FF;
    border-radius: var(--r-lg);
    padding: 2rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.integrated-growth .ig-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--r-sm);
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.integrated-growth h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.integrated-growth p { font-size: 0.94rem; color: var(--text-2); }

/* Applications ------------------------------------------------------------ */
.applications { background: var(--surface); }

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.application-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.1rem 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.application-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.25);
}

.app-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
}

.app-icon.g1 { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.app-icon.g2 { background: linear-gradient(135deg, var(--c-teal), var(--c-cyan)); }
.app-icon.g3 { background: linear-gradient(135deg, var(--c-pink), var(--c-purple)); }
.app-icon.g4 { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.app-icon.g5 { background: linear-gradient(135deg, var(--c-blue), var(--primary)); }
.app-icon.g6 { background: linear-gradient(135deg, var(--c-green), var(--c-teal)); }

.application-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.application-card p { font-size: 0.92rem; color: var(--text-3); margin-bottom: 1rem; }

.app-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app-link i { transition: transform 0.2s ease; }
.application-card:hover .app-link i { transform: translateX(4px); }

/* CTA banner --------------------------------------------------------------- */
.seo-cta { padding: 0 0 5.5rem; background: var(--bg); }

.seo-cta-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 3rem;
    border-radius: var(--r-lg);
    background: var(--grad-hero);
    color: white;
    box-shadow: var(--shadow-lg);
}

.seo-cta-panel::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.25);
    filter: blur(60px);
    top: -80px;
    right: -60px;
}

.seo-cta-text { position: relative; z-index: 1; max-width: 560px; }
.seo-cta-panel h2 { color: white; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.7rem; }
.seo-cta-panel p { color: #D8D3FA; }
.seo-cta-panel .btn { position: relative; z-index: 1; }

/* FAQ ------------------------------------------------------------------------ */
.faq { background: var(--surface); }

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.faq-visual {
    background: var(--grad-panel);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px solid #E4E0FF;
}

.faq-visual i { font-size: 3.5rem; color: var(--primary); opacity: 0.8; }

.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }

.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover { border-color: rgba(79,70,229,0.3); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: rgba(79,70,229,0.35); background: var(--surface); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.3rem;
    font-weight: 600;
    color: var(--text-1);
    outline: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item[open] summary .chevron { transform: rotate(180deg); background: var(--primary); color: white; }

.faq-item summary:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); border-radius: var(--r-md); }

.faq-item p {
    padding: 0 1.3rem 1.3rem;
    color: var(--text-3);
    font-size: 0.95rem;
}

.faq-item a { color: var(--primary); font-weight: 600; }

/* Footer --------------------------------------------------------------------- */
.footer {
    background: linear-gradient(180deg, #1B1240 0%, #14102E 100%);
    color: #C9C4F0;
    padding: 4.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo-image { height: 40px; width: auto; border-radius: 8px; margin-bottom: 1rem; }

.footer-section h3, .footer-section h4 { color: white; margin-bottom: 1.1rem; }
.footer-section h3 { font-size: 1.15rem; }
.footer-section h4 { font-size: 1rem; }

.footer-section p { font-size: 0.92rem; color: #A8A2D6; margin-bottom: 0.5rem; }

.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-section a { color: #A8A2D6; text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-section a:hover { color: var(--accent-light); }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: #8A84BE; }
.newsletter-form button {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--grad-accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.newsletter-form button:hover { transform: scale(1.08); }

.connect-item { display: flex; gap: 0.7rem; align-items: center; font-size: 0.9rem; margin-bottom: 0.6rem; }
.connect-item i { color: var(--accent-light); width: 18px; }
.connect-item a { color: #C9C4F0 !important; }

.social-links-footer { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.social-links-footer a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    transition: all 0.2s ease;
}
.social-links-footer a:hover { background: var(--grad-accent); transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8A84BE;
}

/* Scroll reveal ---------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Focus visibility --------------------------------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .about-layout, .dd-layout, .faq-layout { grid-template-columns: 1fr; }
    .applications-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .navbar { min-height: var(--nav-h); }
    .nav-container {
        position: relative;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-logo {
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-link {
        min-width: 0;
    }

    .logo-wordmark {
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .nav-actions {
        margin-left: auto;
        gap: 0.5rem;
    }

    .nav-actions .btn-sm {
        padding: 0.55rem 0.95rem;
    }

    .nav-actions .btn-dark-outline { display: none; }
    .nav-menu { display: none; }
    .hamburger { display: inline-flex; }

    .nav-menu.mobile-open {
        display: flex;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 30;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        gap: 0;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-menu.mobile-open li { width: 100%; }
    .nav-menu.mobile-open .nav-link {
        display: block;
        width: 100%;
        padding: 0.95rem 0.9rem;
        border-radius: 12px;
    }

    .nav-menu.mobile-open .nav-link:hover,
    .nav-menu.mobile-open .nav-link.active {
        background: rgba(79, 70, 229, 0.08);
    }

    .hero {
        padding-top: calc(var(--nav-h) + 1.25rem);
        padding-bottom: 4rem;
    }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    section { padding: 3.25rem 0; }
    .navbar { padding: 0.6rem 0; }
    .nav-actions .btn-primary { display: none; }
    .nav-actions .btn-sm { padding: 0.55rem 0.8rem; }
    .logo-image { width: 34px; height: 34px; }
    .logo-wordmark { font-size: 0.9rem; }

    .section-header { margin-bottom: 2rem; }
    .section-header p { font-size: 1rem; }

    .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
    .hero-subtitle { font-size: 1rem; }
    .hero-description { font-size: 0.98rem; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-buttons { gap: 0.75rem; }
    .framework-circle { width: min(320px, 92vw); }

    .about-layout, .dd-layout, .faq-layout, .footer-content { grid-template-columns: 1fr; }
    .applications-grid { grid-template-columns: 1fr; }
    .domains-grid, .metrics-grid, .cards-grid, .feature-grid { grid-template-columns: 1fr; }
    .domain-row { flex-wrap: wrap; }
    .footer { padding: 3.5rem 0 1.25rem; }
    .newsletter-form { flex-direction: column; align-items: stretch; }
    .newsletter-form button { width: 100%; border-radius: var(--r-full); }
    .seo-cta-panel { flex-direction: column; text-align: center; padding: 2.2rem; }
    .seo-cta-text { max-width: 100%; }
}

@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .nav-actions { gap: 0.4rem; }
    .nav-actions .btn-sm { padding: 0.5rem 0.7rem; }
    .hamburger { width: 38px; height: 38px; }
    .hero { padding-top: calc(var(--nav-h) + 1rem); }
    .hero-title { font-size: 2rem; }
    .framework-circle { width: min(290px, 92vw); }
    .footer-section p, .footer-section a { word-break: break-word; }
}
