:root {
  color-scheme: light;
  --ink: #141716;
  --muted: #68706c;
  --paper: #f7f9f6;
  --surface: #ffffff;
  --soft: #edf3ef;
  --line: rgba(20, 23, 22, 0.12);
  --blue: #2563eb;
  --green: #16845a;
  --gold: #b97916;
  --rose: #bf3d63;
  --dark: #111816;
  --shadow: 0 28px 80px rgba(18, 30, 24, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 246, 0.97)),
    linear-gradient(90deg, rgba(37, 99, 235, 0.09), transparent 38%, rgba(22, 132, 90, 0.08));
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header,
.hero,
.screens-section,
.feature-section,
.tools-section,
.download-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 246, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand img,
.shot-top img,
.download-panel img,
.login-card img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.brand img {
  width: 38px;
  height: 38px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.download-button,
.login-button,
.register-button,
.register-hero-button,
.secondary-button,
.primary-button,
.mac-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-weight: 820;
  cursor: pointer;
}

.download-button,
.primary-button {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 15px 32px rgba(37, 99, 235, 0.24);
}

.login-button,
.secondary-button,
.mac-link {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.register-button,
.register-hero-button {
  background: rgba(22, 132, 90, 0.11);
  border-color: rgba(22, 132, 90, 0.28);
  color: var(--green);
}

.app-store-button {
  display: inline-grid;
  grid-template-columns: auto;
  justify-content: center;
  min-width: 178px;
  min-height: 58px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 8px 18px;
  line-height: 1.05;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.2);
}

.app-store-button span {
  font-size: 0.74rem;
  font-weight: 650;
}

.app-store-button strong {
  font-size: 1.25rem;
  letter-spacing: 0;
}

