/* ============================================
   KIPP LANDING PAGE - Design System
   Sistema operacional de disciplina.
   ============================================ */

/* === RESET & CUSTOM PROPERTIES === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core Colors */
    --kipp-dark: #0B0D10;
    --kipp-dark-elevated: #12151A;
    --kipp-dark-card: #161920;
    --kipp-white: #E8E8EB;
    --kipp-white-soft: rgba(232, 232, 235, 0.7);
    --kipp-white-muted: rgba(232, 232, 235, 0.4);
    --kipp-blue: #37C3DA;
    --kipp-blue-soft: rgba(55, 195, 218, 0.15);
    --kipp-blue-glow: rgba(55, 195, 218, 0.3);

    /* Status Colors */
    --kipp-alert: #FFB020;
    --kipp-fail: #E5484D;
    --kipp-success: #3FB950;

    /* Typography */
    --font-display: 'Play', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    --font-footer: 'IBM Plex Sans KR', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Borders */
    --border-subtle: 1px solid rgba(232, 232, 235, 0.06);
    --border-card: 1px solid rgba(232, 232, 235, 0.08);
    --border-blue: 1px solid rgba(55, 195, 218, 0.15);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

body {
    font-family: var(--font-body);
    background: var(--kipp-dark);
    color: var(--kipp-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain texture overlay for depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        display: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    padding: 12px 32px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--kipp-white);
    letter-spacing: 0.05em;
}

.navbar-logo svg {
    width: 28px;
    height: 28px;
}

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

.navbar-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--kipp-white-muted);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--kipp-white);
}

.navbar-cta {
    font-family: var(--font-body);
    font-size: 0.82rem;
    padding: 8px 20px;
    border: var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--kipp-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.navbar-cta:hover {
    background: rgba(232, 232, 235, 0.06);
    border-color: rgba(232, 232, 235, 0.15);
}

.navbar-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.navbar-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--kipp-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    z-index: 1;
}

.hero-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--kipp-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline-accent {
    color: var(--kipp-blue);
    text-shadow: 0 0 30px rgba(55, 195, 218, 0.4), 0 0 60px rgba(55, 195, 218, 0.15);
    background: linear-gradient(135deg, #37C3DA 0%, #5de0f5 50%, #37C3DA 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--kipp-white-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--kipp-blue);
    color: var(--kipp-dark);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: #4dd4e6;
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(55, 195, 218, 0.35), 0 0 20px rgba(55, 195, 218, 0.2);
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--kipp-white-soft);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: var(--border-card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(232, 232, 235, 0.04);
    border-color: rgba(232, 232, 235, 0.15);
    color: var(--kipp-white);
}

.hero-stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(232, 232, 235, 0.04);
    border: var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-badge:hover {
    background: rgba(232, 232, 235, 0.08);
    border-color: rgba(232, 232, 235, 0.12);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-badge-label {
    font-size: 0.6rem;
    color: var(--kipp-white-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.store-badge-store {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kipp-white);
    line-height: 1.3;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--kipp-white-muted);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--kipp-white-muted), transparent);
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* === SECTION COMMON === */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--kipp-blue-soft);
    border: 1px solid rgba(55, 195, 218, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--kipp-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
    animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(55, 195, 218, 0.15);
    }

    50% {
        box-shadow: 0 0 16px 4px rgba(55, 195, 218, 0.1);
    }
}

.section-tag svg {
    width: 14px;
    height: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--kipp-white-muted);
    max-width: 550px;
    line-height: 1.7;
}

/* === MODULES SECTION === */
.modules {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.modules::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(55, 195, 218, 0.06) 0%, rgba(55, 195, 218, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modules::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(55, 195, 218, 0.12), transparent);
    pointer-events: none;
}

.modules>.container {
    position: relative;
    z-index: 1;
}

.modules-header {
    text-align: center;
    margin-bottom: 64px;
}

.modules-header .section-subtitle {
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    background: rgba(232, 232, 235, 0.02);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kipp-blue-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.module-card:hover {
    background: rgba(55, 195, 218, 0.04);
    border-color: rgba(55, 195, 218, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(55, 195, 218, 0.08), 0 0 1px rgba(55, 195, 218, 0.3);
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kipp-blue-soft);
    border-radius: var(--radius-sm);
}

.module-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--kipp-blue);
}

.module-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.module-card p {
    font-size: 0.85rem;
    color: var(--kipp-white-muted);
    line-height: 1.6;
}

