:root {
  --bg: #070A12;
  --surface: #0F1424;
  --elevated: #141B2E;
  --soft: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #F5F7FB;
  --secondary: #AAB3C5;
  --muted: #6F7A91;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --green: #34D399;
  --amber: #FBBF24;
  --danger: #FB7185;
  --radius-lg: 28px;
  --radius-md: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 10% 2%, rgba(139, 92, 246, 0.22), transparent 31rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.page-glow {
  position: fixed;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.26;
  z-index: -1;
}

.page-glow-one {
  width: 420px;
  height: 420px;
  background: var(--violet);
  top: 14%;
  right: -160px;
}

.page-glow-two {
  width: 340px;
  height: 340px;
  background: var(--cyan);
  bottom: 10%;
  left: -120px;
}

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

.section-pad {
  padding: 96px 0;
}

section[id],
main[id] {
  scroll-margin-top: 110px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.86), rgba(7, 10, 18, 0.58));
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 20, 36, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.brand,
.nav-actions,
.nav-links,
.proof-row,
.hero-actions,
.mock-topbar,
.mock-title-line,
.chip-row,
.app-topbar,
.footer-row,
.tech-pills {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  gap: 22px;
  color: var(--secondary);
  font-size: 14px;
}

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

.nav-actions {
  gap: 10px;
}

.hamburger-button,
.mobile-drawer,
.drawer-backdrop {
  display: none;
}

.concept-pill,
.status-badge,
.mini-chip,
.build-status,
.mock-label,
.active-sprint {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary);
  border-radius: 999px;
  white-space: nowrap;
}

.concept-pill {
  padding: 8px 12px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  min-height: 48px;
  padding: 0 22px;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.new-task:hover,
.phone-mock button:hover {
  transform: translateY(-1px);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.94), rgba(34, 211, 238, 0.92));
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #22D3EE);
  color: #FFFFFF;
  box-shadow: 0 14px 42px rgba(34, 211, 238, 0.16);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(580px, 1.14fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.mock-kicker,
.card-label,
.app-topbar p,
.phone-label {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.145em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  max-width: 100%;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.048em;
  text-wrap: balance; /* Gracefully degrades to normal wrapping in older browsers. */
  overflow-wrap: normal;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FB 48%, #B9C3D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 52px rgba(34, 211, 238, 0.08);
}

.hero-title {
  font-size: clamp(3.55rem, 6.15vw, 4.65rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
}

.section-title {
  font-size: clamp(2.35rem, 4.1vw, 3.45rem);
  line-height: 0.98;
}

.cta-title {
  font-size: clamp(2.4rem, 4.2vw, 3.55rem);
  line-height: 0.98;
}

.section-heading h2:not(.display-title),
.build-card h2,
.privacy-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 600px;
  color: var(--secondary);
  font-size: 18px;
}

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

.proof-row {
  margin-top: 28px;
  gap: 10px;
  flex-wrap: wrap;
}

.proof-row span {
  padding: 8px 12px;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 650;
}

.hero-mock-wrap {
  position: relative;
  perspective: 1400px;
}

.mock-orbit {
  position: absolute;
  inset: 9% -4% -9% 8%;
  background:
    radial-gradient(circle at 65% 25%, rgba(34, 211, 238, 0.34), transparent 30%),
    radial-gradient(circle at 22% 55%, rgba(139, 92, 246, 0.30), transparent 36%);
  filter: blur(28px);
}

.hero-mockup,
.workspace-shell,
.build-card,
.privacy-card,
.cta-panel {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-mockup {
  position: relative;
  min-height: 612px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 27, 46, 0.96), rgba(9, 13, 25, 0.94));
  transform: rotateX(4deg) rotateY(-6deg);
}

.mock-topbar {
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.mock-topbar h2,
.mock-main h3,
.mock-notes h3,
.feature-card h3,
.dash-card h3,
.insight-panel h3,
.phone-mock h3,
.timeline h3,
.capability-grid h3,
.build-card h2,
.privacy-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.mock-topbar h2 {
  font-size: 22px;
}

.mock-people {
  display: flex;
  margin-left: auto;
}

.mock-people span {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid #101625;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.mock-people span:nth-child(2) {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.mock-people span:nth-child(3) {
  background: linear-gradient(135deg, var(--amber), var(--violet));
}

.status-badge,
.mini-chip,
.build-status,
.mock-label,
.active-sprint {
  padding: 7px 10px;
  font-size: 12px;
}

.mock-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.tab-button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 13px;
}

.tab-button.active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.36);
  background: rgba(34, 211, 238, 0.12);
}

.mock-body {
  display: grid;
  grid-template-columns: 112px 1fr 170px;
  gap: 16px;
}

.mock-sidebar,
.mock-notes,
.plan-card,
.dash-card,
.insight-panel,
.desktop-preview,
.phone-mock,
.timeline article,
.capability-grid article,
.feature-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
}

