/* HotSwap — marketing & support site */

:root {
  --bg: #07090a;
  --bg-raised: #0f1313;
  --surface: #131a19;
  --border: rgba(255, 255, 255, 0.09);
  --teal: #21e6c1;
  --teal-dim: #158f79;
  --text: #f2f6f4;
  --text-muted: #93a19c;
  --text-faint: #5b6663;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --max: 1120px;
}

* { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

svg { display: block; }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 10, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand img { width: 30px; height: 30px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
.nav-icon-link:hover { border-color: var(--teal); color: var(--teal) !important; }
.nav-icon-link svg { width: 16px; height: 16px; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-icon-link) { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-links .nav-icon-link { margin: 16px 24px; align-self: flex-start; border-top: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: var(--text);
    font-size: 18px;
    flex-shrink: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  max-width: 100vw;
  background: radial-gradient(circle, rgba(33, 230, 193, 0.16), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 58px);
  max-width: 11.5ch;
}

.hero .lead {
  font-size: 18px;
  max-width: 46ch;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--teal);
  color: #04231d;
}
.btn-primary:hover { background: #3cf2ce; text-decoration: none; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); text-decoration: none; color: var(--teal); }

.btn-instagram {
  border-color: var(--border);
  color: var(--text);
}
.btn-instagram:hover { border-color: #e1306c; color: #ff5c96; text-decoration: none; }

.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 0;
}

.phone {
  border-radius: 9.5% / 4.6%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.65);
  background: #000;
  width: 230px;
  max-width: 100%;
  flex-shrink: 0;
}

.phone img { width: 100%; display: block; }

.hero-shots .phone--back {
  transform: rotate(6deg) translate(40px, 18px);
  opacity: 0.85;
}

.hero-shots .phone--front {
  transform: rotate(-6deg);
  z-index: 2;
  margin-left: -60px;
}

/* Apple Watch frame */

.watch {
  position: relative;
  width: 148px;
  max-width: 42vw;
  border-radius: 30% / 22%;
  overflow: hidden;
  border: 2px solid #1c2222;
  background: #000;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.watch::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 15%;
  min-height: 26px;
  background: #23292a;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch img { width: 100%; display: block; }

/* ---------- Sections ---------- */

section { padding: 84px 0; overflow: hidden; }

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-head .eyebrow { display: block; }

/* Feature grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature {
  background: var(--bg-raised);
  padding: 32px 28px;
}

.feature h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.feature p { font-size: 15px; margin: 0; }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(33, 230, 193, 0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Showcase (alternating screenshots) */

.showcase-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}

.showcase-row:last-child { border-bottom: 1px solid var(--border); }

.showcase-row.reverse { grid-template-columns: 1fr 260px; }
.showcase-row.reverse .showcase-copy { order: -1; }

.showcase-shot { display: flex; justify-content: center; min-width: 0; }
.showcase-shot .phone { width: 100%; max-width: 240px; margin: 0 auto; }

.showcase-copy { min-width: 0; }

.showcase-copy .index {
  color: var(--text-faint);
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 10px;
}

.showcase-copy h3 { font-size: 23px; margin-bottom: 10px; }
.showcase-copy p { font-size: 16px; max-width: 42ch; }

@media (max-width: 760px) {
  .showcase-row, .showcase-row.reverse {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .showcase-row.reverse .showcase-copy { order: 0; }
  .showcase-shot .phone { width: 190px; max-width: 60vw; }
}

/* Watch showcase */

.watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.watch-card {
  text-align: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px 28px;
}

.watch-card .watch { margin: 0 auto 20px; }
.watch-card h3 { font-size: 17px; margin-bottom: 8px; }
.watch-card p { font-size: 14.5px; margin: 0; }

@media (max-width: 760px) {
  .watch-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, #0f1e1b, #0a1211);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 12px; }
.cta-band p { max-width: 48ch; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }

@media (max-width: 480px) {
  .cta-band { padding: 40px 22px; }
}

/* ---------- Simple content pages (privacy / support) ---------- */

.page-head {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); }
.page-head .updated { color: var(--text-faint); font-size: 14px; margin-top: 18px; }

.doc {
  padding: 56px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.doc h2 {
  font-size: 21px;
  margin-top: 2.4em;
  padding-top: 0.2em;
}
.doc h2:first-child { margin-top: 0; }

.doc h3 {
  font-size: 17px;
  color: var(--text);
  margin-top: 1.6em;
}

.doc p, .doc li { color: var(--text-muted); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 28px 0;
}

.doc-card h3 { margin-top: 0; }

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin: 28px 0 8px;
}

.contact-box .label { color: var(--text-faint); font-size: 13px; text-transform: none; margin-bottom: 4px; }
.contact-box .value { font-family: "Space Grotesk", sans-serif; font-size: 19px; color: var(--text); word-break: break-word; }

/* Support list */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--border);
  position: relative;
  color: var(--text-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.checklist li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-links { display: flex; align-items: center; gap: 20px; font-size: 14px; flex-wrap: wrap; }
footer .foot-links a { color: var(--text-muted); }
footer .copyright { color: var(--text-faint); font-size: 14px; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { border-color: #e1306c; color: #ff5c96 !important; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-shots { transform: scale(0.94); }
}

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shots { margin-top: 40px; transform: none; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 24px; }
  .hero-shots .phone { width: 168px; }
  .hero-shots .phone--front { margin-left: -46px; }
  .hero-shots .phone--back { transform: rotate(6deg) translate(24px, 14px); }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .hero-shots .phone { width: 148px; }
  .hero-shots .phone--front { margin-left: -40px; }
}

/* ---------- Feature card micro-interactions ---------- */

.feature {
  transition: transform 0.22s ease, background 0.22s ease;
  cursor: default;
}
.feature:hover, .feature:focus-within {
  background: #141c1b;
  transform: translateY(-3px);
}
.feature:active { transform: translateY(-1px); }

.feature-icon { transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.22s ease; }
.feature:hover .feature-icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(33, 230, 193, 0.2);
}

/* ---------- Interactive timer demo ---------- */

.demo-wrap { display: flex; flex-direction: column; align-items: center; }

.timer-demo-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 22px 20px;
}

.timer-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.timer-demo-head .who { display: flex; flex-direction: column; gap: 2px; }
.timer-demo-head .who .name { font-weight: 700; font-size: 15.5px; color: var(--text); }
.timer-demo-head .who .cat { font-size: 12.5px; color: var(--text-faint); }

.timer-demo-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(33, 230, 193, 0.12);
  transition: color 0.3s ease, background 0.3s ease;
}

