/* FitChakra landing page — loaded only by index.php. chat.php keeps style.css. */

:root {
    --bg: #0b0b0b;
    --bg-2: #121212;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --accent: #fee600;
    --accent-2: #ffd700;
    --accent-soft: rgba(254, 230, 0, 0.12);
    --accent-line: rgba(254, 230, 0, 0.35);
    --text: #f5f5f5;
    --muted: #9c9c9c;
    --muted-2: #6f6f6f;
    --radius: 16px;
    --radius-sm: 12px;
    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
    --nav-h: var(--sh-h, 72px);
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }
input, textarea { caret-color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }


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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #000; box-shadow: 0 6px 20px rgba(254, 230, 0, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(254, 230, 0, 0.32); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
    background: var(--surface); color: #fff; border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }
.btn-ghost .play-dot {
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #000;
    display: inline-flex; align-items: center; justify-content: center; margin-left: -6px;
}
.btn-ghost .play-dot svg { width: 12px; height: 12px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
h2.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
    text-align: left; margin: 0 0 12px;
}
.section-head.center h2.section-title { text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    min-height: calc(100svh - var(--nav-h));
    display: flex; align-items: center;
    padding-block: clamp(48px, 7vh, 96px);
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 78% 40%, rgba(254, 230, 0, 0.10), transparent 60%),
        radial-gradient(600px 400px at 10% 90%, rgba(254, 230, 0, 0.05), transparent 60%),
        var(--bg);
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
    opacity: 0.6;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 72px);
    width: 100%; position: relative;
}
.hero-copy h1 {
    font-size: clamp(2.5rem, 4.6vw, 4.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
    margin-bottom: 22px;
}
.hero-copy h1 .highlight { color: var(--accent); }
.hero-copy .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 0.9rem; }
.hero-proof .store-badge { height: 40px; width: auto; opacity: 0.9; transition: opacity 0.2s ease, transform 0.2s var(--ease-out); }
.hero-proof a:hover .store-badge { opacity: 1; transform: translateY(-2px); }
.hero-proof .sep { width: 1px; height: 20px; background: var(--line-2); }

