:root {
  color-scheme: light;
  --bg: #f8fbff;
  --bg-2: #eef5ff;
  --surface: #ffffff;
  --surface-2: #edf3ff;
  --surface-3: #dde8ff;
  --text: #0b1527;
  --muted: #3a5170;
  --soft: #7a97b5;
  --border: rgba(9, 28, 57, 0.12);
  --border-strong: rgba(9, 28, 57, 0.2);
  --blue: #2563eb;
  --cyan: #22d3ee;
  --green: #10b981;
  --gold: #f59e0b;
  --pink: #ec4899;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(31, 72, 133, 0.18);
  --shadow-soft: 0 14px 34px rgba(31, 72, 133, 0.12);
  --radius: 8px;
  --header-height: 76px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-2: #0c1929;
  --surface: #0c1929;
  --surface-2: #122133;
  --surface-3: #19293d;
  --text: #edf2ff;
  --muted: #8ba3c2;
  --soft: #4f6782;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 700px);
  z-index: -1;
}

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

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--blue);
  color: #fff;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  min-height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand-word {
  color: var(--text);
  letter-spacing: 0;
}

.brand-word span {
  color: var(--cyan);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.store-mini,
.button,
.filter-btn,
.screen-tab {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 132px;
  padding: 3px;
  background: var(--surface-2);
  color: var(--muted);
}

.theme-toggle span {
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="light"] .theme-toggle__light,
html[data-theme="dark"] .theme-toggle__dark {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.store-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.login-mini {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--cyan);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.45));
}

.play-mark.large {
  border-top-width: 18px;
  border-bottom-width: 18px;
  border-left-width: 30px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 132px 0 80px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--bg) 96%, var(--blue)) 0%, color-mix(in srgb, var(--bg-2) 78%, var(--cyan)) 56%, color-mix(in srgb, var(--surface-2) 74%, var(--blue)) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 680px;
  margin-left: max(20px, calc((100vw - 1180px) / 2));
}

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 850;
}

.button:hover,
.button:focus-visible,
.store-mini:hover,
.login-mini:hover,
.login-mini:focus-visible,
.store-mini:focus-visible,
.filter-btn:hover,
.screen-tab:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.hero-proof span {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-media {
  position: absolute;
  z-index: 1;
  top: 105px;
  right: max(28px, calc((100vw - 1180px) / 2));
  width: 600px;
  height: 640px;
}

.phone {
  position: relative;
  border: 10px solid #08111d;
  border-radius: 34px;
  background: #08111d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-main {
  width: 322px;
  height: 638px;
  margin-left: 180px;
  animation: floatMain 6s ease-in-out infinite;
}

.phone-side {
  position: absolute;
  width: 220px;
  height: 438px;
  opacity: 0.92;
}

.phone-side-a {
  left: 10px;
  top: 62px;
  transform: rotate(-8deg);
  animation: floatSideA 7s ease-in-out infinite;
}

.phone-side-b {
  right: 0;
  bottom: 36px;
  transform: rotate(7deg);
  animation: floatSideB 7.4s ease-in-out infinite;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #040910;
}

.app-screen {
  height: 100%;
  padding: 48px 14px 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22), transparent 220px), #f4f8ff;
  color: #0b1527;
}

html[data-theme="dark"] .app-screen {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.24), transparent 220px), #07111f;
  color: #edf2ff;
}

.app-top,
.live-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.app-top small,
.live-header small,
.screen-label {
  display: block;
  color: #6b7f9d;
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="dark"] .app-top small,
html[data-theme="dark"] .live-header small,
html[data-theme="dark"] .screen-label {
  color: #8ba3c2;
}

