/*
 * Public site: landing page, pages and blog. Pure CSS (the page ships no
 * script): 3D scene with preserve-3d, keyframe motion, and scroll-driven
 * reveals where the browser supports them. Everything is still under
 * prefers-reduced-motion.
 */

/* Fonts (self-hosted, OFL; see /fonts/OFL-*.txt) ------------------------ */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/alexandria-arabic-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/alexandria-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2')
    format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2')
    format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2')
    format('woff2');
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF,
    U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* Tokens ---------------------------------------------------------------- */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
  --font:
    'IBM Plex Sans Arabic', 'Segoe UI', 'Noto Sans Arabic', Tahoma, system-ui,
    -apple-system, sans-serif;
  --font-display: 'Alexandria', var(--font);
  --bg: #f6faf8;
  --surface: #ffffff;
  --border: #e1ebe6;
  --ink: #0b2a22;
  --text: #13302a;
  --muted: #566b65;
  --primary: #0f5a45;
  --primary-hover: #0b4636;
  --emerald: #17a673;
  --mint: #7ee2b8;
  --teal: #2dd4bf;
  --primary-soft: #e5f3ed;
  --focus: #1a73e8;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gradient: linear-gradient(135deg, var(--primary), var(--emerald));
  --shadow: 0 1px 2px rgb(11 42 34 / 6%), 0 8px 24px rgb(11 42 34 / 6%);
  --shadow-lift: 0 30px 60px -24px rgb(11 42 34 / 32%);
}

/* Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--primary);
}
svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--mint);
  color: var(--ink);
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap.narrow {
  max-width: 780px;
}
.center {
  text-align: center;
}
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.95;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 72%);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(14px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  box-shadow:
    0 10px 20px -8px rgb(15 90 69 / 60%),
    inset 0 1px 0 rgb(255 255 255 / 30%);
  transition: transform 0.6s var(--ease);
}
.brand:hover .mark {
  transform: rotate(-8deg) scale(1.06);
}
.mark svg {
  width: 21px;
  height: 21px;
  stroke: #fff;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  transform: scaleX(1);
}

/* Buttons --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s,
    background-color 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgb(23 166 115 / 45%);
  box-shadow: 0 14px 28px -16px rgb(11 42 34 / 35%);
}
.btn.primary {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
  box-shadow:
    0 14px 28px -12px rgb(15 90 69 / 65%),
    inset 0 1px 0 rgb(255 255 255 / 25%);
}
/* A light sweep across primary buttons on hover. */
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgb(255 255 255 / 35%) 50%,
    transparent 70%
  );
  transform: translateX(120%);
  transition: transform 0.8s var(--ease);
}
.btn.primary:hover::after {
  transform: translateX(-120%);
}
.btn.small {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 0.95rem;
}
.btn.large {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.05rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #eef8f3 0%, #f8fcfa 60%, #fff 100%);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, var(--mint), transparent 65%);
}
.blob-2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: 30%;
  background: radial-gradient(circle, var(--teal), transparent 65%);
  opacity: 0.35;
  animation-duration: 22s;
  animation-delay: -6s;
}
.blob-3 {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -100px;
  background: radial-gradient(circle, #c7f0de, transparent 65%);
  animation-duration: 26s;
  animation-delay: -12s;
}
.grid-floor {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -12%;
  height: 62%;
  background-image:
    linear-gradient(rgb(15 90 69 / 13%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 90 69 / 13%) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(64deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 5s linear infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  min-height: min(680px, calc(100vh - 72px));
}
.hero-copy > * {
  animation: rise 0.7s var(--ease) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 0.05s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.2s;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid rgb(23 166 115 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -14px rgb(11 42 34 / 40%);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  font-weight: 800;
  line-height: 1.32;
  background: linear-gradient(
    120deg,
    var(--ink) 0%,
    var(--ink) 35%,
    var(--primary) 55%,
    var(--emerald) 75%,
    var(--ink) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    rise 0.7s var(--ease) 0.05s both,
    shimmer 9s ease-in-out 1s infinite;
}
.hero .lead {
  max-width: 560px;
  margin-top: 22px;
}

/* 3D scene -------------------------------------------------------------- */
.scene {
  position: relative;
  height: 600px;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  animation: rise 1s var(--ease) 0.15s both;
}
.scene-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-20deg);
}
.scene-tilt > * {
  position: absolute;
  transform-style: preserve-3d;
}

/* Orbits around the phone. */
.orbit {
  left: 50%;
  top: 50%;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border: 1.5px dashed rgb(15 90 69 / 30%);
  border-radius: 50%;
  transform: rotateX(76deg);
  animation: orbit 26s linear infinite;
}
.orbit-2 {
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  border-style: solid;
  border-color: rgb(15 90 69 / 12%);
  animation-duration: 44s;
  animation-direction: reverse;
}
.orbit-dot {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 18px var(--emerald);
}

/* The phone: front, back and four edges give it real depth. */
.phone {
  left: 50%;
  top: 50%;
  width: 250px;
  height: 500px;
  margin: -250px 0 0 -125px;
}
.phone-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: phone-float 8s ease-in-out infinite;
}
.phone-side {
  position: absolute;
  display: block;
}
.phone-side.front,
.phone-side.back {
  inset: 0;
  border-radius: 40px;
}
.phone-side.front {
  padding: 11px;
  background: #0d211b;
  box-shadow:
    inset 0 0 0 2px #2d5247,
    0 50px 80px -30px rgb(11 42 34 / 55%);
  transform: translateZ(10px);
}
.phone-side.back {
  background: linear-gradient(145deg, #1a5a4a, #0b2a22);
  transform: rotateY(180deg) translateZ(10px);
}
.phone-side.edge-r,
.phone-side.edge-l {
  top: 34px;
  bottom: 34px;
  width: 20px;
  background: linear-gradient(180deg, #2a6b5a, #0e3a30 50%, #2a6b5a);
}
.phone-side.edge-r {
  left: calc(100% - 10px);
  transform: rotateY(90deg);
}
.phone-side.edge-l {
  left: -10px;
  transform: rotateY(-90deg);
}
.phone-side.edge-t,
.phone-side.edge-b {
  left: 34px;
  right: 34px;
  height: 20px;
  background: linear-gradient(90deg, #2a6b5a, #0e3a30 50%, #2a6b5a);
}
.phone-side.edge-t {
  top: -10px;
  transform: rotateX(90deg);
}
.phone-side.edge-b {
  top: calc(100% - 10px);
  transform: rotateX(-90deg);
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 54px 20px 22px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(120% 60% at 50% 0%, #dff5ec, transparent 70%),
    linear-gradient(180deg, #f8fffc, #eaf7f1);
  font-family: var(--font-display);
  text-align: center;
}
.notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 14px;
  background: #0d211b;
  transform: translateX(-50%);
}
.screen-title {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}
.qr {
  position: relative;
  width: 176px;
  height: 176px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 14px 30px -10px rgb(15 90 69 / 30%),
    0 0 0 1px rgb(15 90 69 / 8%);
}
.qr-art {
  fill: var(--ink);
  stroke: none;
}
.scan {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  box-shadow: 0 0 14px 2px var(--emerald);
  opacity: 0;
  animation: scan 7s ease-in-out infinite;
}
.qr-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgb(255 255 255 / 88%);
  opacity: 0;
  animation: qr-done 7s ease-in-out infinite;
}
.qr-done svg {
  width: 72px;
  height: 72px;
  padding: 16px;
  border-radius: 50%;
  background: var(--gradient);
  stroke: #fff;
  stroke-width: 2.8;
  box-shadow: 0 14px 30px -8px rgb(15 90 69 / 60%);
}
.screen-hint {
  max-width: 180px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  line-height: 1.7;
}
.screen-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}
.glare {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgb(255 255 255 / 22%) 48%,
    transparent 58%
  );
  background-size: 260% 100%;
  pointer-events: none;
  animation: glare 8s ease-in-out infinite;
}

/* Cube, ring and sphere. */
.cube {
  --size: 88px;
  left: 4%;
  top: 9%;
  width: var(--size);
  height: var(--size);
  transform: translateZ(90px);
  animation: bob 7s ease-in-out infinite;
}
.cube-spin {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: spin3d 18s linear infinite;
}
.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgb(126 226 184 / 90%),
    rgb(23 166 115 / 78%)
  );
  box-shadow: inset 0 0 24px rgb(255 255 255 / 35%);
}
.cube-face.front {
  transform: translateZ(calc(var(--size) / 2));
}
.cube-face.back {
  transform: rotateY(180deg) translateZ(calc(var(--size) / 2));
}
.cube-face.right {
  transform: rotateY(90deg) translateZ(calc(var(--size) / 2));
}
.cube-face.left {
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
}
.cube-face.top {
  transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
  background: linear-gradient(135deg, rgb(199 240 222 / 95%), var(--mint));
}
.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--size) / 2));
  background: linear-gradient(135deg, var(--emerald), var(--primary));
}
.ring {
  right: 2%;
  bottom: 12%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--primary),
    var(--mint),
    var(--teal),
    var(--emerald),
    var(--primary)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 20px),
    #000 calc(100% - 19px)
  );
  transform: translateZ(40px) rotateX(64deg);
  animation: ring-spin 11s linear infinite;
}
.sphere {
  left: 16%;
  bottom: 9%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #fff 0%,
    var(--mint) 30%,
    var(--emerald) 60%,
    var(--primary) 100%
  );
  box-shadow: 0 24px 40px -14px rgb(15 90 69 / 55%);
  transform: translateZ(130px);
  animation: bob 6s ease-in-out -2s infinite;
}

