/* ============================================
   KORE CLARITY — Styles
   Dark, masculine, minimalist, premium
   ============================================ */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --text-dim: #555555;
    --accent: #00a8ff;
    --accent-glow: rgba(0, 168, 255, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

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

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.menu-toggle span:first-child { top: 4px; }
.menu-toggle span:last-child { bottom: 4px; }

.menu-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 168, 255, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 168, 255, 0.04) 0%, transparent 50%),
                linear-gradient(to right, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.3) 60%, transparent 100%);
    z-index: 2;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.35;
    filter: grayscale(100%);
    z-index: 1;
}

/* Section background images */
.has-bg-image {
    position: relative;
    overflow: hidden;
}

.section-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.25;
    z-index: 0;
}

.has-bg-image .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 3;
}

.hero-tag {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: 1.125rem;
    color: #d0d0d0;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* ---- SECTIONS ---- */
.section {
    padding: 120px 0;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 56px;
}

/* ---- PROBLEM ---- */
.problem {
    border-top: 1px solid var(--border);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card.has-card-bg {
    min-height: 320px;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.problem-card:hover .card-bg {
    opacity: 0.45;
}

.problem-card .problem-icon,
.problem-card h3,
.problem-card p {
    position: relative;
    z-index: 1;
}

.problem-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.problem-icon {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.problem-card p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.65;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ---- METHOD ---- */
.method {
    background: var(--bg-elevated);
}

.method-steps {
    max-width: 800px;
}

.method-step {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.method-step:last-child {
    border-bottom: none;
}

.step-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    min-width: 80px;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- SCIENCE ---- */
.science {
    border-top: 1px solid var(--border);
}

.science-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.science-text h2 {
    margin-bottom: 32px;
}

.science-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.science-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 60px;
}

.stat {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: var(--border-hover);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

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

.founders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.founder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    transition: all 0.3s;
}

.founder:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.founder-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(0, 168, 255, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg);
    margin-bottom: 24px;
}

.founder h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.founder p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- PROGRAMS ---- */
.programs {
    border-top: 1px solid var(--border);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.program-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.program-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.06) 0%, var(--bg-card) 100%);
    position: relative;
}

.program-tier {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}

.program-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.program-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.program-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-left: 20px;
    position: relative;
}

.program-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
}

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

.program-card .btn {
    align-self: flex-start;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
    background: var(--bg-elevated);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
    opacity: 0.9;
}

.author-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ---- CTA ---- */
.cta {
    border-top: 1px solid var(--border);
}

.cta-box {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-box h2 {
    margin-bottom: 16px;
}

.cta-box > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}

.cta-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-hover);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input::placeholder {
    color: var(--text-dim);
}

.cta-form input:focus {
    border-color: var(--accent);
}

.cta-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---- FOOTER ---- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ---- IMAGE BREAKS ---- */
.image-break {
    position: relative;
    height: 50vh;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-break-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: opacity 0.5s ease;
}

.image-break:hover .image-break-inner {
    opacity: 0.65;
}

.image-break-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.image-break-text p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .problem-grid,
    .program-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .science-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .science-stats {
        padding-top: 0;
    }

    .founders {
        grid-template-columns: 1fr;
    }

    .method-step {
        flex-direction: column;
        gap: 16px;
    }

    .step-num {
        font-size: 2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}
