:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-soft: #f1faf6;
  --ink: #071723;
  --muted: #53656c;
  --line: #dce8e4;
  --teal: #0a967e;
  --teal-dark: #06705f;
  --gold: #d7a71f;
  --shadow: 0 24px 58px rgba(7, 23, 35, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  padding: 12px clamp(22px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 232, 228, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  font-size: 1.55rem;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--teal);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
}

.brand-mark circle {
  fill: rgba(10, 150, 126, 0.1);
  stroke: currentColor;
  stroke-width: 2.2;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 4vw, 48px);
  font-size: 0.95rem;
  font-weight: 780;
}

.nav-links a:hover,
.footer-links a:hover,
.footer-email:hover {
  color: var(--teal-dark);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 820;
  white-space: nowrap;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 16px 30px rgba(10, 150, 126, 0.22);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(184, 204, 199, 0.92);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  max-width: 1280px;
  min-height: 548px;
  margin: 0 auto;
  padding: 28px clamp(22px, 5vw, 82px) 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(241, 250, 246, 0.82), rgba(255, 255, 255, 0) 76%),
    #ffffff;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: 4.85rem;
  line-height: 0.98;
  font-weight: 880;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 500px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 1.28rem;
  line-height: 1.5;
}

.hero-product {
  position: relative;
  z-index: 1;
  min-height: 520px;
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  padding: 6px;
  background: linear-gradient(90deg, #050707, #2a2f2d 12%, #090b0b 24%, #282d2b 88%, #050707);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 42px;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

.phone-main {
  left: 10%;
  top: 0;
  z-index: 2;
  width: min(42%, 260px);
  aspect-ratio: 506 / 1100;
  transform: rotateZ(-2deg);
}

.phone-side {
  right: 4%;
  top: 42px;
  z-index: 1;
  width: min(39%, 244px);
  aspect-ratio: 506 / 1100;
  transform: rotateZ(2.5deg);
}

.apps-section,
.principles-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.principles-section h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.05;
  font-weight: 850;
}

.section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.app-list {
  display: grid;
  gap: 12px;
}

.app-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 104px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 232, 228, 0.96);
  border-radius: 8px;
}

.app-icon,
.app-placeholder {
  width: 62px;
  height: 62px;
  border-radius: 14px;
}

.app-icon {
  box-shadow: 0 12px 26px rgba(10, 150, 126, 0.14);
}

.app-placeholder {
  display: grid;
  place-items: center;
  color: #6b7c82;
  background: linear-gradient(180deg, #f6f8f7, #ecefed);
}

.app-placeholder svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.app-copy h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.app-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.app-link {
  min-width: 174px;
}

.row-arrow {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.principles-section {
  padding-top: 30px;
  text-align: center;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  text-align: left;
}

.principle-list article {
  min-height: 120px;
  padding: 0 34px;
}

.principle-list article + article {
  border-left: 1px solid var(--line);
}

.principle-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--teal);
}

.principle-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.principle-list h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.52;
}

.site-footer {
  padding: 28px clamp(22px, 5vw, 72px);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: #31464e;
  font-size: 0.94rem;
  font-weight: 720;
}

.footer-email {
  color: #31464e;
  font-size: 0.94rem;
  font-weight: 720;
}

.legal-main {
  max-width: 820px;
  min-height: 68vh;
  margin: 0 auto;
  padding: 74px 22px 82px;
}

.legal-main h1 {
  margin: 0 0 14px;
  font-size: 4.2rem;
  line-height: 1;
}

.legal-main .updated {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-main h2 {
  margin: 28px 0 8px;
  font-size: 1.18rem;
}

.legal-main p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-email {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal-dark);
  font-weight: 820;
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .header-actions .secondary {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }

  .hero-product {
    min-height: 500px;
  }

  .phone-main {
    left: 16%;
    width: min(38vw, 250px);
  }

  .phone-side {
    right: 14%;
    width: min(35vw, 230px);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .app-row {
    grid-template-columns: auto 1fr;
  }

  .app-link,
  .row-arrow {
    grid-column: 2;
    justify-self: start;
  }

  .principle-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading h2,
  .principles-section h2 {
    font-size: 2.2rem;
  }

  .legal-main h1 {
    font-size: 3.3rem;
  }

  .principle-list article {
    padding: 0;
  }

  .principle-list article + article {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

@media (max-width: 520px) {
  .site-header {
    padding: 11px 16px;
  }

  .brand {
    gap: 8px;
    font-size: 1.16rem;
  }

  .brand-mark,
  .brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    display: none;
  }

  .hero-section {
    padding: 38px 22px 0;
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: 2.75rem;
  }

  .hero-copy p {
    margin-bottom: 26px;
    font-size: 1.04rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-product {
    min-height: 280px;
  }

  .phone-main {
    left: 8%;
    width: min(42%, 156px);
  }

  .phone-side {
    right: 0;
    top: 30px;
    width: min(38%, 140px);
  }

  .app-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .app-link,
  .row-arrow {
    grid-column: 1;
  }
}