/* === KIPP COACH SECTION === */
.coach {
    background: rgba(18, 21, 26, 0.6);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.coach::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 195, 218, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 12s ease-in-out infinite;
}

.coach>.container {
    position: relative;
    z-index: 1;
}

@keyframes ambientDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 20px); }
}

/* Coach Header */
.coach-header {
    text-align: center;
    margin-bottom: 56px;
}

.coach-header .section-subtitle {
    margin: 0 auto;
    max-width: 620px;
}

/* Coach Experience Layout */
.coach-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 56px;
}

/* Chat Panel */
.coach-chat-panel {
    display: flex;
    justify-content: center;
}

.chat-mockup {
    background: var(--kipp-dark-card);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: var(--border-subtle);
    flex-shrink: 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--kipp-blue-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
    stroke: var(--kipp-blue);
}

.chat-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-name span {
    display: block;
    font-size: 0.7rem;
    color: var(--kipp-success);
    font-weight: 400;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 520px;
    scroll-behavior: smooth;
    /* Soft masking trick to hide abrupt text cut-offs top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(55, 195, 218, 0.2);
    border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(55, 195, 218, 0.4);
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.55;
    max-width: 88%;
    position: relative;
    
    /* Spring physics entrance animation prep */
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-msg.bot {
    background: rgba(55, 195, 218, 0.08);
    border: 1px solid rgba(55, 195, 218, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: rgba(232, 232, 235, 0.06);
    border: 1px solid rgba(232, 232, 235, 0.06);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--kipp-white-soft);
}

.chat-msg-content {
    margin-bottom: 4px;
}

.chat-msg-content strong {
    color: var(--kipp-white);
}

.chat-msg-content em {
    color: var(--kipp-blue);
    font-style: normal;
    font-weight: 500;
}

.chat-time {
    display: block;
    font-size: 0.62rem;
    color: var(--kipp-white-muted);
    text-align: right;
    margin-top: 2px;
}

.chat-check {
    color: var(--kipp-blue);
    font-size: 0.6rem;
}

.streak-risk {
    color: var(--kipp-alert);
    font-size: 0.75rem;
    font-weight: 600;
}

.streak-ok {
    font-size: 0.75rem;
}

/* Chat Inline SVGs */
.chat-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: text-bottom;
    margin: 0 4px;
    color: inherit;
}

.chat-icon.text-alert {
    stroke: var(--kipp-alert);
}

.chat-icon.text-success {
    stroke: var(--kipp-success);
}

.chat-icon.text-flame {
    stroke: #F59E0b; /* Orange for flame */
}

/* Brain Panel */
.coach-brain-panel {
    background: rgba(22, 25, 32, 0.8);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: var(--border-subtle);
}

.brain-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--kipp-white);
}

.brain-title svg {
    stroke: var(--kipp-blue);
}

.brain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(55, 195, 218, 0.08);
    border: 1px solid rgba(55, 195, 218, 0.15);
    border-radius: 100px;
    font-size: 0.65rem;
    color: var(--kipp-blue);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.brain-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--kipp-blue);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(55, 195, 218, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(55, 195, 218, 0); }
}

/* Pipeline */
.brain-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    flex: 1;
}

/* Connecting vertical line - progressive draw + Flowing Energy */
.brain-pipeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 19px;
    width: 2px;
    height: 0; /* Inicia com 0 para a animação de "desenhar" */
    background: linear-gradient(to bottom, rgba(55, 195, 218, 0.05), var(--kipp-blue), rgba(55, 195, 218, 0.05));
    background-size: 100% 200%;
    border-radius: 2px;
    z-index: 0;
    transition: height 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: flowData 3s linear infinite;
}

.brain-pipeline.active::before {
    height: calc(100% - 40px); /* Cresce até o fim quando .active for adicionado */
}

@keyframes flowData {
    0% { background-position: center top; }
    100% { background-position: center bottom; }
}

.brain-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brain-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.brain-step-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--kipp-dark-elevated);
    border: 1px solid rgba(55, 195, 218, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.brain-step.visible .brain-step-icon {
    border-color: rgba(55, 195, 218, 0.4);
    box-shadow: 0 0 12px rgba(55, 195, 218, 0.1);
}

.brain-step-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--kipp-blue);
}

.brain-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brain-step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--kipp-white);
}

.brain-step-detail {
    font-size: 0.7rem;
    color: var(--kipp-white-muted);
}

