/* ============================================================
   CoreMan Landing V2 — design tokens from Coremanhealth.zip (1a)
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-soft: #0e0e10;
  --surface: #131315;
  --surface-2: #151517;
  --card-dark: #1C1C1E;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --text-2: #9a9aa0;
  --text-3: #8a8a90;
  --text-4: #6a6a70;
  --primary: #FF9500;
  --primary-soft: #FFB43E;
  --primary-deep: #F5760A;
  --on-primary: #1a1000;
  --success: #34C759;
  --gold: #FFD700;
  --grad-primary: linear-gradient(150deg, #FFB43E, #FF9500 60%, #F5760A);
  --grad-gold: linear-gradient(90deg, #FFD700, #FFA500);
  --shadow-orange: 0 12px 26px -10px rgba(255, 149, 0, .6);
  --radius-btn: 12px;
  --radius-card: 20px;
  --font: 'Poppins', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-soft); }
ul { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* ---------- buttons ---------- */
.btn-p {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-primary);
  color: var(--on-primary); font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius-btn);
  box-shadow: var(--shadow-orange);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-p:hover { color: var(--on-primary); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(255, 149, 0, .75); }
.btn-g {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--text); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius-btn);
  transition: border-color .2s ease, background .2s ease;
}
.btn-g:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn-block { width: 100%; margin-top: 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); background: rgba(255, 149, 0, .1);
  border: 1px solid rgba(255, 149, 0, .25);
  padding: 7px 14px; border-radius: 20px;
}

.sect-h { font-size: 38px; font-weight: 800; letter-spacing: -1px; text-align: center; text-wrap: balance; }
.sect-sub { font-size: 16px; color: var(--text-2); text-align: center; max-width: 560px; margin: 16px auto 0; line-height: 1.6; }
.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.orange { color: var(--primary); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .8);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 16px 40px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-ring { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--primary); }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--text-3); margin-top: 3px; }
.brand--sm .brand-ring { width: 28px; height: 28px; }
.brand--sm .brand-name { font-size: 18px; }

