:root {
  --bg: #f3f3f6;
  --bg-soft: #fafafa;
  --text: #111111;
  --text-muted: #6b6b73;
  --accent: #ff5a4f;
  --accent-soft: rgba(255, 90, 79, 0.12);
  --app-bg: #1e1e1e;
  --app-card: #282828;
  --app-muted: #8e8e93;
  --app-accent: #ff5a4f;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
  --shadow-sm: 0 8px 32px rgba(17, 17, 17, 0.08);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 90, 79, 0.08), transparent),
    linear-gradient(180deg, #f8f8fa 0%, var(--bg) 40%, #ececf0 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Nav ——— */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    padding 0.3s ease;
}

.nav-shell.is-scrolled {
  padding: 10px 24px;
  background: rgba(250, 250, 252, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.main {
  padding-top: 80px;
}

.nav-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-text span,
.screen-header--logo span span {
  color: var(--accent);
}

.hero-logo {
  display: block;
  width: clamp(88px, 18vw, 120px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(255, 90, 79, 0.2));
}

.nav-links {
  display: none;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ——— Hero ——— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 24px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title-accent {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.hero-subtitle {
  max-width: 520px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.platform-icon svg {
  width: 20px;
  height: 20px;
}

.platform-icon--sync {
  color: var(--accent);
}

/* ——— Devices ——— */
.devices {
  position: relative;
  padding: 16px 20px 80px;
  overflow: hidden;
}

.devices-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  min-height: 380px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.device {
  flex-shrink: 0;
  animation: float 6s ease-in-out infinite;
}

.device--phone {
  animation-delay: -1s;
  z-index: 3;
}

.device--watch {
  animation-delay: -2.5s;
  z-index: 2;
  margin-bottom: 40px;
}

.device--laptop {
  animation-delay: -0.5s;
  z-index: 4;
}

.device--tablet {
  animation-delay: -3.5s;
  z-index: 1;
  margin-bottom: 20px;
}

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

.device-bezel {
  background: linear-gradient(145deg, #2a2a2e, #0d0d0f);
  box-shadow: var(--shadow);
}

.device-bezel--phone {
  padding: 10px;
  border-radius: 32px;
}

.device-bezel--watch {
  padding: 8px;
  border-radius: 28px;
}

.device-bezel--laptop {
  padding: 10px 10px 0;
  border-radius: 14px 14px 0 0;
}

.device-bezel--tablet {
  padding: 12px;
  border-radius: 20px;
}

.device-base {
  height: 8px;
  margin: 0 12%;
  background: linear-gradient(180deg, #c8c8cc, #a8a8ae);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-sm);
}

.screen {
  background: var(--app-bg);
  color: #fff;
  overflow: hidden;
}

.screen--phone {
  width: clamp(120px, 18vw, 168px);
  padding: 16px 12px 20px;
  border-radius: 24px;
  text-align: center;
}

.screen--watch {
  width: clamp(72px, 10vw, 96px);
  padding: 14px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen--laptop {
  width: clamp(220px, 32vw, 320px);
  border-radius: 6px 6px 0 0;
}

.screen--tablet {
  width: clamp(160px, 22vw, 220px);
  padding: 14px;
  border-radius: 10px;
}

.screen-header {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.screen-header--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.screen-header--logo img {
  display: block;
  object-fit: contain;
}

.screen--tablet .screen-header {
  font-size: 0.65rem;
  color: var(--app-muted);
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
}

.screen-task {
  margin: 8px 0 12px;
  font-size: 0.65rem;
  color: var(--app-muted);
}

.screen-btn {
  display: inline-block;
  padding: 8px 24px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--app-accent);
  border-radius: 12px;
}

/* Timer ring */
.timer-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timer-ring svg {
  width: 100%;
  height: auto;
  display: block;
}

.timer-ring--sm {
  width: 64px;
}

.timer-ring--md {
  width: 90px;
}

.screen--phone .timer-ring {
  width: 100px;
}

.ring-track {
  fill: none;
  stroke: #3a3a3c;
  stroke-width: 6;
}

.ring-progress {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 220;
  stroke-dashoffset: 55;
}

.timer-ring--sm .ring-track,
.timer-ring--sm .ring-progress {
  stroke-width: 5;
}

.timer-ring--sm .ring-progress {
  stroke-dasharray: 180;
  stroke-dashoffset: 45;
}

.timer-time {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.screen--phone .timer-time {
  font-size: 1.1rem;
}

.laptop-chrome {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #2c2c2e;
}

.laptop-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.laptop-chrome span:first-child {
  background: #ff5f57;
}

.laptop-chrome span:nth-child(2) {
  background: #febc2e;
}

.laptop-chrome span:nth-child(3) {
  background: #28c840;
}

.laptop-body {
  display: flex;
  min-height: 140px;
}

.laptop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  background: #252528;
}

.laptop-sidebar span {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: #444;
}

.laptop-sidebar span.active {
  background: var(--app-accent);
}

.laptop-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.task-list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.55rem;
}

.task-list li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--app-muted);
  border-bottom: 1px solid #2c2c2e;
}

.task-list em {
  font-style: normal;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-card {
  padding: 10px;
  background: var(--app-card);
  border-radius: 10px;
  text-align: left;
}

.stat-label {
  display: block;
  font-size: 0.5rem;
  color: var(--app-muted);
  margin-bottom: 4px;
}

.stat-card strong {
  font-size: 0.75rem;
  font-weight: 600;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 4px;
}

.mini-bars span {
  flex: 1;
  height: var(--h, 50%);
  background: var(--app-accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

/* Sync badge */
.sync-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: -24px;
}

.sync-lines {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 100px;
  background:
    radial-gradient(ellipse 50% 40% at 20% 100%, transparent 48%, rgba(255, 90, 79, 0.15) 49%, transparent 51%),
    radial-gradient(ellipse 50% 40% at 50% 100%, transparent 48%, rgba(255, 90, 79, 0.15) 49%, transparent 51%),
    radial-gradient(ellipse 50% 40% at 80% 100%, transparent 48%, rgba(255, 90, 79, 0.15) 49%, transparent 51%);
  pointer-events: none;
}

.sync-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.sync-icon svg {
  width: 24px;
  height: 24px;
}

.sync-badge p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ——— Features ——— */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 28px;
}

.features-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.features-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.features-intro p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

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

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-num {
  display: block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ——— CTA ——— */
.cta {
  padding: 0 28px 100px;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 40px;
  text-align: center;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-inner > p {
  margin: 0 0 32px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--text);
  background: #fff;
}

.btn-secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ——— Footer ——— */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 28px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ——— Mobile device layout ——— */
@media (max-width: 720px) {
  .devices-stage {
    flex-wrap: wrap;
    min-height: auto;
    padding-bottom: 24px;
  }

  .device--laptop,
  .device--tablet {
    display: none;
  }

  .device--watch {
    margin-bottom: 0;
  }
}