.mock-sidebar span {
  padding: 8px 9px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}

.mock-sidebar .active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.18);
}

.mock-main {
  min-width: 0;
}

.mock-title-line {
  justify-content: space-between;
  margin-bottom: 12px;
}

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

.plan-card {
  min-height: 122px;
  padding: 14px;
  border-radius: 18px;
}

.plan-card strong {
  display: block;
  margin: 6px 0 4px;
}

.plan-card p,
.mock-notes li,
.feature-card p,
.dash-card p,
.timeline p,
.capability-grid p,
.build-card p,
.privacy-card p,
.cta-panel p,
.section-heading p {
  color: var(--secondary);
}

.plan-card p {
  margin: 0 0 10px;
  font-size: 12px;
}

.plan-card.is-muted {
  opacity: 0.46;
}

.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.violet { background: var(--violet); }
.cyan { background: var(--cyan); }
.green { background: var(--green); }
.amber { background: var(--amber); }

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

.chip-row {
  gap: 5px;
  flex-wrap: wrap;
}

.chip-row span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--secondary);
  font-size: 10px;
}

.mock-notes {
  padding: 14px;
  border-radius: 18px;
}

.mock-notes ul,
.check-list,
.queue-list,
.insight-panel ul {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.mock-notes li,
.insight-panel li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 10px;
  font-size: 12px;
}

.mock-notes li::before,
.insight-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  margin: 14px 0 0;
  font-size: 17px;
}

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

.feature-card,
.capability-grid article,
.timeline article {
  border-radius: var(--radius-md);
  padding: 24px;
}

.feature-card {
  min-height: 206px;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.feature-card span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.workspace-section {
  padding-top: 72px;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 188px 1fr;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(15, 20, 36, 0.98), rgba(8, 12, 23, 0.96));
}

.app-sidebar {
  padding: 22px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
}

.pf-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-weight: 860;
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
}

.app-sidebar a {
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--secondary);
  font-size: 14px;
}

.app-sidebar a.active,
.app-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.app-content {
  min-width: 0;
}

.app-topbar {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.app-topbar p {
  margin-bottom: 2px;
}

.app-topbar h3 {
  margin: 0;
}

.search-box {
  min-width: min(320px, 100%);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--muted);
}

.new-task,
.phone-mock button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: #FFFFFF;
  cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  font-weight: 760;
}

.new-task {
  padding: 0 16px;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 18px;
  padding: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.dash-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 18px;
  border-radius: 20px;
}

.focus-card {
  grid-column: span 3;
}

.dashboard-grid .dash-card:nth-child(2) {
  grid-column: span 3;
}

.dashboard-grid .dash-card:nth-child(n+3) {
  grid-column: span 2;
}

.accent-violet::before { background: var(--violet); }
.accent-cyan::before { background: var(--cyan); }
.accent-green::before { background: var(--green); }
.accent-amber::before { background: var(--amber); }

.card-label {
  display: block;
  margin-bottom: 10px;
}

.active-sprint {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.09);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.health-grid div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.health-grid small {
  display: block;
  color: var(--muted);
}

.health-grid strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.risk {
  color: var(--danger) !important;
}

.tiny-note {
  margin: 9px 0 0;
  font-size: 12px;
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-chips span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

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

.screen-grid div {
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.screen-grid span {
  display: block;
  height: 48px;
  margin-bottom: 7px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.20) 18%, transparent 18% 24%, rgba(34, 211, 238, 0.28) 24% 68%, transparent 68%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(34, 211, 238, 0.12));
}

.screen-grid small {
  color: var(--secondary);
}

.check-list li,
.queue-list li {
  position: relative;
  padding-left: 22px;
  margin: 9px 0;
  color: var(--secondary);
  font-size: 14px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.queue-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.insight-panel {
  padding: 18px;
  border-radius: 22px;
}

.shield-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.11);
}

.insight-progress {
  margin-top: 22px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.insight-progress span,
.insight-progress strong {
  display: block;
}

.insight-progress span {
  color: var(--muted);
  font-size: 12px;
}

.insight-progress strong {
  margin: 4px 0 10px;
}

.device-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 46px;
  align-items: center;
}

.device-stage {
  position: relative;
  min-height: 480px;
}

.desktop-preview {
  width: 84%;
  min-height: 356px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20, 27, 46, 0.94), rgba(15, 20, 36, 0.72));
  box-shadow: var(--shadow);
}

.preview-bar {
  display: flex;
  gap: 7px;
  padding-bottom: 18px;
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.preview-columns {
  display: grid;
  grid-template-columns: 0.48fr 1.2fr 0.62fr;
  gap: 14px;
  min-height: 292px;
}

.preview-columns > div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.preview-columns > div:nth-child(2) {
  display: grid;
  grid-template-rows: 0.75fr 1fr 0.85fr;
  gap: 12px;
  padding: 12px;
}

.preview-columns > div:nth-child(2) span {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.10));
}

