/* ========================================
   JUST KEEN AI — Design System
   Theme: Tech-forward / Futuristic Dark
   ======================================== */

:root {
    /* Core palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-elevated: #1c1c28;

    /* Accent — electric cyan-to-teal gradient */
    --accent-1: #00d4ff;
    --accent-2: #00ffa3;
    --accent-3: #7b61ff;
    --gradient-main: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --gradient-alt: linear-gradient(135deg, var(--accent-3), var(--accent-1));

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #9999aa;
    --text-muted: #55556a;

    /* Borders & effects */
    --border-subtle: rgba(255,255,255,0.06);
    --border-accent: rgba(0,212,255,0.2);
    --glow-cyan: 0 0 60px rgba(0,212,255,0.15);
    --glow-strong: 0 0 120px rgba(0,212,255,0.25);

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1200px;

    /* Type scale */
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-1);
    display: block;
    margin-bottom: 16px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-primary);
    box-shadow: 0 4px 24px rgba(0,212,255,0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(0,212,255,0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}
.btn-ghost:hover {
    background: rgba(0,212,255,0.06);
    border-color: var(--accent-1);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.35));
}

.logo-icon {
    font-size: 1.4rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 8px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(0,212,255,0.07);
    color: var(--text-primary);
}

/* Mobile sub-links */
.mobile-sub {
    padding-left: 28px !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    position: relative;
}

.mobile-sub::before {
    content: '↳';
    position: absolute;
    left: 12px;
    color: var(--accent-1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
}
.mobile-menu a {
    font-size: 1rem;
    color: var(--text-secondary);
}
.mobile-menu a.active {
    color: var(--accent-1);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-1);
    padding: 8px 18px;
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    background: rgba(0,212,255,0.04);
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,163,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0,255,163,0); }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.7;
}

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

/* Hex Grid Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-grid {
    position: relative;
    width: 380px;
    height: 380px;
}

.hex {
    position: absolute;
    width: 100px;
    height: 115px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.5s ease;
}

.hex-1 { top: 0; left: 50%; transform: translateX(-50%); background: rgba(0,212,255,0.15); animation: hexFloat 6s ease-in-out infinite; }
.hex-2 { top: 85px; left: 22%; background: rgba(0,255,163,0.12); animation: hexFloat 6s ease-in-out 0.5s infinite; }
.hex-3 { top: 85px; right: 22%; background: rgba(123,97,255,0.12); animation: hexFloat 6s ease-in-out 1s infinite; }
.hex-4 { top: 170px; left: 50%; transform: translateX(-50%); background: rgba(0,212,255,0.2); animation: hexFloat 6s ease-in-out 1.5s infinite; box-shadow: var(--glow-cyan); }
.hex-5 { top: 170px; left: 5%; background: rgba(0,255,163,0.08); animation: hexFloat 6s ease-in-out 2s infinite; }
.hex-6 { top: 170px; right: 5%; background: rgba(123,97,255,0.08); animation: hexFloat 6s ease-in-out 2.5s infinite; }
.hex-7 { top: 255px; left: 50%; transform: translateX(-50%); background: rgba(0,212,255,0.1); animation: hexFloat 6s ease-in-out 3s infinite; }

@keyframes hexFloat {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-12px) translateX(-50%); }
}
.hex-2, .hex-5 {
    animation-name: hexFloat2;
}
@keyframes hexFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hex-3, .hex-6 {
    animation-name: hexFloat2;
}

/* ========================================
   Stats Banner
   ======================================== */
.stats-banner {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 48px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-subtle);
}

/* ========================================
   Sections (Generic)
   ======================================== */
.section {
    padding: var(--section-pad) 0;
}

.section-header {
    max-width: 720px;
    margin-bottom: 60px;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

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

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.4s ease;
}
.problem-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}

.problem-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-1);
    margin-bottom: 20px;
    font-weight: 500;
}

.problem-card h3 {
    margin-bottom: 12px;
    font-weight: 600;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ========================================
   Solution Steps
   ======================================== */
.section-solution {
    background: var(--bg-secondary);
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 40px;
}

.solution-step {
    position: relative;
    padding: 28px 0;
}

.step-line {
    position: absolute;
    left: -28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
}

.solution-step:first-child .step-line { top: 50%; }
.solution-step:last-child .step-line { bottom: 50%; }

.step-dot {
    position: absolute;
    left: -33px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 16px rgba(0,212,255,0.4);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 500px;
}

/* ========================================
   CTA Box
   ======================================== */
.section-cta {
    padding: 80px 0 100px;
}

.cta-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    margin-bottom: 12px;
    position: relative;
}
.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
    position: relative;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 32px;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 64px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-brand {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-brand .nav-logo-img {
    height: 110px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-1);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animations (JS adds .visible) */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   About Page
   ======================================== */
.page-header {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-header .hero-grid-bg {
    opacity: 0.5;
}
.page-header h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 16px;
}
.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

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

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.about-text p:first-child {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
}
.exp-item:hover {
    border-color: var(--border-accent);
}

.exp-item .exp-role {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-1);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.exp-narrative {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tag {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    transition: all 0.2s ease;
}

.exp-tag:hover {
    border-color: var(--border-accent);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
}

.exp-tag.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 163, 0.1));
    border-color: var(--border-accent);
    font-weight: 500;
}