/* Floating glass chips. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgb(255 255 255 / 92%);
  border-radius: 16px;
  background: rgb(255 255 255 / 80%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px -16px rgb(11 42 34 / 30%);
  animation: bob 6s ease-in-out infinite;
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}
.chip-a {
  left: 0;
  top: 30%;
  transform: translateZ(150px);
  animation-delay: -1s;
}
.chip-b {
  right: 0;
  top: 18%;
  transform: translateZ(180px);
  animation-delay: -3s;
}
.chip-c {
  right: -2%;
  bottom: 17%;
  transform: translateZ(120px);
  animation-delay: -5s;
}
.chip-c .chip-icon svg {
  animation: turn 6s linear infinite;
}
.live-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  animation: ping 2s ease-out infinite;
}

/* Sections -------------------------------------------------------------- */
.section {
  position: relative;
  padding: 112px 0;
}
.section h2 {
  margin-bottom: 56px;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.section h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--mint));
}

/* Features. */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1200px;
}
.feature {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fcfa);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease),
    border-color 0.6s;
}
.feature::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(126 226 184 / 45%), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-5deg);
  border-color: rgb(23 166 115 / 35%);
  box-shadow: var(--shadow-lift);
}
.feature:hover::before {
  opacity: 1;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  padding: 15px;
  border-radius: 18px;
  background: var(--gradient);
  color: #fff;
  box-shadow:
    0 14px 26px -10px rgb(15 90 69 / 60%),
    inset 0 1px 0 rgb(255 255 255 / 35%);
  transform: translateZ(30px);
  transition: transform 0.9s var(--ease);
}
.feature:hover .feature-icon {
  transform: translateZ(40px) rotateY(360deg);
}
.feature h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 700;
}
.feature p {
  color: var(--muted);
}

