:root {
  color-scheme: light;
  --ink: #10201f;
  --muted: #536462;
  --soft: #77817f;
  --paper: #fbf8f1;
  --paper-deep: #f0ebe0;
  --surface: #ffffff;
  --teal: #00b8b8;
  --teal-deep: #007b79;
  --line: rgba(16, 32, 31, 0.13);
  --shadow: 0 24px 64px rgba(16, 32, 31, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 184, 0.15), transparent 30rem),
    linear-gradient(180deg, #fffcf5 0%, var(--paper) 42%, #f5f0e7 100%);
  color: var(--ink);
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(16, 32, 31, 0.08);
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 123, 121, 0.16);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 650;
}

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

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: var(--teal);
  color: #002524;
  box-shadow: 0 14px 32px rgba(0, 184, 184, 0.24);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.device-card {
  align-self: stretch;
  min-height: 560px;
  border: 1px solid rgba(16, 32, 31, 0.1);
  border-radius: 38px;
  background:
    linear-gradient(160deg, rgba(0, 184, 184, 0.13), transparent 34%),
    #111615;
  color: #f7fffc;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  border-radius: 30px;
  background: #050707;
  padding: 1.5rem;
  overflow: hidden;
}

.screen-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 780;
}

.screen-title img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.prompt-box {
  margin-top: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.25rem;
}

.prompt-box h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  color: rgba(247, 255, 252, 0.72);
}

.dictation {
  margin: 0;
  color: #f8fffc;
  font-size: 1.2rem;
  line-height: 1.42;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.rating-row img {
  width: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem;
}

.mini-share {
  margin-top: auto;
  border-radius: 24px;
  background: #f8f5ed;
  color: var(--ink);
  padding: 1.15rem;
}

.mini-share p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.mini-share strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
  line-height: 1.65;
}

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

.feature {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 1.45rem;
}

.feature svg {
  width: 34px;
  height: 34px;
  color: var(--teal-deep);
}

.feature h3 {
  margin: 1.1rem 0 0.65rem;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  counter-reset: step;
}

.step {
  position: relative;
  min-height: 190px;
  border-top: 2px solid var(--teal);
  background: rgba(255, 255, 255, 0.5);
  padding: 1.25rem 1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.4rem;
  color: var(--teal-deep);
  font-weight: 820;
}

.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.96rem;
}

.share-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  border-block: 1px solid var(--line);
}

.flip-card {
  perspective: 1200px;
}

.flip-card-inner {
  position: relative;
  min-height: 380px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(-180deg);
}

.share-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 26px;
  border: 1px solid rgba(16, 32, 31, 0.12);
  background: #ffffff;
  backface-visibility: hidden;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.share-face.back {
  background: #101816;
  color: #f5fff9;
  transform: rotateY(180deg);
}

.share-face small {
  color: var(--soft);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-face.back small,
.share-face.back p {
  color: rgba(245, 255, 249, 0.72);
}

.share-face h3 {
  margin: 1rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.03;
}

.share-face p {
  margin: 0;
  font-size: 1.05rem;
}

.doc-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 18px 50px rgba(16, 32, 31, 0.08);
}

.doc-card h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.98;
}

.doc-card h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}

.doc-card p,
.doc-card li {
  color: var(--muted);
  line-height: 1.7;
}

.doc-card ul {
  padding-left: 1.25rem;
}

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

.support-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  padding: 1.25rem;
}

.support-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.site-footer {
  border-top: 1px solid rgba(16, 32, 31, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .share-band {
    grid-template-columns: 1fr;
  }

  .device-card {
    min-height: 0;
  }

  .feature-grid,
  .workflow,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav,
  .hero,
  .section,
  .doc-shell,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 16vw, 4.6rem);
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .phone-screen {
    padding: 1rem;
  }

  .dictation {
    font-size: 1.05rem;
  }

  .rating-row {
    gap: 0.35rem;
  }
}

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