.navlinks { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.navlinks a { color: #b5b5bb; transition: color .2s ease; }
.navlinks a:hover { color: var(--text); }
.nav-cta-mobile { display: none; }

/* language switcher (app SettingsScreen style) */
.lang { position: relative; margin-left: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px 12px;
  color: var(--text); font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.lang-btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.lang-caret { font-size: 9px; color: var(--text-3); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 190px;
  background: #161618; border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
}
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; border-radius: 9px;
  padding: 10px 12px; cursor: pointer;
  color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 500;
  text-align: left; transition: background .15s ease;
}
.lang-menu button:hover { background: rgba(255, 255, 255, .06); }
.lang-flag { font-size: 17px; flex: none; }
.lang-name { flex: 1; }
.lang-check { color: var(--primary); font-weight: 700; visibility: hidden; }
.lang-menu button.is-active { color: var(--primary); }
.lang-menu button.is-active .lang-check { visibility: visible; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: none; border: 1px solid var(--border-strong); border-radius: 10px;
  cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center;
  padding-top: 60px; padding-bottom: 80px;
  position: relative;
}
.hero-glow {
  position: absolute; right: 60px; top: -40px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 0, .18), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin-top: 22px; text-wrap: balance; }
.h1 .accent { color: var(--primary); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-top: 20px; max-width: 480px; }

.store { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.storebtn {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 13px; padding: 11px 18px;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.storebtn:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.storebtn svg { width: 24px; height: 24px; flex: none; }
.storebtn span { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.storebtn small { font-size: 9px; color: var(--text-3); }
.storebtn b { font-size: 15px; font-weight: 700; }
.storebtn--dark { background: var(--on-primary); border: none; }
.storebtn--dark small { color: #aaa; }
.storebtn--dark b { color: #fff; }

.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: 13px; color: var(--text-3); }

/* ---------- phone mockup ---------- */
.phone {
  width: 270px; flex: none; justify-self: end;
  background: #050505; border-radius: 44px; padding: 9px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05), inset 0 0 0 2px #1e1e20;
  position: relative; z-index: 2;
}
.phone-tilt { transform: rotate(2deg); }
.pscreen {
  position: relative; border-radius: 36px; overflow: hidden;
  background: #0F0F0F; height: 560px;
  display: flex; flex-direction: column;
}
.pisland { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 82px; height: 24px; background: #000; border-radius: 14px; z-index: 5; }
.psb { display: flex; justify-content: space-between; padding: 14px 22px 4px; font-size: 11px; font-weight: 600; }

.p-greet { padding: 14px 18px 4px; }
.p-greet-hi { font-size: 11px; color: #9d9da3; }
.p-greet-name { font-size: 19px; font-weight: 700; }

.p-ring-area { display: flex; flex-direction: column; align-items: center; margin: 6px 0 4px; }
.core-ring { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.core-ring--lg { width: 170px; height: 170px; }
.ring-glow { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 149, 0, .45), transparent 68%); }
.core-ring--lg .ring-glow { width: 150px; height: 150px; }
.ring-core {
  position: absolute; width: 102px; height: 102px; border-radius: 50%;
  background: linear-gradient(145deg, #FFB43E, #FF9500 55%, #F97C0A);
  box-shadow: 0 16px 36px -12px rgba(255, 149, 0, .7);
}
.core-ring--lg .ring-core { width: 130px; height: 130px; }
.ring-core--icon { display: flex; align-items: center; justify-content: center; }
.ring-core--icon svg { width: 48px; height: 48px; }
.ring-progress { position: absolute; width: 150px; height: 150px; transform: rotate(-90deg); }
.ring-label { position: relative; z-index: 2; text-align: center; color: var(--on-primary); }
.ring-label span { font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: .7; display: block; }
.ring-label b { font-size: 32px; font-weight: 800; line-height: 1; }
.ring-label i { font-style: normal; font-size: 14px; }

.p-cta {
  margin: 6px 16px 0; height: 44px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13px; font-weight: 700;
}
.p-stats { display: flex; gap: 10px; padding: 12px 16px 0; }
.p-stat { flex: 1; background: var(--card-dark); border-radius: 14px; padding: 12px; text-align: center; }
.p-stat b { font-size: 18px; font-weight: 700; display: block; }
.p-stat span { font-size: 10px; color: #9d9da3; }

.p-exercise { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 18px; }
.p-ex-title { font-size: 18px; font-weight: 800; }
.p-ex-timer { font-size: 30px; font-weight: 800; color: var(--primary); }
.p-ex-hint { font-size: 12px; font-weight: 600; color: var(--primary); }

/* ---------- clinical stats ---------- */
.stats {
  background: linear-gradient(180deg, var(--bg), #111);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 56px 0;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.stats-big {
  font-size: 88px; font-weight: 800; letter-spacing: -3px; line-height: 1;
  background: linear-gradient(120deg, #FFB43E, #FF9500);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-title { font-size: 20px; font-weight: 700; margin-top: 8px; }
.stats-desc { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-top: 14px; max-width: 440px; }
.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.stat-card b { font-size: 30px; font-weight: 800; color: var(--primary); display: block; }
.stat-card span { font-size: 13px; color: var(--text-2); margin-top: 4px; display: block; }

/* ---------- features ---------- */
.features { padding-top: 72px; padding-bottom: 72px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 149, 0, .35); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(145deg, #FFB43E, #FF9500);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-top: 18px; }
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-top: 8px; }

/* ---------- showcase ---------- */
.showcase { background: var(--bg-soft); border-top: 1px solid rgba(255, 255, 255, .06); padding: 72px 0; }
.showcase-grid { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: center; }
.showcase-h { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 18px; }
.showcase-p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-top: 16px; max-width: 440px; }
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.check {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: rgba(52, 199, 89, .2); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ---------- screens ---------- */
/* Desktop: all 4 screenshots fit in a static row, no scrolling/arrows needed */
.screens { padding-top: 80px; padding-bottom: 80px; }
.screens-carousel { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.screens-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; flex: 1; min-width: 0; }
.screens-slide img {
  width: 100%; display: block; border-radius: 32px;
  border: 1px solid var(--border-strong); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
}
.screens-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 22px; line-height: 1; display: none; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.screens-arrow:hover { background: var(--card-dark); border-color: var(--primary); color: var(--primary); }

/* ---------- testimonials ---------- */
.testimonials { padding-top: 0; padding-bottom: 72px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.testimonial-card p { font-size: 14.5px; line-height: 1.6; color: #d5d5db; margin-top: 14px; }
.t-author { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, #FFB43E, #FF9500);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--on-primary);
}
.t-author b { font-size: 14px; font-weight: 600; display: block; }
.t-author span { font-size: 12px; color: var(--text-3); }

/* ---------- final CTA ---------- */
.cta-wrap { padding: 40px 0 90px; }
.cta {
  background: var(--grad-primary);
  border-radius: 28px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-bubble { position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.cta h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--on-primary); position: relative; }
.cta p { font-size: 16px; color: rgba(26, 16, 0, .75); margin: 14px auto 0; max-width: 480px; position: relative; }
.cta-stores { display: flex; gap: 14px; justify-content: center; margin-top: 28px; position: relative; flex-wrap: wrap; }

/* ---------- legal pages (privacy / terms) ---------- */
.legal { padding: 64px 0 100px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; margin-bottom: 32px; }
.legal-back:hover { color: var(--primary); }
.legal-content { max-width: 760px; }
.legal-content h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.legal-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-content h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; color: var(--text-2); }
.legal-content p { color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.legal-content .legal-updated { color: var(--text-3); font-size: 14px; margin-bottom: 32px; }
.legal-content ul { list-style: disc; padding-left: 22px; color: var(--text-2); margin-bottom: 14px; }
.legal-content li { margin-bottom: 8px; line-height: 1.7; }
.legal-content strong { color: var(--text); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: var(--text-3); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-4); }

/* ---------- coming soon modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box {
  position: relative; max-width: 380px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 36px 28px; text-align: center;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 149, 0, .25);
  animation: modal-in .3s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
  color: var(--text-2); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.modal-icon { width: 52px; height: 52px; margin: 0 auto 18px; display: block; }
.modal-box h3 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.modal-box p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin-top: 12px; }
.modal-box .modal-hint { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.modal-box .btn-p { margin-top: 22px; width: 100%; }

/* ---------- animations ---------- */
@keyframes breathe { 0%, 100% { transform: scale(.86); } 50% { transform: scale(1); } }
@keyframes glow { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .7; transform: scale(1.15); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.an-breathe { animation: breathe 4s ease-in-out infinite; }
.an-glow { animation: glow 4s ease-in-out infinite; }
.an-float { animation: floaty 6s ease-in-out infinite; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .an-breathe, .an-glow, .an-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .h1 { font-size: 44px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .phone { justify-self: center; }
  .hero-glow { right: 50%; transform: translateX(50%); }
  .stats-grid, .showcase-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase-grid .phone { justify-self: center; }
  .features-grid, .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .navlinks {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(10, 10, 10, .97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a { padding: 10px 0; font-size: 16px; width: 100%; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; width: 100%; }
  .nav-burger { display: flex; }

  .h1 { font-size: 36px; }
  .sect-h { font-size: 30px; }
  .legal-content h1 { font-size: 30px; }
  .stats-big { font-size: 64px; }
  .showcase-h, .cta h2 { font-size: 28px; }
  .features-grid, .testimonial-grid, .stats-cards { grid-template-columns: 1fr; }
  .cta { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  /* Mobile: swipeable carousel with visible arrows instead of a static 4-up row */
  .screens-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding: 6px 4px 14px; scrollbar-width: none;
  }
  .screens-track::-webkit-scrollbar { display: none; }
  .screens-slide { flex: 0 0 auto; width: 190px; scroll-snap-align: center; }
  .screens-arrow { display: flex; }
}