.app-top strong,
.live-header strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.notification-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.hero-stats span,
.focus-card,
.mini-goal,
.habit-line,
.partner-score,
.live-metrics span,
.live-list li,
.store-card,
.tech-list div,
.feature-card,
.template-grid article,
.update-card {
  border: 1px solid rgba(9, 28, 57, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .hero-stats span,
html[data-theme="dark"] .focus-card,
html[data-theme="dark"] .mini-goal,
html[data-theme="dark"] .habit-line,
html[data-theme="dark"] .partner-score,
html[data-theme="dark"] .live-metrics span,
html[data-theme="dark"] .live-list li {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.hero-stats span {
  padding: 10px 8px;
  color: #6b7f9d;
  font-size: 10px;
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  color: #0b1527;
  font-size: 20px;
}

html[data-theme="dark"] .hero-stats strong {
  color: #edf2ff;
}

.focus-card {
  padding: 14px;
  margin-bottom: 10px;
}

.focus-card small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card strong {
  display: block;
  margin: 5px 0 10px;
}

.progress {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(122, 151, 181, 0.24);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.mini-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.mini-goal strong {
  display: block;
  font-size: 13px;
}

.mini-goal small {
  display: block;
  margin-top: 2px;
  color: #6b7f9d;
  font-size: 11px;
  font-weight: 700;
}

.mini-icon,
.feature-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--radius);
}

.mini-icon.blue,
.feature-mark.blue {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.mini-icon.green,
.feature-mark.green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-mark.gold {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.feature-mark.pink {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.32);
}

.feature-mark.cyan {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.32);
}

.feature-mark.red {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tabbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(8, 17, 29, 0.84);
}

.tabbar span {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.tabbar span.active {
  background: var(--cyan);
}

.app-screen.compact {
  padding-top: 50px;
}

.habit-ring {
  width: 104px;
  height: 104px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(16, 185, 129, 0.18);
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 26px;
  font-weight: 950;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}

.week-row span {
  height: 10px;
  border-radius: 99px;
  background: rgba(122, 151, 181, 0.22);
}

.week-row span.on {
  background: var(--green);
}

.habit-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.habit-line b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}

.habit-line.muted {
  opacity: 0.55;
}

.partner-preview {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.16), transparent 190px), #f4f8ff;
}

html[data-theme="dark"] .partner-preview {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.16), transparent 190px), #07111f;
}

.partner-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px 10px;
  margin: 18px 0;
  text-align: center;
}

.partner-score span {
  color: #6b7f9d;
  font-size: 11px;
  font-weight: 800;
}

.partner-score strong {
  color: var(--blue);
  font-size: 24px;
}

.chat-row {
  height: 34px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.18);
}

.chat-row.them {
  width: 82%;
  margin-left: auto;
  background: rgba(236, 72, 153, 0.18);
}

.chat-row.short {
  width: 62%;
}

.signal-strip {
  position: relative;
  z-index: 3;
  padding: 22px 0;
  background: var(--bg);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.signal-grid div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.signal-grid strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.signal-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 86px 0;
  background: var(--bg);
}

.section-muted {
  background: var(--bg-2);
}

.showcase-grid,
.tech-grid,
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.tech-panel p,
.download-section p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.screen-tab {
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.screen-tab.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.interactive-phone {
  display: grid;
  place-items: center;
}

.browser-phone {
  width: 342px;
  height: 660px;
}

.app-screen-live {
  padding: 54px 16px 16px;
}

.live-description {
  margin: 0 0 16px;
  color: #5b6e88;
  line-height: 1.45;
  font-size: 14px;
}

html[data-theme="dark"] .live-description {
  color: #8ba3c2;
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.live-metrics span {
  padding: 10px 8px;
  color: #6b7f9d;
  font-size: 10px;
  font-weight: 800;
}

.live-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
}

.live-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.live-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
}

.live-list i {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.16);
}

.live-list strong {
  display: block;
  font-size: 13px;
}

.live-list small {
  color: #6b7f9d;
  font-size: 11px;
  font-weight: 700;
}