.timer-ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 4px auto 14px;
}

.timer-ring-wrap > svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.timer-ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 11; }
.timer-ring-progress {
  fill: none;
  stroke: var(--teal);
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(.4,0,.2,1), stroke 0.3s ease;
}

.timer-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: color 0.3s ease;
}
.timer-ring-center svg { width: 40px; height: 40px; }

.timer-demo-time {
  text-align: center;
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--teal);
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.timer-demo-status {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  min-height: 18px;
  transition: color 0.3s ease;
}

.timer-demo-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.timer-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.timer-btn svg { width: 17px; height: 17px; }
.timer-btn:active { transform: scale(0.92); }

.timer-btn--pause { background: rgba(255,255,255,0.08); color: var(--text); }
.timer-btn--pause:hover { background: rgba(255,255,255,0.14); }

.timer-btn--restart { background: rgba(33, 230, 193, 0.12); color: var(--teal); }
.timer-btn--restart:hover { background: rgba(33, 230, 193, 0.2); }
.timer-btn--restart.pulse { animation: restartPulse 0.32s ease; }

.timer-btn--stop { background: rgba(255, 90, 90, 0.12); color: #ff5a5a; }
.timer-btn--stop:hover { background: rgba(255, 90, 90, 0.2); }

@keyframes restartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.timer-btn--restart.pulse svg { animation: spinOnce 0.4s ease; }

.demo-caption {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 18px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Multi-card timer demo (Head / Core) ---------- */

.timer-ring-center svg {
  width: 40px;
  height: 40px;
  transform: none;
}

.timer-demo-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  align-items: start;
}

.timer-demo-group .timer-demo-card { max-width: none; width: 100%; }

.pg-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.pg-label svg { width: 12px; height: 12px; }

.timer-demo-allrow {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 680px;
  margin: 18px auto 0;
}

.all-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.all-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.all-btn:active { transform: scale(0.96); }

.all-btn--pause { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.all-btn--pause:hover { background: rgba(255, 255, 255, 0.14); }

.all-btn--restart { background: rgba(33, 230, 193, 0.12); color: var(--teal); }
.all-btn--restart:hover { background: rgba(33, 230, 193, 0.2); }

.all-btn--stop { background: rgba(255, 90, 90, 0.12); color: #ff5a5a; }
.all-btn--stop:hover { background: rgba(255, 90, 90, 0.2); }

@media (max-width: 640px) {
  .timer-demo-group { grid-template-columns: 1fr; max-width: 340px; }
  .timer-demo-allrow { max-width: 340px; flex-wrap: wrap; }
  .all-btn { min-width: 45%; }
}