/* ========================================
   Services Page
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 44px 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}
.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-1);
    background: rgba(0,212,255,0.06);
    border: 1px solid rgba(0,212,255,0.12);
    padding: 5px 12px;
    border-radius: 100px;
}

/* Featured / full-width service card */
.service-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.contact-info p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-detail .detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0,212,255,0.06);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail .detail-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.contact-detail .detail-text a {
    color: var(--accent-1);
    transition: opacity 0.3s;
}
.contact-detail .detail-text a:hover { opacity: 0.8; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 44px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239999aa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-visual { display: none; }
    .problem-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card.featured { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; gap: 48px; }
    .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu.open { display: flex; }

    .stats-grid { flex-direction: column; gap: 24px; }
    .stat-divider { width: 48px; height: 1px; }

    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { text-align: center; justify-content: center; }

    .cta-box { padding: 48px 24px; }
    .contact-form { padding: 28px 20px; }

    .footer-content { grid-template-columns: 1fr; gap: 32px; }

    /* Experience tags responsive */
    .exp-item { padding: 24px; }
    .exp-tags { gap: 8px; }
    .exp-tag {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

/* ========================================
   Memberstack Modal — Dark Theme Overrides
   ======================================== */
#msOverlay {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(12px) !important;
}

/* Modal container — target all possible selectors */
[data-ms-dialog],
#msOverlay > div,
#msOverlay [class*="modal"],
#msOverlay [class*="Modal"],
#msOverlay form {
    background: #111118 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    color: #e8e8ee !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15) !important;
}

/* All text inside modal */
#msOverlay * {
    color: #e8e8ee !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
}

/* Input fields */
#msOverlay input[type="email"],
#msOverlay input[type="password"],
#msOverlay input[type="text"],
#msOverlay input {
    background: #0a0a0f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: #e8e8ee !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    padding: 14px 16px !important;
}

#msOverlay input:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1) !important;
    outline: none !important;
}

/* Labels */
#msOverlay label {
    color: #9898a6 !important;
}

/* Submit buttons */
#msOverlay button[type="submit"],
#msOverlay button[class*="primary"],
#msOverlay button[class*="submit"] {
    background: linear-gradient(135deg, #00d4ff, #7b2fff) !important;
    color: #0a0a0f !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

#msOverlay button[type="submit"]:hover {
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Links inside modal */
#msOverlay a {
    color: #00d4ff !important;
}

/* ========================================
   Member Nav Elements
   ======================================== */
.nav-member-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-member-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s;
    cursor: pointer;
}

.nav-member-menu a:hover {
    color: var(--text-primary);
}

.mobile-member-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
}

.mobile-member-menu a {
    font-size: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ========================================
   Newsletter Form (Kit)
   ======================================== */
.newsletter-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gradient-main);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
}

/* ========================================
   Playbook Chapter Cards — Lock/Drip States
   ======================================== */
.chapter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

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

.chapter-card.locked {
    opacity: 0.6;
    position: relative;
}

.chapter-card.locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.05) 10px,
        rgba(0, 0, 0, 0.05) 20px
    );
    pointer-events: none;
}

.chapter-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chapter-badge.free {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent-1);
}

.chapter-badge.unlocked {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.2);
    color: var(--accent-2);
}

.chapter-badge.drip-locked {
    background: rgba(123, 97, 255, 0.1);
    border: 1px solid rgba(123, 97, 255, 0.2);
    color: var(--accent-3);
}

.chapter-badge.upgrade {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

/* Upgrade CTA within gated content */
.upgrade-cta {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin: 48px 0;
}

.upgrade-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.upgrade-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Subscription Tier Cards
   ======================================== */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: all 0.4s ease;
}

.tier-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.tier-card.featured {
    border-color: var(--border-accent);
    background: rgba(0, 212, 255, 0.03);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.tier-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-1);
    margin-bottom: 12px;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tier-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tier-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.tier-features li .check {
    color: var(--accent-2);
}

@media (max-width: 1024px) {
    .tier-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Btn secondary (used on playbook) */
.btn-secondary {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-1);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ========================================
   Playbook Content — Long-form Typography
   ======================================== */
.playbook-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.playbook-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 28px;
    line-height: 1.25;
}

.playbook-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.playbook-content p {
    margin-bottom: 20px;
}

.playbook-content p:last-child {
    margin-bottom: 0;
}

.playbook-content ul,
.playbook-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.playbook-content li {
    margin-bottom: 12px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.playbook-content li strong {
    color: var(--text-primary);
}

.playbook-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Footer Newsletter
   ======================================== */
.footer-newsletter {
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
    margin-bottom: 32px;
    text-align: center;
}

/* ========================================
   Sticky CTA Bar (non-members)
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 22, 31, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 0;
    z-index: 999;
    backdrop-filter: blur(12px);
}

/* ========================================
   Member Nav — My Content link
   ======================================== */
.nav-my-content {
    color: var(--accent-1) !important;
    font-weight: 500 !important;
}