.live-list em {
  color: var(--blue);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading.with-actions {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  min-height: 230px;
  padding: 20px;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin-top: 18px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
}

.tech-section {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.tech-panel {
  padding-right: 12px;
}

.tech-flow {
  display: grid;
  grid-template-columns: auto 34px auto 34px auto 34px auto;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
}

.tech-flow span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
}

.tech-flow i {
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.tech-list {
  display: grid;
  gap: 10px;
}

.tech-list div {
  padding: 18px;
  background: var(--surface);
  border-color: var(--border);
}

.tech-list strong {
  display: block;
  margin-bottom: 4px;
}

.tech-list span {
  color: var(--muted);
  line-height: 1.45;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.template-grid article {
  min-height: 210px;
  padding: 18px;
  background: var(--surface);
  border-color: var(--border);
}

.template-grid span,
.update-card time {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-grid strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.template-grid p,
.update-card p {
  color: var(--muted);
  line-height: 1.55;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 0 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.update-card {
  min-height: 230px;
  padding: 20px;
  background: var(--surface);
  border-color: var(--border);
}

.update-card.is-hidden {
  display: none;
}

.download-section {
  background: var(--text);
  color: var(--bg);
}

.download-section .eyebrow,
.download-section p {
  color: color-mix(in srgb, var(--bg) 68%, var(--cyan));
}

.store-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: color-mix(in srgb, var(--bg) 8%, var(--surface));
  color: var(--text);
  border-color: color-mix(in srgb, var(--bg) 18%, transparent);
  box-shadow: none;
}

.store-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.store-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.site-footer {
  padding: 54px 0 24px;
  background: #07111f;
  color: #edf2ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 28px;
}

.footer-logo {
  width: 150px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #8ba3c2;
}

.site-footer strong,
.site-footer a {
  display: block;
}

.site-footer strong {
  margin-bottom: 10px;
}

.site-footer a {
  padding: 5px 0;
}

.copyright {
  width: min(1180px, calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes floatSideA {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(12px); }
}

@keyframes floatSideB {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-10px); }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 160px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: min(620px, calc(100% - 40px));
    height: 560px;
    margin: 48px auto 0;
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .showcase-grid,
  .tech-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .updates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .template-grid,
  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .wrap,
  .hero-content,
  .copyright {
    width: min(1180px, calc(100% - 40px));
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .brand-link .brand-word {
    font-size: 18px;
  }

  .brand-link {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 2;
  }

  .header-actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    justify-self: start;
    min-width: 0;
    width: 100%;
  }

  .theme-toggle {
    width: 132px;
  }

  .store-mini {
    display: none;
  }

  .login-mini {
    display: inline-flex;
  }

  .hero {
    padding-top: 214px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-copy {
    font-size: 17px;
    max-width: 340px;
  }

  .hero-actions {
    max-width: 340px;
  }

  .hero-media {
    height: 520px;
  }

  .phone-main {
    width: 280px;
    height: 560px;
    margin-left: auto;
  }

  .phone-side {
    width: 178px;
    height: 354px;
  }

  .phone-side-a {
    left: 0;
    top: 74px;
  }

  .phone-side-b {
    right: 4px;
    bottom: 18px;
  }

  .signal-grid,
  .feature-grid,
  .template-grid,
  .updates-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading.with-actions {
    display: block;
  }

  .filter-row {
    margin-top: 18px;
  }

  .browser-phone {
    width: min(342px, 100%);
  }

  .tech-flow {
    grid-template-columns: 1fr;
  }

  .tech-flow i {
    width: 2px;
    height: 22px;
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-top: 214px;
  }

  .site-nav a {
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-media {
    height: 458px;
  }

  .phone-main {
    width: 244px;
    height: 500px;
  }

  .phone-side {
    opacity: 0.72;
  }

  .phone-side-a {
    transform: rotate(-7deg) scale(0.86);
    transform-origin: top left;
  }

  .phone-side-b {
    transform: rotate(7deg) scale(0.82);
    transform-origin: bottom right;
  }

  .hero-stats strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
