:root {
  --surface-soft: #f4f1fa;
  --surface-strong: #eae3f6;
  --accent: #0d8b7a;
  --accent-soft: #d8f2ee;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.section-kicker,
.tab-label {
  font-family: "Nunito Sans", "Avenir Next", sans-serif;
  color: var(--ink-strong);
}

a {
  color: inherit;
}

.brand-word {
  font-family: "Dongle", "Nunito Sans", "Avenir Next", sans-serif;
}

.nav-links {
  font-family: "Nunito Sans", "Avenir Next", sans-serif;
}

.hero {
  padding: 100px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.hero-copy-wrap {
  text-align: center;
  width: 100%;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
  border: 1px solid #d7ccef;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy {
  margin: 50px 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  margin: 50px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-screenshot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  perspective: 1400px;
  width: 100%;
}

.hero-shot {
  border-radius: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 16px 14px rgba(17, 16, 36, 0.22))
    drop-shadow(0 30px 26px rgba(17, 16, 36, 0.16));
  object-fit: cover;
}

.hero-shot--phone {
  width: clamp(170px, 18vw, 260px);
  position: relative;
  z-index: 1;
}

.hero-shot--tablet {
  width: clamp(460px, 52vw, 760px);
  position: relative;
  z-index: 3;
}

.hero-shot--left {
  transform: translateX(40px) rotateX(11deg) rotateY(22deg) rotateZ(-4deg);
  transform-origin: 72% 50%;
}

.hero-shot--right {
  transform: translateX(-40px) rotateX(11deg) rotateY(-22deg) rotateZ(4deg);
  transform-origin: 28% 50%;
}

.secondary-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 40px;
  margin-top: 100px;
  text-align: center;
}

.hero h2,
.section-head h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.principles-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.principle-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, #ffffff 0%, #f7f4fd 100%);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--brand-soft), #ffffff);
  color: var(--brand);
  border: 1px solid #ddd2f2;
}

.principle-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.principle-card h3 {
  margin: 16px 0 10px;
  font-size: 27px;
  letter-spacing: -0.015em;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.workflow-shell {
  margin-top: 12px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

.feature-panel {
  position: relative;
  border-radius: 26px;
  border: 1px solid #d8d0ea;
  background: radial-gradient(circle at 20% 10%, #ffffff 0%, #ece5f8 65%, #e2daf4 100%);
  min-height: 420px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
}

.device-mock {
  width: min(340px, 84%);
  margin: auto;
  border-radius: 36px;
  background: #111024;
  padding: 12px;
  box-shadow: 0 34px 40px rgba(17, 16, 36, 0.34);
}

.device-screen {
  border-radius: 26px;
  min-height: 382px;
  padding: 18px;
  color: #111;
  display: grid;
  gap: 12px;
  align-content: start;
  background: linear-gradient(180deg, #fdfcff 0%, #f4f0fc 100%);
}

.screen-badge {
  justify-self: start;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid #e5ddf4;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.screen-title {
  font-family: "Nunito Sans", "Avenir Next", sans-serif;
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  color: #1a1430;
}

.screen-copy {
  margin: 0;
  color: #5f5777;
  font-size: 14px;
  line-height: 1.6;
}

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

.stat-card {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5ddf4;
  padding: 10px;
}

.stat-label {
  display: block;
  color: #736a90;
  font-size: 11px;
  margin-bottom: 5px;
}

.stat-value {
  color: #20193b;
  font-size: 18px;
  font-family: "Nunito Sans", "Avenir Next", sans-serif;
}

.workflow-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.workflow-tabs button {
  width: 100%;
  text-align: left;
  background: #f8f6fc;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 160ms ease;
}

.workflow-tabs button:hover,
.workflow-tabs button:focus-visible {
  border-color: #d4c7ee;
  background: #f0ebfa;
  outline: none;
}

.workflow-tabs button[aria-selected="true"] {
  border-color: #cab9ef;
  background: #f1ebfc;
  box-shadow: inset 0 0 0 1px #e1d5f8;
}

.tab-label {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.tab-copy {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.download-panel {
  margin: 28px 0 8px;
  border-radius: 30px;
  border: 1px solid #d7ceea;
  background: linear-gradient(145deg, #ffffff 0%, #f2eefb 100%);
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.download-panel h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
}

.download-panel p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.footer-logo-text {
  font-family: "Dongle", "Nunito Sans", "Avenir Next", sans-serif;
}

[data-animate] {
  opacity: 1;
}

@media (min-width: 769px) {
  [data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 280ms ease, transform 280ms ease;
  }

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

@media (max-width: 980px) {
  .hero-screenshot-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-shot--phone {
    width: min(220px, 42vw);
  }

  .hero-shot--tablet {
    width: min(420px, 86vw);
  }

  .workflow-shell {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    min-height: 300px;
  }

  .device-mock {
    width: min(320px, 76%);
  }

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

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

  .hero-screenshot-row {
    gap: 12px;
  }

  .hero-shot--phone {
    width: min(180px, 43vw);
  }

  .hero-shot--tablet {
    width: min(360px, 92vw);
  }

  .hero-shot--left,
  .hero-shot--right {
    transform: none;
  }

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