/* ============================================================
   FlexDesk landing — dark theme, mint accent (matches app brand)
   ============================================================ */

:root {
  --bg: #0a0e0d;
  --bg-raise: #0f1513;
  --surface: #121a18;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef4f1;
  --muted: #9aaba4;
  --accent: #5eead4;
  --accent-dim: #2dd4bf;
  --deep: #0c4744;
  --amber: #ffc23d;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --container: 1120px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(12, 71, 68, 0.35), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(12, 71, 68, 0.25), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.container-narrow { width: min(760px, calc(100% - 48px)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary {
  background: var(--text);
  color: #0a0e0d;
}
.btn-primary:hover { transform: translateY(-1px); background: #ffffff; }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.btn-disabled {
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: default;
}
.btn-disabled:hover { transform: none; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding-inline: 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(10, 14, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 20px;
  max-width: 880px;
  margin-inline: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 40px;
  text-align: center;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Phone mockups ---------- */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 72px;
  padding-bottom: 10px;
}
.hero-phones::before {
  content: "";
  position: absolute;
  inset: auto 0 -60px;
  height: 420px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(94, 234, 212, 0.13), transparent 70%);
  pointer-events: none;
}
.phone {
  width: 250px;
  height: 520px;
  border-radius: 42px;
  border: 8px solid #23292b;
  background: #0d1211;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
.phone-center { z-index: 3; }
.phone-flip { perspective: 1400px; cursor: pointer; }
.flip-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.35, 0.15, 0.2, 1);
}
.phone-flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }
.face-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Member digital card (flip back face) */
.digicard {
  background: linear-gradient(160deg, var(--deep), #06302e);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.digicard-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.digicard-gym {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.qr {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background-color: #e8f1ee;
  background-image:
    repeating-linear-gradient(0deg, rgba(10, 14, 13, 0.85) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(90deg, rgba(10, 14, 13, 0.85) 0 4px, transparent 4px 8px);
  background-position: center;
}
.digicard-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.digicard-plan { color: var(--muted); font-size: 11px; margin-top: -6px; }
.phone-left,
.phone-right {
  transform: rotate(-9deg) translateY(26px) scale(0.94);
  opacity: 0.9;
  z-index: 1;
}
.phone-right { transform: rotate(9deg) translateY(26px) scale(0.94); }
.phone-left { margin-right: -46px; }
.phone-right { margin-left: -46px; }

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #23292b;
  z-index: 2;
}
.screen {
  height: 100%;
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  font-size: 12px;
  overflow: hidden;
}
.app-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.greet { display: flex; justify-content: space-between; align-items: center; }
.greet-hi { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.greet-sub { color: var(--muted); font-size: 11px; }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), var(--accent-dim));
  flex-shrink: 0;
}
.avatar.lg { width: 36px; height: 36px; }

.stat-card {
  background: linear-gradient(160deg, var(--deep), #06302e);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 16px;
  padding: 14px;
}
.stat-label { color: var(--muted); font-size: 11px; }
.stat-big { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin-top: 4px; }
.stat-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.quick { display: flex; gap: 8px; }
.q {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 4px;
  font-size: 10px;
  color: var(--muted);
}
.q-ic { width: 22px; height: 22px; border-radius: 8px; }
.q-mint { background: rgba(94, 234, 212, 0.25); }
.q-amber { background: rgba(255, 194, 61, 0.25); }
.q-violet { background: rgba(196, 181, 253, 0.25); }

.recent { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
.recent-h { font-size: 11px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.line { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.line.w35 { width: 35%; } .line.w40 { width: 40%; } .line.w45 { width: 45%; }
.line.w50 { width: 50%; } .line.w55 { width: 55%; } .line.w60 { width: 60%; }
.line.w65 { width: 65%; } .line.w70 { width: 70%; } .line.w75 { width: 75%; }

.chip {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.chip-ok { background: rgba(94, 234, 212, 0.15); color: var(--accent); }
.chip-warn { background: rgba(255, 194, 61, 0.15); color: var(--amber); }
.chip-off { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.time { color: var(--muted); font-size: 10px; }

.search-pill { height: 34px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 74px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent-dim), rgba(94, 234, 212, 0.15));
}
.bars i:nth-child(6) { background: linear-gradient(180deg, var(--amber), rgba(255, 194, 61, 0.15)); }

.peso-label { color: var(--muted); font-size: 11px; }
.peso {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-top: -6px;
}
.renew-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.renew-ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 194, 61, 0.2);
  flex-shrink: 0;
}
.renew-ic.alt { background: rgba(94, 234, 212, 0.2); }

/* ---------- Sections ---------- */
.section { padding: 110px 0 20px; }
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); max-width: 540px; margin-bottom: 44px; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-accent { border-color: rgba(94, 234, 212, 0.35); background: linear-gradient(170deg, rgba(12, 71, 68, 0.5), var(--surface) 60%); }
.card-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(94, 234, 212, 0.12);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Tutorials ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.video-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(12, 71, 68, 0.6), transparent 55%),
    linear-gradient(160deg, #14201d, #0c1211);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.play {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: #0a0e0d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}
.video-card:hover .play { transform: scale(1.06); }
.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 6px;
}
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin-bottom: 16px;
}
.video-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; padding-inline: 6px; }
.video-card p { color: var(--muted); font-size: 0.9rem; padding-inline: 6px; }

/* ---------- Download ---------- */
.download-panel {
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(12, 71, 68, 0.55), transparent 60%),
    var(--surface);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 26px;
  padding: 70px 32px;
}
.download-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.download-panel > p { color: var(--muted); max-width: 480px; margin: 0 auto 30px; }
.download-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.download-note { color: var(--muted); font-size: 0.85rem; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 0.2s ease;
}
details[open] { border-color: rgba(94, 234, 212, 0.3); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 18px;
}
details p a { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-panel {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 56px 32px;
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.contact-panel p { color: var(--muted); margin-bottom: 26px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 90px 0 34px; }
.footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.footer-tag { color: var(--muted); font-size: 0.92rem; }
.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.copyright { text-align: center; color: rgba(154, 171, 164, 0.6); font-size: 0.82rem; margin-top: 26px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .phone { width: 210px; height: 440px; }
  .phone-left, .phone-right { margin-inline: -30px; }
  .cards, .videos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .nav .btn { margin-left: auto; }
  .br-desktop { display: none; }
  .hero { padding-top: 64px; }
  .hero-phones { margin-top: 56px; }
  .phone-left, .phone-right { display: none; }
  .phone { width: 240px; height: 500px; }
  .cards, .videos { grid-template-columns: 1fr; }
  .section { padding: 80px 0 10px; }
  .footer-links { margin-left: 0; }
}