.brain-step-status {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.brain-step.visible .brain-step-status {
    opacity: 1;
    transform: scale(1);
}

.brain-step-status.done {
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.brain-step-status svg {
    width: 12px;
    height: 12px;
    stroke: var(--kipp-success);
}

/* Brain Summary */
.brain-summary {
    margin-top: 24px;
    padding-top: 20px;
    border-top: var(--border-subtle);
}

.brain-summary-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.brain-tag {
    padding: 4px 12px;
    background: rgba(232, 232, 235, 0.04);
    border: 1px solid rgba(232, 232, 235, 0.08);
    border-radius: 100px;
    font-size: 0.68rem;
    color: var(--kipp-white-muted);
    font-weight: 500;
}

.brain-summary-text {
    font-size: 0.82rem;
    color: var(--kipp-blue);
}

.brain-summary-text strong {
    color: var(--kipp-blue);
}

/* Coach Features (below) */
.coach-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.coach-feature {
    background: rgba(232, 232, 235, 0.03);
    border: var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.coach-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 195, 218, 0.25);
    background: rgba(232, 232, 235, 0.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(55, 195, 218, 0.1) inset;
}

.coach-feature h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--kipp-blue);
}

.coach-feature p {
    font-size: 0.78rem;
    color: var(--kipp-white-muted);
    line-height: 1.5;
}

/* === DEVICE HERO SECTION === */
.device-hero {
    background: transparent;
    overflow: hidden;
    position: relative;
}

