:root {
  --fella-background: #f4f5f8;
  --fella-card: #ffffff;
  --fella-secondary-fill: #eceef2;
  --fella-separator: #d1d5db;
  --fella-accent: #0055d4;
  --fella-primary-text: #0f1117;
  --fella-secondary-text: #6b7280;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fella-background);
  color: var(--fella-primary-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  color: var(--fella-accent);
}

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

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 245, 248, 0.92);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--fella-primary-text);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
}

.brand span {
  transform: translateY(0.5px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--fella-secondary-text);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  color: var(--fella-primary-text);
  background: var(--fella-secondary-fill);
}

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 var(--space-md);
  color: var(--fella-secondary-text);
  font-size: 15px;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-md);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: var(--space-sm);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--fella-secondary-text);
  font-size: 19px;
  line-height: 1.42;
}

.button-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button-primary {
  color: #ffffff;
  background: #242833;
}

.button-secondary {
  color: var(--fella-primary-text);
  background: #e3e6eb;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--fella-primary-text);
}

.button-secondary:hover {
  color: var(--fella-primary-text);
  background: #d8dce3;
}

.trust-line {
  max-width: 520px;
  margin-top: 14px;
  color: var(--fella-secondary-text);
  font-size: 13px;
  line-height: 1.38;
}

.phone-stage {
  justify-self: center;
  width: min(100%, 380px);
}

.phone {
  width: 100%;
  padding: 12px;
  background: #0f1117;
  border-radius: 48px;
}

.phone-animated {
  animation: phoneSway 6s ease-in-out infinite;
}

.phone-screen {
  overflow: hidden;
  background: var(--fella-card);
  border-radius: 38px;
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.phone-animated .phone-screen {
  aspect-ratio: 390 / 844;
  background: var(--fella-background);
}

.mock-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--fella-background);
}

.mock-app::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 85, 212, 0), rgba(0, 85, 212, 0.18) 58%, rgba(0, 85, 212, 0.42));
}

.mock-status {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 6px 18px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--fella-primary-text);
  z-index: 2;
}

.mock-island {
  width: 86px;
  height: 26px;
  border-radius: 999px;
  background: #000000;
}

.mock-status-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mock-status-icons span:first-child,
.mock-status-icons span:nth-child(2) {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.36);
}

.mock-status-icons span:nth-child(2) {
  width: 14px;
  height: 9px;
  border: 2px solid var(--fella-primary-text);
  border-radius: 3px;
  background: transparent;
}

.mock-status-icons span:last-child {
  display: block;
  width: 22px;
  height: 10px;
  border: 2px solid var(--fella-primary-text);
  border-radius: 4px;
  box-shadow: inset 14px 0 0 var(--fella-primary-text);
}

.mock-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 18px;
  z-index: 2;
}

.mock-home-title,
.mock-section-title {
  transition: opacity 700ms ease, transform 700ms ease;
}

.mock-home-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
}

.mock-home-title img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.mock-section-title {
  display: grid;
  gap: 2px;
  position: absolute;
  left: 18px;
  top: -2px;
  opacity: 0;
  transform: translateY(6px);
}

.mock-section-title strong {
  grid-area: 1 / 1;
  font-size: 22px;
  line-height: 1.1;
}

.mock-section-title small {
  grid-area: 2 / 1;
  color: var(--fella-secondary-text);
  font-size: 11px;
  font-weight: 600;
}

.mock-apps-title,
.mock-timer-title {
  opacity: 0;
  transition: opacity 700ms ease;
}

.mock-header-spacer {
  width: 20px;
  height: 20px;
}

.mock-pages {
  position: relative;
  flex: 1;
  z-index: 2;
}

.mock-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 14px 0;
  opacity: 0;
  transform: scale(0.985) translateY(8px);
  transition: opacity 850ms ease, transform 850ms ease;
  pointer-events: none;
}

.mock-card {
  background: var(--fella-card);
  border: 1px solid rgba(209, 213, 219, 0.58);
  border-radius: 16px;
}

.mock-focus-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 106px;
  padding: 16px;
}

.mock-ring {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: conic-gradient(var(--fella-accent) var(--ring-angle, 138deg), rgba(0, 85, 212, 0.14) 0);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
  transition: background 280ms linear;
}

.mock-focus-card p,
.mock-blocking-card p {
  margin: 0 0 4px;
  color: var(--fella-secondary-text);
  font-size: 13px;
  font-weight: 700;
}

.mock-focus-card span {
  color: rgba(107, 114, 128, 0.78);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  min-height: 58px;
  background: var(--fella-card);
  border: 1px solid rgba(209, 213, 219, 0.58);
  border-radius: 16px;
}

.mock-stats div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 12px;
  border-right: 1px solid rgba(209, 213, 219, 0.72);
}

.mock-stats div:last-child {
  border-right: 0;
}

.mock-stats small {
  color: var(--fella-secondary-text);
  font-size: 10px;
  font-weight: 700;
}

.mock-stats strong {
  font-size: 13px;
  line-height: 1;
}

