@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #34383a;
  --muted: #73787a;
  --paper: #f2f2ef;
  --pearl: #fafaf7;
  --line: rgba(52, 56, 58, 0.15);
  --metal: #a4aaac;
  --dark: #383d40;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 8%, rgba(255,255,255,.95), transparent 26rem),
    linear-gradient(145deg, #e8e9e6 0%, #f8f8f4 46%, #e2e3e0 100%);
  font-family: "Manrope", "Avenir Next", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("assets/stresa-surface.png");
  background-size: 860px;
  mix-blend-mode: soft-light;
}

a { color: inherit; }

.site-header,
footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.site-header { height: 96px; border-bottom: 1px solid var(--line); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.brand img { border-radius: 12px; box-shadow: 0 9px 24px rgba(38,43,45,.18); }

nav { display: flex; gap: 30px; }
nav a, footer a { text-decoration: none; color: var(--muted); font-size: .82rem; font-weight: 650; }
nav a:hover, nav a[aria-current="page"], footer a:hover { color: var(--ink); }

main { position: relative; z-index: 1; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 5vw;
}

.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .19em; }
h1, h2, h3, p { text-wrap: pretty; }
.hero h1 { margin: 0; font-size: clamp(4rem, 7.6vw, 7.2rem); line-height: .92; letter-spacing: -.075em; font-weight: 520; }
.lede { max-width: 570px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.store-button { padding: 14px 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #f7f8f5; background: var(--dark); box-shadow: 0 14px 30px rgba(40,45,47,.2); font-size: .82rem; font-weight: 700; }
.text-link { text-decoration: none; font-size: .82rem; font-weight: 750; border-bottom: 1px solid var(--line); padding-bottom: 4px; }

.hero-object { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.app-icon { width: 42%; border-radius: 24%; position: relative; z-index: 2; box-shadow: 0 38px 80px rgba(38,43,45,.31), inset 0 1px 0 white; transform: rotate(-7deg); }
.orbit { position: absolute; border: 1px solid rgba(68,74,77,.16); border-radius: 50%; }
.orbit-one { width: 78%; height: 78%; animation: breathe 7s ease-in-out infinite; }
.orbit-two { width: 103%; height: 43%; transform: rotate(-24deg); }
.object-note { position: absolute; right: 0; bottom: 18%; font-size: .58rem; line-height: 1.6; letter-spacing: .17em; color: var(--muted); }

.principles { background: rgba(249,249,246,.72); border-block: 1px solid rgba(255,255,255,.8); padding: 110px max(24px, calc((100vw - 1180px)/2)); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.section-heading h2, .privacy-callout h2 { margin: 0; max-width: 760px; font-size: clamp(2.5rem, 5vw, 5.2rem); line-height: 1; letter-spacing: -.065em; font-weight: 520; }
.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.feature { min-height: 330px; padding: 30px; border-radius: 32px; background: rgba(230,231,228,.73); border: 1px solid rgba(255,255,255,.86); box-shadow: inset 0 1px 0 white, 0 18px 38px rgba(43,48,50,.07); display: flex; flex-direction: column; }
.feature-wide { background: linear-gradient(145deg, #fbfbf8, #e1e2df); }
.feature-dark { color: #f4f5f2; background: #3d4245; border-color: #4b5154; }
.feature-number { font-size: .62rem; letter-spacing: .16em; color: var(--muted); }
.feature-dark .feature-number, .feature-dark p { color: #c7cccd; }
.feature h3 { margin: auto 0 10px; font-size: 1.7rem; letter-spacing: -.045em; font-weight: 600; }
.feature p { color: var(--muted); line-height: 1.65; font-size: .9rem; }
.time-mark { margin-top: 25px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: var(--muted); font-size: .64rem; letter-spacing: .1em; }
.time-mark i { height: 1px; background: var(--line); position: relative; }
.time-mark i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--metal); position: absolute; left: 60%; top: -4px; }

.privacy-callout { width: min(1180px, calc(100% - 48px)); margin: 0 auto; min-height: 620px; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 8vw; }
.wordmark { width: min(100%, 360px); filter: grayscale(1); opacity: .74; }
.privacy-callout .text-link { display: inline-block; margin-top: 35px; }

footer { min-height: 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer div { display: flex; gap: 26px; }

.document-shell { width: min(940px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 130px; }
.document-title { padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.document-title h1 { margin: 0 0 24px; max-width: 820px; font-size: clamp(3.4rem, 8vw, 6.8rem); line-height: .94; letter-spacing: -.075em; font-weight: 520; }
.document-title > p:last-child { color: var(--muted); }
.document { margin-top: 58px; }
.document-lede { max-width: 780px; font-size: 1.35rem !important; line-height: 1.7 !important; color: var(--ink) !important; }
.document section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.document h2 { margin: 0 0 14px; font-size: 1.28rem; letter-spacing: -.025em; }
.document p { margin: 10px 0; color: var(--muted); line-height: 1.8; font-size: .94rem; }
.document a { font-weight: 700; }
.placeholder { color: #8a5a45 !important; background: rgba(185,123,91,.11); border-radius: 10px; padding: 12px 14px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 42px; }
.contact-card { grid-column: 1 / -1; margin-top: 30px; padding: 38px !important; border: 1px solid rgba(255,255,255,.85) !important; border-radius: 28px; background: rgba(250,250,247,.68); }

.reveal { animation: arrive .75s cubic-bezier(.2,.8,.2,1) both; }
.delayed { animation-delay: .14s; }
@keyframes arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 50% { transform: scale(1.04); opacity: .55; } }

@media (max-width: 820px) {
  .site-header { height: 78px; }
  nav { gap: 16px; }
  nav a:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding: 90px 0; }
  .hero-object { width: min(100%, 520px); justify-self: center; }
  .section-heading, .privacy-callout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 260px; }
  .privacy-callout { padding: 100px 0; min-height: auto; }
  .wordmark { width: 240px; }
  .support-grid { grid-template-columns: 1fr; }
  .contact-card { grid-column: auto; }
}

@media (max-width: 520px) {
  .site-header, footer, .hero, .privacy-callout { width: min(100% - 28px, 1180px); }
  .document-shell { width: min(100% - 28px, 940px); padding-top: 72px; }
  .hero h1 { font-size: 3.55rem; }
  .principles { padding-inline: 14px; }
  footer { align-items: flex-start; padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