.device-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(55, 195, 218, 0.07) 0%, rgba(55, 195, 218, 0.02) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.device-hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(55, 195, 218, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.device-hero>.container {
    position: relative;
    z-index: 1;
}

.device-hero-header {
    text-align: center;
    margin-bottom: 64px;
}

.device-hero-header .section-subtitle {
    margin: 0 auto;
}

.device-showcase {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
}

.device-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(55, 195, 218, 0.15) 0%, rgba(55, 195, 218, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- Laptop Frame (CSS-only) --- */
.laptop-frame {
    position: relative;
    z-index: 2;
    width: 68%;
    max-width: 640px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.laptop-frame:hover {
    transform: translateY(-6px);
}

.laptop-screen {
    position: relative;
    background: #101014;
    border: 3px solid #2a2a30;
    border-radius: 12px 12px 0 0;
    padding: 24px 12px 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.laptop-camera {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
}

.laptop-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.laptop-hinge {
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, #3a3a42, #252528 40%, #1a1a1e);
    border-radius: 0;
}

.laptop-base {
    width: 110%;
    margin-left: -5%;
    height: 12px;
    background: linear-gradient(to bottom, #2d2d32, #1e1e22);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.laptop-trackpad {
    display: none;
}

/* --- Phone Frame (CSS-only) --- */
.phone-frame {
    position: absolute;
    right: 2%;
    bottom: -20px;
    z-index: 3;
    width: 22%;
    max-width: 200px;
    background: #1a1a1e;
    border: 3px solid #2a2a30;
    border-radius: 28px;
    padding: 12px 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(55, 195, 218, 0.05);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-frame:hover {
    transform: translateY(-10px);
}

.phone-notch {
    width: 60px;
    height: 6px;
    background: #101014;
    border-radius: 10px;
    margin: 0 auto 8px;
}

.phone-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.phone-home {
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 4px;
    margin: 8px auto 0;
}

.device-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === FEATURE GRID SECTION === */
.features-grid {
    background: rgba(18, 21, 26, 0.6);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.features-grid::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(55, 195, 218, 0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 15s ease-in-out infinite reverse;
}

.features-grid::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(55, 195, 218, 0.035) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 18s ease-in-out infinite;
}

.features-grid>.container {
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header .section-subtitle {
    margin: 0 auto;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(232, 232, 235, 0.015);
    border: 1px solid rgba(232, 232, 235, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 32px 28px;
    gap: 24px;
    min-height: 380px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--kipp-blue-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 195, 218, 0.15);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 2px rgba(55, 195, 218, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Alternating layout: even cards reverse the order */
.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-card:nth-child(even) .feature-card-text {
    text-align: right;
}

.feature-card-text {
    flex: 0 0 30%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 14px;
    color: var(--kipp-blue);
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 0 50px rgba(55, 195, 218, 0.3), 0 0 100px rgba(55, 195, 218, 0.1);
    white-space: nowrap;
}

.feature-card-desc {
    font-size: 0.8rem;
    color: var(--kipp-white-muted);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* Mini device frames for feature cards */
.feature-card-devices {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    min-height: 260px;
}

.mini-laptop {
    width: 85%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(55, 195, 218, 0.06));
}

.mini-laptop-screen {
    background: #0a0a0e;
    border: 2.5px solid #2a2a30;
    border-radius: 8px 8px 0 0;
    padding: 14px 8px 8px;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.mini-laptop-screen::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
}

.mini-laptop-screen img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    display: block;
    border-radius: 3px;
}

.mini-laptop-base {
    width: 110%;
    margin-left: -5%;
    height: 8px;
    background: linear-gradient(to bottom, #3a3a42, #252528 40%, #1a1a1e);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mini-phone {
    position: absolute;
    right: -5%;
    bottom: 0;
    z-index: 2;
    width: 30%;
    max-width: 130px;
    background: #1a1a1e;
    border: 2.5px solid #2a2a30;
    border-radius: 16px;
    padding: 8px 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(55, 195, 218, 0.05), 0 0 30px rgba(55, 195, 218, 0.04);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.mini-phone-screen img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.feature-card:hover .feature-card-devices {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

/* Stagger animation for feature cards */
.features-cards .fade-in:nth-child(2) {
    transition-delay: 0.08s;
}

.features-cards .fade-in:nth-child(3) {
    transition-delay: 0.16s;
}

.features-cards .fade-in:nth-child(4) {
    transition-delay: 0.24s;
}

.features-cards .fade-in:nth-child(5) {
    transition-delay: 0.32s;
}

.features-cards .fade-in:nth-child(6) {
    transition-delay: 0.4s;
}

/* === COMPARISON SECTION === */
.comparison {
    background: rgba(18, 21, 26, 0.6);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.comparison::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(229, 72, 77, 0.03) 0%, rgba(55, 195, 218, 0.03) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.comparison>.container {
    position: relative;
    z-index: 1;
}

.comparison-header {
    text-align: center;
    margin-bottom: 64px;
}

.comparison-header .section-subtitle {
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
}

.comparison-panel {
    background: rgba(232, 232, 235, 0.02);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.panel-bad {
    border-color: rgba(229, 72, 77, 0.1);
}

.panel-bad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(229, 72, 77, 0.4), transparent);
}

.panel-good {
    border-color: rgba(55, 195, 218, 0.15);
}

.panel-good::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(55, 195, 218, 0.5), transparent);
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.badge-bad {
    background: rgba(229, 72, 77, 0.1);
    color: var(--kipp-fail);
    border: 1px solid rgba(229, 72, 77, 0.15);
}

.badge-good {
    background: var(--kipp-blue-soft);
    color: var(--kipp-blue);
    border: 1px solid rgba(55, 195, 218, 0.15);
}

.panel-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--kipp-white-soft);
    line-height: 1.5;
}

.panel-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-arrow {
    width: 48px;
    height: 48px;
    background: var(--kipp-blue-soft);
    border: var(--border-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kipp-blue);
    font-size: 1.2rem;
    font-weight: 700;
}

/* === PRICING SECTION === */
.pricing {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(55, 195, 218, 0.06) 0%, rgba(55, 195, 218, 0.015) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.pricing>.container {
    position: relative;
    z-index: 1;
}

.pricing-header {
    text-align: center;
    margin-bottom: 64px;
}

.pricing-header .section-subtitle {
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    align-items: start;
}

.plan-card {
    background: rgba(232, 232, 235, 0.02);
    border: var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 232, 235, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.plan-elite {
    border-color: rgba(55, 195, 218, 0.2);
    background: rgba(55, 195, 218, 0.03);
}

.plan-elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kipp-blue), transparent);
}

.plan-elite:hover {
    border-color: rgba(55, 195, 218, 0.4);
    box-shadow: 0 16px 48px rgba(55, 195, 218, 0.12), 0 0 1px rgba(55, 195, 218, 0.4);
}

.plan-recommended {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--kipp-blue-soft);
    border: 1px solid rgba(55, 195, 218, 0.15);
    border-radius: 100px;
    font-size: 0.65rem;
    color: var(--kipp-blue);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.82rem;
    color: var(--kipp-white-muted);
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 32px;
}

.price-currency {
    font-size: 1.1rem;
    color: var(--kipp-white-muted);
    font-weight: 500;
}

.price-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--kipp-white);
}

.price-period {
    font-size: 0.9rem;
    color: var(--kipp-white-muted);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--kipp-white-soft);
}

.feature-check {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 185, 80, 0.1);
    color: var(--kipp-success);
    border-radius: 50%;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Collapsible extra features */
.plan-features-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-features-extra.expanded {
    max-height: 500px;
}

.plan-features-extra .plan-features {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
}

.plan-see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    margin-bottom: 24px;
    background: transparent;
    border: 1px dashed rgba(55, 195, 218, 0.25);
    border-radius: var(--radius-sm);
    color: var(--kipp-blue);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.plan-see-more:hover {
    background: rgba(55, 195, 218, 0.06);
    border-color: rgba(55, 195, 218, 0.4);
}

.see-more-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.plan-see-more.active .see-more-arrow {
    transform: rotate(180deg);
}

.plan-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-pro .plan-cta {
    background: rgba(232, 232, 235, 0.06);
    color: var(--kipp-white);
    border: var(--border-card);
}

.plan-pro .plan-cta:hover {
    background: rgba(232, 232, 235, 0.1);
}

.plan-elite .plan-cta {
    background: var(--kipp-blue);
    color: var(--kipp-dark);
}

.plan-elite .plan-cta:hover {
    background: #4dd4e6;
    box-shadow: 0 8px 40px rgba(55, 195, 218, 0.35), 0 0 20px rgba(55, 195, 218, 0.15);
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-size: 0.82rem;
    color: var(--kipp-white-muted);
    text-align: center;
}

.pricing-guarantee svg {
    flex-shrink: 0;
}

/* === CTA FINAL + FAQ === */
.cta-final {
    background: rgba(18, 21, 26, 0.6);
    border-top: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(55, 195, 218, 0.07) 0%, rgba(55, 195, 218, 0.02) 35%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 20s ease-in-out infinite;
}

.cta-final>.container {
    position: relative;
    z-index: 1;
}

.cta-final-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-blue {
    color: var(--kipp-blue);
}

.text-fail {
    color: var(--kipp-fail);
}

.cta-sub {
    font-size: 0.95rem;
    color: var(--kipp-white-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--kipp-white-muted);
}

.trust-item svg {
    width: 14px;
    height: 14px;
}

/* FAQ */
.faq-section {
    max-width: 700px;
    margin: 80px auto 0;
}

.faq-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.faq-item {
    border-bottom: var(--border-subtle);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--kipp-white-soft);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--kipp-white-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    color: var(--kipp-white);
}

.faq-item p {
    padding: 0 0 20px;
    font-size: 0.85rem;
    color: var(--kipp-white-muted);
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    padding: 48px 32px;
    border-top: var(--border-subtle);
    background: rgba(11, 13, 16, 0.7);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-brand svg {
    width: 22px;
    height: 22px;
}

.footer-text {
    font-family: var(--font-footer);
    font-size: 0.78rem;
    color: var(--kipp-white-muted);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-family: var(--font-footer);
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--kipp-white-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--kipp-white);
}

/* === SCROLL ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger animation for grid children */
.modules-grid .fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.modules-grid .fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.modules-grid .fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

/* Glow line between sections */
.section+.section {
    border-top: 1px solid rgba(55, 195, 218, 0.06);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .coach-mockup {
        order: -1;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comparison-divider {
        display: none;
    }

    .features-cards {
        grid-template-columns: 1fr;
    }
}

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

    .navbar {
        padding: 14px 20px;
    }

    .navbar-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 13, 16, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 999;
    }

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

    .navbar-links a {
        font-size: 1.2rem;
        color: var(--kipp-white);
    }

    .navbar-mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar-cta {
        display: none;
    }

    .hero-headline {
        font-size: 2rem;
    }

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

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

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

    .coach-features {
        grid-template-columns: 1fr;
    }

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

    .device-showcase {
        min-height: 300px;
    }

    .device-notebook {
        width: 80%;
    }

    .device-phone {
        width: 30%;
    }

    .device-platforms {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .store-badge {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   SURREAL MASTERCLASS UI/UX OVERRIDES
   ========================================================================= */

/* 1. Background Noise / Film Grain */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Dynamic Cursor Glow Tracker */
.cursor-glow {
    position: fixed;
    top: -150px; left: -150px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(55,195,218,0.12) 0%, rgba(55,195,218,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(var(--x, -1000px), var(--y, -1000px));
    transition: width 0.3s, height 0.3s;
    will-change: transform;
    filter: blur(30px);
}

/* 3. Global Reveal Animations (Intersection Observer) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* 4. 3D Tilt Wrapper */
.tilt-wrapper {
    perspective: 1200px;
    transform-style: preserve-3d;
}
.tilt-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Magnetic Button Enhancements */
.btn-primary {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s !important;
}
.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 30px rgba(55, 195, 218, 0.35), 0 0 0 1px rgba(55, 195, 218, 0.5) inset;
}