/* Phone mockup */
.hero-device { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phone-glow {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 230, 0, 0.28), rgba(254, 230, 0, 0.06) 45%, transparent 70%);
    filter: blur(30px); pointer-events: none;
}
.phone-stage { perspective: 1500px; perspective-origin: 50% 40%; }
.phone-float { animation: phone-float 6.5s ease-in-out infinite; will-change: transform; }
.phone {
    position: relative; width: 300px; aspect-ratio: 9 / 19.3;
    border-radius: 50px; padding: 11px;
    background: linear-gradient(160deg, #262626, #0f0f0f 55%, #1c1c1c);
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
        inset 0 0 0 4px #050505,
        0 50px 90px -20px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 30px 120px -10px rgba(254, 230, 0, 0.18);
    transform: rotateY(-18deg) rotateX(7deg) rotateZ(-3deg);
    transform-style: preserve-3d;
    transition: transform 0.9s var(--ease-out);
}
.phone-stage:hover .phone { transform: rotateY(-9deg) rotateX(3deg) rotateZ(-1deg); }
/* side buttons */
.phone::before, .phone::after {
    content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2a2a2a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before { left: -3px; top: 120px; height: 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 46px 0 0 #2a2a2a, 0 92px 0 0 #2a2a2a; }
.phone::after { right: -3px; top: 170px; height: 70px; }
.phone-screen {
    position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #000;
    isolation: isolate;
}
.phone-screen video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.phone-poster {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0;
    background: radial-gradient(circle at 50% 40%, #1a1a1a, #000 70%);
}
.phone-poster img { width: 72px; height: 72px; border-radius: 18px; opacity: 0.9; }
.phone-screen::after {
    content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 50%);
}
.phone-island {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: 96px; height: 28px; border-radius: 20px; background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-island::after {
    content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%; background: #0e1a2b; box-shadow: inset 0 0 2px rgba(255,255,255,0.3);
}
.phone-chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
    background: rgba(18, 18, 18, 0.85); border: 1px solid var(--line-2); border-radius: 14px;
    padding: 10px 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); font-size: 0.85rem; white-space: nowrap;
}
.phone-chip strong { display: block; font-size: 0.95rem; font-weight: 600; }
.phone-chip small { color: var(--muted); font-size: 0.78rem; }
.phone-chip .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.phone-chip .ico svg { width: 18px; height: 18px; }
.phone-chip.c1 { left: 0; top: 22%; animation: chip-float 7s ease-in-out infinite; }
.phone-chip.c2 { right: 0; bottom: 20%; animation: chip-float 8s ease-in-out infinite reverse; }

@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hero entrance */
[data-rise] { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
.hero-device[data-rise] { transform: translateY(40px) scale(0.96); animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Choose your path ---------- */
.paths { padding-block: clamp(72px, 10vh, 120px); background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.path-card {
    position: relative; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
    padding: 26px 26px 26px 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); cursor: pointer; overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.path-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(420px 200px at 15% 0%, rgba(254, 230, 0, 0.14), transparent 60%);
    transition: opacity 0.35s ease;
}
.path-card:hover, .path-card:focus-visible { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(254, 230, 0, 0.08); }
.path-card:hover::before { opacity: 1; }
.path-card:active { transform: translateY(-1px) scale(0.995); }
.path-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(254, 230, 0, 0.2);
    transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.path-icon svg { width: 26px; height: 26px; }
.path-card:hover .path-icon { transform: scale(1.06) rotate(-3deg); background: rgba(254, 230, 0, 0.18); }
.path-body h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.path-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.path-body .path-tag { display: inline-block; margin-top: 14px; font-size: 0.8rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s ease, transform 0.3s var(--ease-out); }
.path-card:hover .path-tag, .path-card:focus-visible .path-tag { opacity: 1; transform: none; }
.path-arrow {
    position: absolute; right: 22px; bottom: 22px; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--line-2); display: grid; place-items: center; color: #fff;
    transition: transform 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.path-arrow svg { width: 16px; height: 16px; }
.path-card:hover .path-arrow { background: var(--accent); border-color: var(--accent); color: #000; transform: translate(2px, -2px); }

/* ---------- Chat ---------- */
.chat-block { padding-block: clamp(72px, 10vh, 120px); }
.chat-card {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(254, 230, 0, 0.07), rgba(255, 255, 255, 0.02) 60%);
    border: 1px solid rgba(254, 230, 0, 0.18); border-radius: 24px;
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
}
.chat-card::before {
    content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
    background: radial-gradient(600px 220px at 50% -10%, rgba(254, 230, 0, 0.18), transparent 70%);
}
.chat-card > * { position: relative; }
.aura-mark {
    width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #000; display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(254, 230, 0, 0.3);
}
.aura-mark svg { width: 28px; height: 28px; }
.chat-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.chat-card .section-sub { margin-bottom: 28px; }
.chat-form { max-width: 720px; margin: 0 auto; }
.chat-input {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
    background: #0b0b0b; border: 1px solid var(--line-2); border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(254, 230, 0, 0.12); }
.chat-input input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-size: 1rem; padding: 12px 0;
}
.chat-input input::placeholder { color: var(--muted-2); }
.chat-input .btn { padding: 12px 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chip {
    background: transparent; border: 1px solid var(--line-2); color: #d8d8d8; border-radius: 999px;
    padding: 8px 14px; font-size: 0.875rem; cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}
.chip:hover { border-color: var(--accent-line); color: #fff; background: var(--accent-soft); transform: translateY(-1px); }
.chip:active { transform: scale(0.97); }

/* ---------- Download ---------- */
.download { padding-block: clamp(56px, 8vh, 96px); border-top: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.download h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.download p { color: var(--muted); }
.app-store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.app-store-btn { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.app-store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(254, 230, 0, 0.35); }
.app-store-btn .store-badge { height: 52px; width: auto; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(72px, 10vh, 120px); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
    background:
        linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat;
    transition: transform 0.35s var(--ease-out), background 0.2s ease, border-color 0.2s ease;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--accent-line); }
.faq-item p { color: var(--muted); padding: 0 48px 22px 0; max-width: 62ch; line-height: 1.65; }
.faq-item a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(254, 230, 0, 0.35); }
.faq-item a:hover { border-bottom-color: var(--accent); }

/* ---------- Contact ---------- */
.contact-block { padding-block: clamp(72px, 10vh, 120px); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.contact-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent-line); background: var(--surface-2); }
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
    background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(254, 230, 0, 0.2);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.contact-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); transition: color 0.2s ease, border-color 0.2s ease; }
a.contact-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-cta {
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    background: linear-gradient(135deg, rgba(254, 230, 0, 0.12), rgba(254, 230, 0, 0.04));
    border: 1px solid rgba(254, 230, 0, 0.25); border-radius: 20px; padding: 32px;
}
.contact-cta h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.contact-cta p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.82rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Video modal ---------- */
.video-modal {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 9999;
    align-items: center; justify-content: center; padding: 24px;
}
.video-modal.active { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.video-modal-content { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.video-modal-content iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; }
.close-video {
    position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line-2); color: #fff; font-size: 1.4rem; cursor: pointer;
    display: grid; place-items: center; transition: background 0.2s ease, transform 0.2s var(--ease-out);
}
.close-video:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 0.9fr; }
    .phone { width: 260px; }
    .phone-glow { width: 340px; height: 340px; }
    .phone-chip { display: none; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .faq .section-head { position: static; }
}

@media (max-width: 768px) {
    .hero { min-height: 0; padding-block: 40px 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { text-align: center; }
    .hero-copy .lede { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-actions .btn { flex: 1 1 200px; }
    .hero-proof { justify-content: center; }
    .hero-device { min-height: 0; padding-block: 16px 8px; }
    .phone { width: 240px; transform: rotateY(-12deg) rotateX(5deg) rotateZ(-2deg); }
    .phone-glow { width: 300px; height: 300px; }

    .path-grid { grid-template-columns: 1fr; }
    .path-card { padding: 22px 20px; }
    .path-arrow { display: none; }

    .chat-input { flex-direction: column; align-items: stretch; padding: 8px; }
    .chat-input input { padding: 10px 12px; }
    .chat-input .btn { width: 100%; }

    .download-grid { grid-template-columns: 1fr; text-align: center; }
    .app-store-buttons { justify-content: center; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-cta { grid-template-columns: 1fr; text-align: center; }
    .contact-cta .btn { width: 100%; }
    .site-footer .wrap { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero-copy h1 { font-size: 2.15rem; }
    .btn { padding: 13px 18px; }
    .phone { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    [data-rise] { opacity: 1; transform: none; }
    .phone { transform: rotateY(-10deg) rotateX(4deg); }
}

/* Touch devices: no hover, so the card's action line is always visible */
@media (hover: none) {
    .path-body .path-tag { opacity: 1; transform: none; }
}