.mock-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  color: rgba(107, 114, 128, 0.62);
  font-size: 9px;
  font-weight: 800;
}

.mock-date::before,
.mock-date::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(107, 114, 128, 0.2);
}

.mock-mini-button {
  width: 100%;
  margin-top: auto;
  margin-bottom: 14px;
  min-height: 44px;
  border: 1px solid rgba(209, 213, 219, 0.58);
  border-radius: 14px;
  color: var(--fella-primary-text);
  background: var(--fella-card);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.mock-blocking-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mock-blocking-card strong {
  font-size: 17px;
}

.mock-app-icons {
  display: flex;
  gap: 8px;
}

.mock-app-icons span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--fella-accent);
  background: rgba(0, 85, 212, 0.1);
  font-size: 17px;
  font-weight: 800;
}

.mock-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mock-preset {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid rgba(209, 213, 219, 0.58);
  border-radius: 18px;
  color: var(--fella-card);
  background-color: #0f1117;
  background-position: center;
  background-size: cover;
}

.mock-preset::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.05), rgba(15, 17, 23, 0.76));
}

.mock-preset-social {
  background-image: url("/assets/preset-social.jpg");
}

.mock-preset-focus {
  background-image: url("/assets/preset-focus.jpg");
}

.mock-preset-timer90 {
  background-image: url("/assets/timer-90.jpg");
}

.mock-preset-timer4h {
  background-image: url("/assets/timer-4h.jpg");
}

.mock-preset span,
.mock-preset small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
}

.mock-preset strong {
  position: relative;
  z-index: 1;
  margin: 4px 0 2px;
  font-size: 14px;
  line-height: 1.1;
}

.mock-timer-card {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px 16px;
  background: linear-gradient(180deg, var(--fella-card), rgba(0, 85, 212, 0.13));
}

.mock-timer-card > strong {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 48px;
  line-height: 1;
}

.mock-timer-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mock-timer-controls span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--fella-secondary-fill);
  font-size: 20px;
  font-weight: 700;
}

.mock-timer-controls b {
  min-width: 54px;
  text-align: center;
  font-size: 15px;
}

.mock-tabbar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 24px 28px;
  padding: 6px;
  border: 1px solid rgba(209, 213, 219, 0.64);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.mock-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 42px;
  border-radius: 999px;
  color: var(--fella-secondary-text);
  transition: color 600ms ease, background-color 600ms ease;
}

.mock-tabbar b {
  height: 15px;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.mock-tabbar small {
  color: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.phone-animated[data-page="home"] .mock-home-page,
.phone-animated[data-page="apps"] .mock-apps-page,
.phone-animated[data-page="timer"] .mock-timer-page {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.phone-animated[data-page="home"] .mock-home-title {
  opacity: 1;
  transform: translateY(0);
}

.phone-animated:not([data-page="home"]) .mock-home-title {
  opacity: 0;
  transform: translateY(-6px);
}

.phone-animated:not([data-page="home"]) .mock-section-title {
  opacity: 1;
  transform: translateY(0);
}

.phone-animated[data-page="apps"] .mock-apps-title,
.phone-animated[data-page="timer"] .mock-timer-title {
  opacity: 1;
}

.phone-animated[data-page="apps"] [data-tab="apps"],
.phone-animated[data-page="home"] [data-tab="home"],
.phone-animated[data-page="timer"] [data-tab="timer"] {
  color: var(--fella-accent);
  background: var(--fella-secondary-fill);
}

@keyframes phoneSway {
  0%,
  100% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.section {
  padding: 64px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-header p,
.text-page p,
.text-page li {
  color: var(--fella-secondary-text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--fella-card);
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-md);
  color: var(--fella-accent);
  background: rgba(0, 85, 212, 0.08);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.step {
  min-height: 160px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-md);
  color: #ffffff;
  background: var(--fella-primary-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.cta-band {
  padding: var(--space-xl);
  background: var(--fella-card);
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cta-band p {
  margin-bottom: 0;
  color: var(--fella-secondary-text);
}

.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(209, 213, 219, 0.72);
  color: var(--fella-secondary-text);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.text-page {
  padding: 64px 0;
}

.text-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--fella-card);
  border: 1px solid rgba(209, 213, 219, 0.72);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.text-card h1 {
  margin-bottom: var(--space-md);
  font-size: 44px;
}

.text-card h2 {
  margin-top: var(--space-xl);
  font-size: 24px;
}

.text-card ul {
  padding-left: 22px;
}

.muted {
  color: var(--fella-secondary-text);
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 32px, 680px);
  }

  .nav-inner {
    min-height: 58px;
  }

  .nav-links {
    gap: var(--space-md);
    font-size: 14px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-grid,
  .feature-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: var(--space-xl);
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 19px;
  }

  .phone-stage {
    width: min(100%, 320px);
  }

  .cta-band,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .button {
    width: 100%;
  }

  .card,
  .text-card,
  .cta-band {
    padding: var(--space-lg);
  }
}