/* Pricing. */
#pricing {
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(126 226 184 / 18%), transparent),
    linear-gradient(180deg, #f3faf7, #fff);
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: stretch;
  gap: 24px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
        from var(--angle),
        var(--primary),
        var(--mint),
        var(--teal),
        var(--emerald),
        var(--primary)
      )
      border-box;
  box-shadow: 0 30px 60px -28px rgb(15 90 69 / 45%);
  animation: border-spin 6s linear infinite;
}
.plan-badge.offer {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 10px 20px -10px rgb(180 83 9 / 70%);
}
.plan-offer-note {
  margin: -8px 0 0;
  color: #92400e;
  font-weight: 600;
  font-size: 0.92rem;
}
.plans-note {
  max-width: 46rem;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid #fcd9a8;
  border-radius: var(--radius);
  background: #fff8ed;
  color: var(--ink);
  font-size: 0.98rem;
}
.hero-offer-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-offer a {
  color: var(--primary);
  font-weight: 700;
}
.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 20px -10px rgb(15 90 69 / 70%);
}
.plan h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.price .amount {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
}
.price .period {
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-inline-start: 32px;
}
.checks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.4em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.checks li::after {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: calc(0.4em + 5px);
  width: 8px;
  height: 5px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}

/* FAQ. */
.faq {
  display: grid;
  gap: 14px;
}
.faq-item {
  padding: 0 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.faq-item:hover {
  border-color: rgb(23 166 115 / 30%);
}
.faq-item[open] {
  border-color: rgb(23 166 115 / 45%);
  box-shadow: 0 20px 44px -28px rgb(11 42 34 / 35%);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 12px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 12px no-repeat,
    var(--primary-soft);
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(135deg);
}
.faq-item p {
  padding-bottom: 22px;
  color: var(--muted);
  white-space: pre-line;
}
/* Smooth open and close where the browser can animate to auto height. */
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 0.45s var(--ease),
    content-visibility 0.45s allow-discrete;
}
.faq-item[open]::details-content {
  block-size: auto;
}

/* Closing call to action. */
.section.contact {
  padding: 24px 0 112px;
}
.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 48px;
  border-radius: 36px;
  background:
    radial-gradient(90% 120% at 85% 0%, var(--emerald) 0%, transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgb(45 212 191 / 35%), transparent 60%),
    linear-gradient(160deg, #0f5a45, #0a2f25);
  color: #fff;
  text-align: center;
  perspective: 900px;
  box-shadow: 0 40px 80px -40px rgb(11 42 34 / 60%);
}
.contact-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.contact-copy {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}
.contact-panel h2 {
  margin-bottom: 18px;
  color: #fff;
}
.contact-panel h2::after {
  background: linear-gradient(90deg, var(--mint), #fff);
}
.contact-panel .lead {
  color: rgb(255 255 255 / 82%);
}
.contact-panel .actions {
  justify-content: center;
}
.contact-panel .btn {
  border-color: rgb(255 255 255 / 35%);
  background: rgb(255 255 255 / 8%);
  color: #fff;
}
.contact-panel .btn.primary {
  background: #fff;
  color: var(--primary);
}
.contact-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform-style: preserve-3d;
  pointer-events: none;
}
.contact-decor > * {
  position: absolute;
  transform-style: preserve-3d;
}
.contact-decor .cube {
  --size: 60px;
  left: 7%;
  top: 18%;
  transform: translateZ(40px);
}
.contact-decor .ring {
  right: 6%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  opacity: 0.8;
}
.contact-decor .sphere {
  left: 18%;
  top: auto;
  bottom: 12%;
  width: 44px;
  height: 44px;
  transform: translateZ(60px);
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}
.site-footer .bar {
  min-height: 84px;
  flex-wrap: wrap;
  padding-block: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--primary);
}

