:root {
  --ink: #0c1419;
  --ink-soft: #1a2a33;
  --fog: #d7e4ea;
  --mist: #9db4c0;
  --paper: #f3f7f9;
  --accent: #1fa37a;
  --accent-deep: #147a5a;
  --glow: rgba(31, 163, 122, 0.28);
  --line: rgba(15, 35, 45, 0.12);
  --shadow: 0 18px 50px rgba(8, 20, 28, 0.12);
  --radius: 18px;
  --max: 920px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(31, 163, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(45, 110, 140, 0.14), transparent 50%),
    linear-gradient(165deg, #eef5f7 0%, #f7fafb 42%, #e8f1f4 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 20, 25, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 25, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.header-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.header-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 6.5rem) 1.25rem 4rem;
  min-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink-soft);
  animation: rise 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 38ch;
  color: #3d5561;
  font-size: 1.08rem;
  animation: rise 850ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 900ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 28px rgba(12, 20, 25, 0.22);
}

.btn-primary:hover {
  background: #152129;
}

.btn-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-visual {
  position: absolute;
  right: -2rem;
  top: 50%;
  width: min(420px, 48vw);
  aspect-ratio: 1;
  transform: translateY(-48%);
  pointer-events: none;
  animation: float-in 1.1s 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ring,
.dial {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.ring-a {
  width: 88%;
  height: 88%;
  border: 1px solid rgba(31, 163, 122, 0.35);
  box-shadow: inset 0 0 60px var(--glow);
  animation: spin 28s linear infinite;
}

.ring-b {
  width: 62%;
  height: 62%;
  border: 1px dashed rgba(26, 42, 51, 0.28);
  animation: spin 40s linear infinite reverse;
}

.dial {
  width: 34%;
  height: 34%;
  background:
    radial-gradient(circle at 35% 30%, #f7fffc, #d7efe6 45%, #1fa37a 100%);
  box-shadow:
    var(--shadow),
    0 0 0 10px rgba(255, 255, 255, 0.35);
}

.dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 3px;
  height: 34%;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(28deg);
  animation: tick 6s ease-in-out infinite;
}

.apps,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
}

.apps h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0.55rem 0 1.75rem;
  color: #4a6571;
  max-width: 42ch;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.app-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.app-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 163, 122, 0.45);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.9);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #e5eef2;
}

.app-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.app-body p {
  margin: 0.35rem 0 0.5rem;
  color: #445963;
  font-size: 0.95rem;
}

.meta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.01em;
}

.get {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 163, 122, 0.12);
  transition: background 160ms ease, color 160ms ease;
}

.app-link:hover .get {
  background: var(--accent);
  color: white;
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.1rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.contact-mail:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: #5a7380;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

/* —— Policy / legal pages —— */

.policy {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.policy-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.policy-eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.policy-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.policy-lede {
  margin: 1rem 0 0;
  color: #3d5561;
  font-size: 1.08rem;
}

.policy-meta {
  display: grid;
  gap: 0.85rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

@media (min-width: 560px) {
  .policy-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.policy-meta > div {
  margin: 0;
}

.policy-meta dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5a7380;
}

.policy-meta dd {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.policy-body {
  animation: rise 800ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.policy-body h2 {
  margin: 2.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  scroll-margin-top: 1.25rem;
}

.policy-body h3 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  scroll-margin-top: 1.25rem;
}

.policy-body p,
.policy-body li {
  color: #334851;
}

.policy-body p {
  margin: 0 0 0.9rem;
}

.policy-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.policy-body li {
  margin-bottom: 0.4rem;
}

.policy-body li:last-child {
  margin-bottom: 0;
}

.policy-body a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 122, 90, 0.35);
  transition: color 160ms ease, border-color 160ms ease;
}

.policy-body a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.policy-body code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(12, 20, 25, 0.06);
  color: var(--ink-soft);
  word-break: break-all;
}

.policy-body table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.policy-body th,
.policy-body td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: #334851;
}

.policy-body th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(-42%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-48%) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tick {
  0%,
  100% {
    transform: translateX(-50%) rotate(18deg);
  }
  50% {
    transform: translateX(-50%) rotate(42deg);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: min(260px, 70vw);
    margin: 2.25rem auto 0;
    transform: none;
    animation: rise 900ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .app-link {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "icon get";
  }

  .app-icon {
    grid-area: icon;
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .app-body {
    grid-area: body;
  }

  .get {
    grid-area: get;
    justify-self: start;
    margin-top: 0.15rem;
  }
}

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