.download-button:hover,
.login-button:hover,
.register-button:hover,
.register-hero-button:hover,
.secondary-button:hover,
.app-store-button:hover,
.mac-link:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
  min-height: calc(100vh - 72px);
  padding: 62px 0 44px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  font-size: clamp(4.1rem, 8vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text,
.section-heading p,
.feature-list p,
.tool-row p,
.download-panel p,
.screen-card p {
  color: var(--muted);
  line-height: 1.58;
}

.hero-text {
  max-width: 630px;
  margin-top: 24px;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 0.88rem;
  font-weight: 760;
}

.hero-screens {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 620px;
}

.iphone-shot {
  position: relative;
  width: min(350px, 100%);
  min-height: 640px;
  border: 10px solid #131817;
  border-radius: 46px;
  background: var(--paper);
  padding: 28px 18px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.primary-shot {
  z-index: 2;
}

.floating-shot {
  position: absolute;
  right: 0;
  bottom: 8px;
  z-index: 3;
  width: 235px;
  min-height: 440px;
  background: #141b18;
  color: #fff;
  transform: rotate(4deg);
}

.phone-speaker {
  width: 78px;
  height: 7px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: rgba(20, 23, 22, 0.18);
}

.floating-shot .phone-speaker {
  background: rgba(255, 255, 255, 0.22);
}

.shot-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.shot-top img {
  width: 48px;
  height: 48px;
}

.shot-top div {
  display: grid;
  gap: 2px;
}

.shot-top small,
.streak-card small,
.metric-grid small,
.screen small {
  color: var(--muted);
  font-size: 0.82rem;
}

.shot-top strong {
  font-size: 1.55rem;
}

.streak-card,
.quote-card,
.metric-grid span,
.home-row,
.home-quote,
.list-row,
.session-lines span,
.repertoire-row,
.link-chip,
.milestone {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.streak-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.flame {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(185, 121, 22, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.quote-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
}

.quote-card p {
  font-weight: 780;
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.metric-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.metric-grid b {
  font-size: 1.35rem;
}

.timer-circle {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  margin: 28px auto 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #141b18 57%, transparent 59%),
    conic-gradient(var(--green) 0 72%, rgba(255, 255, 255, 0.16) 72% 100%);
  font-size: 1.5rem;
  font-weight: 900;
}

.floating-shot h2 {
  color: #fff;
  font-size: 1.25rem;
  text-align: center;
}

.floating-shot p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.segment-pills {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.segment-pills span {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  padding: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 740;
}

.screens-section,
.feature-section,
.tools-section,
.download-section {
  padding: 78px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading p {
  margin-top: 16px;
  max-width: 690px;
  font-size: 1.06rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.screen-card,
.feature-list article,
.tool-row article,
.download-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.screen-card {
  display: grid;
  gap: 16px;
  padding: 14px;
  box-shadow: none;
}

.screen-card h3 {
  padding: 0 6px;
}

.screen-card p {
  padding: 0 6px 6px;
  font-size: 0.95rem;
}

.screen {
  min-height: 410px;
  border-radius: 28px;
  padding: 18px;
  overflow: hidden;
}

.chrome-light {
  background: var(--paper);
  border: 8px solid #141716;
}

.chrome-dark {
  background: #141b18;
  border: 8px solid #141716;
  color: #fff;
}

.screen-title {
  margin: 4px 0 18px;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.home-row.hot {
  background: rgba(185, 121, 22, 0.12);
}

.home-row span {
  color: var(--gold);
  font-weight: 820;
}

.home-quote {
  margin-top: 10px;
  padding: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.home-stats span {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.list-row {
  margin-top: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.big-timer {
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  margin: 20px auto 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #141b18 56%, transparent 58%),
    conic-gradient(var(--green) 0 78%, rgba(255, 255, 255, 0.15) 78% 100%);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 900;
}

.session-lines {
  display: grid;
  gap: 10px;
}

.session-lines span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  padding: 13px;
}

.session-lines small {
  color: rgba(255, 255, 255, 0.65);
}

.search-bar,
.link-chip,
.milestone {
  color: var(--muted);
  font-weight: 720;
}

.search-bar {
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(20, 23, 22, 0.06);
  padding: 12px;
}

.repertoire-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 13px;
}

.repertoire-row span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.link-chip,
.milestone {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 12px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  height: 230px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(20, 23, 22, 0.055) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(20, 23, 22, 0.03);
  padding: 18px;
}

.bar-chart span {
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-list article,
.tool-row article {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 22px;
  box-shadow: none;
}

.feature-list span {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 900;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #151815;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: #151815;
  color: #fff;
}

.download-panel img {
  width: 78px;
  height: 78px;
}

.download-panel .eyebrow,
.download-panel h2 {
  color: #fff;
}

.download-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.download-panel p {
  max-width: 640px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.download-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.download-panel .mac-link {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-dialog {
  width: min(430px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(21, 24, 21, 0.42);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 14px;
  background: var(--surface);
  padding: 26px;
}

.login-card img {
  width: 52px;
  height: 52px;
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.login-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
}

.login-card input:focus {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 21, 0.04);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.full {
  width: 100%;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-screens {
    min-height: 650px;
  }

  .screenshot-grid,
  .feature-list,
  .tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .screens-section,
  .feature-section,
  .tools-section,
  .download-section {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-actions,
  .download-actions {
    display: grid;
  }

  .app-store-button,
  .login-button,
  .register-button,
  .register-hero-button,
  .secondary-button,
  .download-button,
  .mac-link {
    width: 100%;
  }

  .site-header .login-button,
  .site-header .register-button,
  .site-header .download-button {
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
  }

  .hero-screens {
    min-height: auto;
    gap: 14px;
  }

  .iphone-shot,
  .floating-shot {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(350px, 100%);
    min-height: 540px;
    transform: none;
  }

  .floating-shot {
    min-height: 390px;
  }

  .screenshot-grid,
  .feature-list,
  .tool-row,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .screen {
    min-height: 360px;
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}