/* Pages and blog -------------------------------------------------------- */
.page-title,
.prose h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
}
.page-title {
  margin-bottom: 40px;
  text-align: center;
}
.meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}
.posts {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section .posts h2,
.section .prose h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
  text-align: start;
}
.section .posts h2::after,
.section .prose h2::after {
  display: none;
}
.posts h2 a {
  color: var(--ink);
  text-decoration: none;
}
.posts h2 a:hover {
  color: var(--primary);
}
.section .prose h2 {
  margin: 36px 0 12px;
  font-size: 1.4rem;
}
.prose h3 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
}
.prose p,
.prose ul {
  margin: 0 0 18px;
}
.prose figure {
  margin: 24px 0;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Scroll-driven motion (progressive) ------------------------------------- */
@supports (animation-timeline: view()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 160px;
  }
  .scene-tilt {
    animation: scene-scroll linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  .section h2,
  .feature,
  .plan,
  .faq-item,
  .contact-panel,
  .posts > li,
  .prose > * {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 75%;
  }
  .feature:nth-child(3n + 2),
  .plan:nth-child(3n + 2) {
    animation-range: entry 8% entry 85%;
  }
  .feature:nth-child(3n),
  .plan:nth-child(3n) {
    animation-range: entry 16% entry 95%;
  }
  .plan.featured {
    animation:
      reveal linear both,
      border-spin 6s linear infinite;
    animation-timeline: view(), auto;
    animation-range:
      entry 8% entry 85%,
      normal;
  }
}

/* Keyframes -------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 22px;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 56px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes shimmer {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
}
@keyframes drift {
  to {
    translate: 60px 40px;
    scale: 1.15;
  }
}
@keyframes floor {
  to {
    background-position: 0 56px;
  }
}
@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: translateY(-18px) rotateY(12deg) rotateZ(-1.5deg);
  }
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}
@keyframes spin3d {
  to {
    transform: rotateX(360deg) rotateY(720deg);
  }
}
@keyframes orbit {
  to {
    transform: rotateX(76deg) rotateZ(360deg);
  }
}
@keyframes ring-spin {
  to {
    transform: translateZ(40px) rotateX(64deg) rotateZ(360deg);
  }
}
@keyframes turn {
  to {
    rotate: 360deg;
  }
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgb(23 166 115 / 55%);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgb(23 166 115 / 0%);
  }
}
@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  8% {
    opacity: 1;
  }
  48% {
    opacity: 1;
    transform: translateY(150px);
  }
  54%,
  100% {
    opacity: 0;
    transform: translateY(150px);
  }
}
@keyframes qr-done {
  0%,
  52% {
    opacity: 0;
    scale: 0.85;
  }
  60%,
  88% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 1;
  }
}
@keyframes glare {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
}
@keyframes border-spin {
  to {
    --angle: 360deg;
  }
}
@keyframes header-solid {
  to {
    background: rgb(255 255 255 / 92%);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 32px -22px rgb(11 42 34 / 40%);
  }
}
@keyframes scene-scroll {
  from {
    transform: rotateX(8deg) rotateY(-20deg);
  }
  to {
    transform: rotateX(22deg) rotateY(16deg) translateY(-60px);
  }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    padding: 40px 0 24px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    text-align: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .hero .actions {
    justify-content: center;
  }
  .scene {
    height: 520px;
  }
  .scene-tilt {
    scale: 0.86;
  }
}
@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .section {
    padding: 76px 0;
  }
  .section h2 {
    margin-bottom: 40px;
  }
  .scene {
    height: 460px;
  }
  .scene-tilt {
    scale: 0.72;
  }
  .orbit-2,
  .chip-a,
  .chip-c {
    display: none;
  }
  .chip-b {
    right: -6%;
    top: 6%;
  }
  .contact-panel {
    padding: 72px 22px 56px;
    border-radius: 28px;
  }
  .contact-decor .ring {
    display: none;
  }
  .contact-decor .cube {
    --size: 40px;
    left: 18px;
    top: 18px;
  }
  .contact-decor .sphere {
    left: auto;
    right: 20px;
    bottom: 18px;
    width: 30px;
    height: 30px;
  }
}

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

/* Sign-in and start-free buttons side by side. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 420px) {
  .header-actions .btn {
    padding-inline: 12px;
    font-size: 0.88rem;
  }
}