.preview-columns > div::after {
  content: "";
}

.phone-mock {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 238px;
  min-height: 410px;
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(20, 27, 46, 0.98), rgba(9, 13, 25, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.phone-speaker {
  width: 56px;
  height: 5px;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
}

.phone-task {
  padding: 12px;
  margin-bottom: 9px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.phone-task.active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.30);
  background: rgba(34, 211, 238, 0.11);
}

.phone-progress {
  margin: 18px 0;
}

.phone-progress span,
.phone-progress strong {
  display: block;
}

.phone-progress span {
  color: var(--muted);
  font-size: 12px;
}

.phone-mock button {
  width: 100%;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.timeline article {
  position: relative;
  min-height: 210px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 820;
}

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

.capability-grid article {
  min-height: 156px;
}

.capability-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.10);
}

.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.build-card,
.privacy-card,
.cta-panel {
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 27, 46, 0.92), rgba(15, 20, 36, 0.76));
}

.build-card,
.privacy-card {
  padding: 34px;
}

.tech-pills {
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tech-pills span {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.lock-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
}

.lock-mark svg {
  width: 100%;
  height: 100%;
}

.strong-line {
  color: var(--text) !important;
  font-weight: 720;
}

.final-cta {
  padding-top: 42px;
}

.cta-panel {
  padding: 54px;
  text-align: center;
}

.cta-panel p {
  max-width: 720px;
  margin: 16px auto 26px;
  font-size: 18px;
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
}

.footer-row {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .device-grid,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .hero-mockup {
    transform: none;
  }

  .workspace-shell,
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-grid .dash-card,
  .focus-card,
  .dashboard-grid .dash-card:nth-child(2),
  .dashboard-grid .dash-card:nth-child(n+3) {
    grid-column: span 3;
  }

  .show-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .container,
  .nav-shell {
    width: min(100% - 28px, 1180px);
  }

  .section-pad {
    padding: 68px 0;
  }

  .nav-shell {
    border-radius: 24px;
    align-items: flex-start;
  }

  .nav-links,
  .concept-pill {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 2.65rem);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-mockup {
    min-height: auto;
    padding: 16px;
    border-radius: 24px;
  }

  .mock-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .plan-grid,
  .show-grid,
  .timeline,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    border-radius: 24px;
  }

  .app-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-topbar {
    align-items: stretch;
  }

  .search-box {
    flex-basis: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .dash-card,
  .focus-card,
  .dashboard-grid .dash-card:nth-child(2),
  .dashboard-grid .dash-card:nth-child(n+3) {
    grid-column: auto;
  }

  .device-stage {
    min-height: 720px;
  }

  .desktop-preview {
    width: 100%;
  }

  .phone-mock {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .build-card,
  .privacy-card,
  .cta-panel {
    padding: 26px;
    border-radius: 24px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body.drawer-open {
    overflow: hidden;
  }

  .site-header {
    position: static;
    padding: 8px 0;
  }

  section[id],
  main[id] {
    scroll-margin-top: 18px;
  }

  .nav-shell {
    min-height: 56px;
    max-height: 64px;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 10px 8px 14px;
    border-radius: 20px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .nav-links,
  .nav-actions,
  .concept-pill {
    display: none;
  }

  .hamburger-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .hamburger-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(4, 7, 13, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .mobile-drawer {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 26;
    width: min(286px, calc(100vw - 28px));
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(15, 20, 36, 0.98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .drawer-open .drawer-backdrop,
  .drawer-open .mobile-drawer {
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-open .mobile-drawer {
    transform: translateY(0) scale(1);
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px 8px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .drawer-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .mobile-drawer a {
    display: block;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.045);
  }

  .mobile-drawer a:last-child {
    color: #FFFFFF;
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    font-weight: 760;
  }

  .timeline article,
  .capability-grid article {
    min-height: 0;
    padding: 18px;
  }

  .timeline span {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    font-size: 13px;
  }

  .timeline h3,
  .capability-grid h3 {
    font-size: 17px;
  }

  .section-title,
  .cta-title {
    font-size: clamp(2rem, 9vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.044em;
  }

  .timeline p,
  .capability-grid p {
    margin-bottom: 0;
    font-size: 14px;
  }

  .capability-grid span {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
  }

  .device-stage {
    min-height: 470px;
  }

  .desktop-preview {
    display: none;
  }

  .phone-mock {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(270px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .final-cta {
    padding-top: 24px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-panel .btn {
    width: 100%;
  }

  .nav-shell {
    flex-wrap: nowrap;
  }

  .mock-people {
    display: none;
  }

  .app-sidebar nav {
    grid-template-columns: 1fr;
  }

  .health-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .desktop-preview {
    min-height: 300px;
  }

  .preview-columns {
    grid-template-columns: 1fr;
  }
}
