/* ===============================================================
   Tokitiv — Material 3 Expressive layer (loaded after styles.css).
   Seed #1D4ED8, blue-only tonal palette. Simple surfaces, bold type,
   springy motion. Legacy variables map onto M3 colour roles.
   =============================================================== */
:root {
  --md-primary: #1D4ED8;
  --md-on-primary: #FFFFFF;
  --md-primary-container: #DCE1FF;
  --md-on-primary-container: #00174B;
  --md-secondary-container: #DCE2F9;
  --md-on-secondary-container: #141B2C;
  --md-tertiary: #006782;
  --md-tertiary-container: #BBE9FF;
  --md-on-tertiary-container: #001F29;
  --md-surface: #FAF8FF;
  --md-surface-container-lowest: #FFFFFF;
  --md-surface-container-low: #F4F3FA;
  --md-surface-container: #EEEDF4;
  --md-surface-container-high: #E8E7EF;
  --md-on-surface: #1A1B21;
  --md-on-surface-variant: #44464F;
  --md-outline: #757680;
  --md-outline-variant: #C5C6D0;
  --md-inverse-surface: #2F3036;

  --md-shape-sm: 8px;
  --md-shape-md: 16px;
  --md-shape-lg: 24px;
  --md-shape-xl: 32px;
  --md-shape-full: 999px;

  --md-spring-fast: cubic-bezier(0.42, 1.67, 0.21, 0.90);
  --md-spring-default: cubic-bezier(0.38, 1.21, 0.22, 1.00);
  --md-effects: cubic-bezier(0.31, 0.94, 0.34, 1.00);

  --md-elev-1: 0 1px 2px rgba(0, 0, 0, .10), 0 1px 3px 1px rgba(0, 0, 0, .06);
  --md-elev-2: 0 1px 2px rgba(0, 0, 0, .10), 0 2px 6px 2px rgba(0, 0, 0, .08);
  --md-elev-3: 0 4px 8px 3px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .12);

  /* legacy aliases used by styles.css */
  --bg: var(--md-surface);
  --bg-alt: var(--md-surface-container-low);
  --surface: var(--md-surface-container-lowest);
  --ink: var(--md-on-surface);
  --ink-2: var(--md-on-surface-variant);
  --muted: var(--md-on-surface-variant);
  --line: var(--md-outline-variant);
  --blue-700: var(--md-primary);
  --shadow: var(--md-elev-3);
  --shadow-sm: var(--md-elev-1);
  --radius: var(--md-shape-lg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --md-primary: #B6C4FF;
    --md-on-primary: #002780;
    --md-primary-container: #1E3FB3;
    --md-on-primary-container: #DCE1FF;
    --md-secondary-container: #3F4759;
    --md-on-secondary-container: #DCE2F9;
    --md-tertiary: #5FD4FD;
    --md-tertiary-container: #004D62;
    --md-on-tertiary-container: #BBE9FF;
    --md-surface: #121318;
    --md-surface-container-lowest: #0D0E13;
    --md-surface-container-low: #1A1B21;
    --md-surface-container: #1E1F25;
    --md-surface-container-high: #292A2F;
    --md-on-surface: #E3E1E9;
    --md-on-surface-variant: #C5C6D0;
    --md-outline: #8F909A;
    --md-outline-variant: #44464F;
    --md-inverse-surface: #2A2B31;
    --surface: var(--md-surface-container);
  }
}

body { background: var(--md-surface); color: var(--md-on-surface); }
h1, h2 { font-weight: 800; letter-spacing: -.03em; }
h3 { font-weight: 700; letter-spacing: -.01em; }

/* Emphasised accent: solid primary instead of gradient text */
.grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--md-primary); }

/* Top app bar */
.nav { background: color-mix(in srgb, var(--md-surface) 88%, transparent); border-bottom: 1px solid var(--md-outline-variant); }
.nav-links a { color: var(--md-on-surface-variant); }
.nav-links a:hover { color: var(--md-primary); }

/* Buttons: M3 hierarchy, full shape, spring press (shape morph) */
.btn {
  border-radius: var(--md-shape-full); font-weight: 600; letter-spacing: .01em;
  transition: transform .35s var(--md-spring-fast), border-radius .35s var(--md-spring-fast),
              background-color .2s var(--md-effects), box-shadow .2s var(--md-effects);
}
.btn:hover { transform: none; }
.btn:active { transform: scale(.96); border-radius: var(--md-shape-md); }
.btn-primary { background: var(--md-primary); color: var(--md-on-primary); box-shadow: none; }
.btn-primary:hover { background: color-mix(in srgb, var(--md-primary) 90%, var(--md-on-primary)); box-shadow: var(--md-elev-1); }
.btn-soft { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--md-secondary-container) 88%, var(--md-on-secondary-container)); }
.btn-ghost { color: var(--md-primary); }
.btn-light { background: var(--md-primary-container); color: var(--md-on-primary-container); box-shadow: none; }
.btn-light:hover { background: color-mix(in srgb, var(--md-primary-container) 86%, var(--md-on-primary-container)); }

/* Chips */
.eyebrow { border-radius: var(--md-shape-sm); background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.eyebrow-light { background: rgba(182, 196, 255, .16); color: #DCE1FF; }
.brand-tag { border-radius: var(--md-shape-sm); background: var(--md-secondary-container); color: var(--md-on-secondary-container); }

/* Hero */
.glow-a { opacity: .30; }
.glow-b { opacity: .20; }
.phone { border-radius: 48px; background: var(--md-inverse-surface); box-shadow: var(--md-elev-3); }
.phone-notch { background: var(--md-inverse-surface); }
.float-card { border-radius: var(--md-shape-md); background: var(--md-surface-container-lowest); box-shadow: var(--md-elev-2); border-color: var(--md-outline-variant); }
.bubble.out { background: #1D4ED8; }
.send { background: #1D4ED8; color: #FFFFFF; }

/* Cards: filled tonal surfaces, expressive radius, springy lift + shape morph */
.card, .step, .faq details, .vault, .compare {
  background: var(--md-surface-container-low); border: 0; box-shadow: none; border-radius: var(--md-shape-lg);
  transition: transform .45s var(--md-spring-default), border-radius .45s var(--md-spring-default), background-color .2s var(--md-effects);
}
.card:hover { transform: translateY(-4px); background: var(--md-surface-container); border-radius: var(--md-shape-xl); box-shadow: none; }
.section.alt { background: var(--md-surface-container-low); }
.section.alt .card, .section.alt .step, .section.alt .faq details { background: var(--md-surface-container-lowest); }
@media (prefers-color-scheme: dark) {
  .section.alt .card, .section.alt .step, .section.alt .faq details { background: var(--md-surface-container); }
}
.ic { border-radius: var(--md-shape-md); }
.ic-blue, .ic-indigo { background: var(--md-primary-container); }
.ic-sky, .ic-cyan, .ic-teal { background: var(--md-tertiary-container); }
.ic-blue svg, .ic-indigo svg { stroke: var(--md-on-primary-container); }
.ic-sky svg, .ic-cyan svg, .ic-teal svg { stroke: var(--md-on-tertiary-container); }
.num { background: var(--md-primary); color: var(--md-on-primary); box-shadow: none; border-radius: var(--md-shape-md); }
.envelope { background: #1D4ED8; border-radius: var(--md-shape-lg); }
.seal { background: var(--md-tertiary-container); }
.server { background: var(--md-surface-container); border: 0; border-radius: var(--md-shape-md); }

/* Comparison table */
.compare-head > span { background: var(--md-surface-container); }
.compare .us { background: color-mix(in srgb, var(--md-primary-container) 55%, transparent); }
.compare-head .us { background: var(--md-primary-container); color: var(--md-on-primary-container); }

/* Tabs as an M3 segmented control */
.tab-list { background: var(--md-surface-container); padding: 4px; border-radius: var(--md-shape-full); width: fit-content; max-width: 100%; }
.tab-list button { border: 0; background: transparent; border-radius: var(--md-shape-full); }
.tab-list button[aria-selected="true"] { background: var(--md-primary); color: var(--md-on-primary); }
.code { border-radius: var(--md-shape-lg); }

/* Dark statement bands: calm inverse surface, one accent */
.rust-band, .dark-band, .dev-hero {
  background: radial-gradient(800px 380px at 85% 0%, rgba(182, 196, 255, .12), transparent 60%), #11131B;
}
.rust-band h2 span, .dev-hero h1 span, .grad-light {
  background: none; -webkit-background-clip: initial; background-clip: initial; color: #B6C4FF;
}
.rust-kicker { color: #B6C4FF; }
.pillar .tech { color: #9DD9F5; }

/* CTA band: primary container */
.cta-band { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.cta-inner p { color: var(--md-on-primary-container); opacity: .85; }
.cta-band .btn-light { background: var(--md-primary); color: var(--md-on-primary); }
.cta-kicker { color: var(--md-on-primary-container); }

/* Footer */
.footer { background: var(--md-surface-container-low); border-top: 0; }
.footer a.company:hover { color: var(--md-primary); }

:focus-visible { outline: 3px solid var(--md-primary); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .step, .faq details, .vault, .compare { transition: none; }
  .btn:active { transform: none; }
}

/* M3 Expressive shape library (generated) */
:root {
  --md-shape-cookie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M99.00,50.00 L98.73,51.70 L97.93,53.35 L96.68,54.91 L95.10,56.34 L93.33,57.64 L91.53,58.83 L89.84,59.93 L88.41,61.01 L87.32,62.13 L86.65,63.34 L86.39,64.70 L86.50,66.25 L86.91,68.00 L87.49,69.93 L88.11,72.00 L88.62,74.14 L88.91,76.25 L88.87,78.24 L88.42,80.02 L87.54,81.50 L86.23,82.62 L84.56,83.37 L82.61,83.77 L80.48,83.85 L78.28,83.71 L76.14,83.45 L74.14,83.22 L72.34,83.12 L70.80,83.28 L69.50,83.77 L68.42,84.65 L67.52,85.91 L66.70,87.51 L65.90,89.36 L65.05,91.35 L64.07,93.32 L62.94,95.12 L61.62,96.62 L60.14,97.69 L58.51,98.26 L56.79,98.28 L55.02,97.78 L53.27,96.82 L51.59,95.52 L50.00,94.00 L48.52,92.43 L47.14,90.96 L45.82,89.74 L44.54,88.86 L43.23,88.41 L41.84,88.39 L40.33,88.77 L38.68,89.47 L36.88,90.38 L34.95,91.35 L32.94,92.23 L30.91,92.88 L28.94,93.18 L27.11,93.05 L25.50,92.44 L24.16,91.35 L23.13,89.83 L22.41,87.97 L21.96,85.89 L21.72,83.71 L21.59,81.55 L21.48,79.54 L21.26,77.76 L20.84,76.26 L20.12,75.07 L19.07,74.16 L17.68,73.48 L15.96,72.96 L14.00,72.50 L11.89,72.00 L9.79,71.38 L7.81,70.58 L6.11,69.54 L4.79,68.26 L3.96,66.76 L3.63,65.07 L3.82,63.24 L4.46,61.36 L5.45,59.47 L6.67,57.64 L7.96,55.91 L9.16,54.29 L10.14,52.79 L10.78,51.37 L11.00,50.00 L10.78,48.63 L10.14,47.21 L9.16,45.71 L7.96,44.09 L6.67,42.36 L5.45,40.53 L4.46,38.64 L3.82,36.76 L3.63,34.93 L3.96,33.24 L4.79,31.74 L6.11,30.46 L7.81,29.42 L9.79,28.62 L11.89,28.00 L14.00,27.50 L15.96,27.04 L17.68,26.52 L19.07,25.84 L20.12,24.93 L20.84,23.74 L21.26,22.24 L21.48,20.46 L21.59,18.45 L21.72,16.29 L21.96,14.11 L22.41,12.03 L23.13,10.17 L24.16,8.65 L25.50,7.56 L27.11,6.95 L28.94,6.82 L30.91,7.12 L32.94,7.77 L34.95,8.65 L36.88,9.62 L38.68,10.53 L40.33,11.23 L41.84,11.61 L43.23,11.59 L44.54,11.14 L45.82,10.26 L47.14,9.04 L48.52,7.57 L50.00,6.00 L51.59,4.48 L53.27,3.18 L55.02,2.22 L56.79,1.72 L58.51,1.74 L60.14,2.31 L61.62,3.38 L62.94,4.88 L64.07,6.68 L65.05,8.65 L65.90,10.64 L66.70,12.49 L67.52,14.09 L68.42,15.35 L69.50,16.23 L70.80,16.72 L72.34,16.88 L74.14,16.78 L76.14,16.55 L78.28,16.29 L80.48,16.15 L82.61,16.23 L84.56,16.63 L86.23,17.38 L87.54,18.50 L88.42,19.98 L88.87,21.76 L88.91,23.75 L88.62,25.86 L88.11,28.00 L87.49,30.07 L86.91,32.00 L86.50,33.75 L86.39,35.30 L86.65,36.66 L87.32,37.87 L88.41,38.99 L89.84,40.07 L91.53,41.17 L93.33,42.36 L95.10,43.66 L96.68,45.09 L97.93,46.65 L98.73,48.30 Z'/%3E%3C/svg%3E");
  --md-shape-clover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M99.00,50.00 L98.95,51.71 L98.82,53.41 L98.59,55.11 L98.27,56.78 L97.86,58.44 L97.36,60.07 L96.78,61.66 L96.11,63.22 L95.35,64.74 L94.52,66.20 L93.60,67.62 L92.61,68.97 L91.54,70.26 L90.40,71.48 L89.19,72.63 L87.91,73.69 L86.56,74.66 L85.14,75.53 L83.64,76.29 L82.06,76.90 L80.35,77.33 L78.39,77.42 L77.42,78.39 L77.33,80.35 L76.90,82.06 L76.29,83.64 L75.53,85.14 L74.66,86.56 L73.69,87.91 L72.63,89.19 L71.48,90.40 L70.26,91.54 L68.97,92.61 L67.62,93.60 L66.20,94.52 L64.74,95.35 L63.22,96.11 L61.66,96.78 L60.07,97.36 L58.44,97.86 L56.78,98.27 L55.11,98.59 L53.41,98.82 L51.71,98.95 L50.00,99.00 L48.29,98.95 L46.59,98.82 L44.89,98.59 L43.22,98.27 L41.56,97.86 L39.93,97.36 L38.34,96.78 L36.78,96.11 L35.26,95.35 L33.80,94.52 L32.38,93.60 L31.03,92.61 L29.74,91.54 L28.52,90.40 L27.37,89.19 L26.31,87.91 L25.34,86.56 L24.47,85.14 L23.71,83.64 L23.10,82.06 L22.67,80.35 L22.58,78.39 L21.61,77.42 L19.65,77.33 L17.94,76.90 L16.36,76.29 L14.86,75.53 L13.44,74.66 L12.09,73.69 L10.81,72.63 L9.60,71.48 L8.46,70.26 L7.39,68.97 L6.40,67.62 L5.48,66.20 L4.65,64.74 L3.89,63.22 L3.22,61.66 L2.64,60.07 L2.14,58.44 L1.73,56.78 L1.41,55.11 L1.18,53.41 L1.05,51.71 L1.00,50.00 L1.05,48.29 L1.18,46.59 L1.41,44.89 L1.73,43.22 L2.14,41.56 L2.64,39.93 L3.22,38.34 L3.89,36.78 L4.65,35.26 L5.48,33.80 L6.40,32.38 L7.39,31.03 L8.46,29.74 L9.60,28.52 L10.81,27.37 L12.09,26.31 L13.44,25.34 L14.86,24.47 L16.36,23.71 L17.94,23.10 L19.65,22.67 L21.61,22.58 L22.58,21.61 L22.67,19.65 L23.10,17.94 L23.71,16.36 L24.47,14.86 L25.34,13.44 L26.31,12.09 L27.37,10.81 L28.52,9.60 L29.74,8.46 L31.03,7.39 L32.38,6.40 L33.80,5.48 L35.26,4.65 L36.78,3.89 L38.34,3.22 L39.93,2.64 L41.56,2.14 L43.22,1.73 L44.89,1.41 L46.59,1.18 L48.29,1.05 L50.00,1.00 L51.71,1.05 L53.41,1.18 L55.11,1.41 L56.78,1.73 L58.44,2.14 L60.07,2.64 L61.66,3.22 L63.22,3.89 L64.74,4.65 L66.20,5.48 L67.62,6.40 L68.97,7.39 L70.26,8.46 L71.48,9.60 L72.63,10.81 L73.69,12.09 L74.66,13.44 L75.53,14.86 L76.29,16.36 L76.90,17.94 L77.33,19.65 L77.42,21.61 L78.39,22.58 L80.35,22.67 L82.06,23.10 L83.64,23.71 L85.14,24.47 L86.56,25.34 L87.91,26.31 L89.19,27.37 L90.40,28.52 L91.54,29.74 L92.61,31.03 L93.60,32.38 L94.52,33.80 L95.35,35.26 L96.11,36.78 L96.78,38.34 L97.36,39.93 L97.86,41.56 L98.27,43.22 L98.59,44.89 L98.82,46.59 L98.95,48.29 Z'/%3E%3C/svg%3E");
  --md-shape-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M99.00,50.00 L98.77,51.70 L98.10,53.36 L97.02,54.94 L95.57,56.41 L93.82,57.73 L91.85,58.89 L89.72,59.90 L87.55,60.77 L85.40,61.50 L83.36,62.14 L81.50,62.73 L79.89,63.31 L78.56,63.93 L77.55,64.65 L76.85,65.50 L76.46,66.53 L76.35,67.77 L76.47,69.23 L76.77,70.92 L77.19,72.82 L77.66,74.90 L78.10,77.13 L78.44,79.45 L78.63,81.79 L78.60,84.09 L78.33,86.27 L77.79,88.25 L76.97,89.98 L75.86,91.39 L74.50,92.44 L72.91,93.09 L71.14,93.34 L69.23,93.19 L67.24,92.67 L65.22,91.82 L63.22,90.69 L61.28,89.35 L59.45,87.90 L57.74,86.41 L56.16,84.96 L54.73,83.65 L53.42,82.54 L52.22,81.70 L51.09,81.18 L50.00,81.00 L48.91,81.18 L47.78,81.70 L46.58,82.54 L45.27,83.65 L43.84,84.96 L42.26,86.41 L40.55,87.90 L38.72,89.35 L36.78,90.69 L34.78,91.82 L32.76,92.67 L30.77,93.19 L28.86,93.34 L27.09,93.09 L25.50,92.44 L24.14,91.39 L23.03,89.98 L22.21,88.25 L21.67,86.27 L21.40,84.09 L21.37,81.79 L21.56,79.45 L21.90,77.13 L22.34,74.90 L22.81,72.82 L23.23,70.92 L23.53,69.23 L23.65,67.77 L23.54,66.53 L23.15,65.50 L22.45,64.65 L21.44,63.93 L20.11,63.31 L18.50,62.73 L16.64,62.14 L14.60,61.50 L12.45,60.77 L10.28,59.90 L8.15,58.89 L6.18,57.73 L4.43,56.41 L2.98,54.94 L1.90,53.36 L1.23,51.70 L1.00,50.00 L1.23,48.30 L1.90,46.64 L2.98,45.06 L4.43,43.59 L6.18,42.27 L8.15,41.11 L10.28,40.10 L12.45,39.23 L14.60,38.50 L16.64,37.86 L18.50,37.27 L20.11,36.69 L21.44,36.07 L22.45,35.35 L23.15,34.50 L23.54,33.47 L23.65,32.23 L23.53,30.77 L23.23,29.08 L22.81,27.18 L22.34,25.10 L21.90,22.87 L21.56,20.55 L21.37,18.21 L21.40,15.91 L21.67,13.73 L22.21,11.75 L23.03,10.02 L24.14,8.61 L25.50,7.56 L27.09,6.91 L28.86,6.66 L30.77,6.81 L32.76,7.33 L34.78,8.18 L36.78,9.31 L38.72,10.65 L40.55,12.10 L42.26,13.59 L43.84,15.04 L45.27,16.35 L46.58,17.46 L47.78,18.30 L48.91,18.82 L50.00,19.00 L51.09,18.82 L52.22,18.30 L53.42,17.46 L54.73,16.35 L56.16,15.04 L57.74,13.59 L59.45,12.10 L61.28,10.65 L63.22,9.31 L65.22,8.18 L67.24,7.33 L69.23,6.81 L71.14,6.66 L72.91,6.91 L74.50,7.56 L75.86,8.61 L76.97,10.02 L77.79,11.75 L78.33,13.73 L78.60,15.91 L78.63,18.21 L78.44,20.55 L78.10,22.87 L77.66,25.10 L77.19,27.18 L76.77,29.08 L76.47,30.77 L76.35,32.23 L76.46,33.47 L76.85,34.50 L77.55,35.35 L78.56,36.07 L79.89,36.69 L81.50,37.27 L83.36,37.86 L85.40,38.50 L87.55,39.23 L89.72,40.10 L91.85,41.11 L93.82,42.27 L95.57,43.59 L97.02,45.06 L98.10,46.64 L98.77,48.30 Z'/%3E%3C/svg%3E");
  --md-shape-burst: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M99.00,50.00 L98.45,51.69 L96.90,53.28 L94.61,54.69 L91.96,55.90 L89.39,56.95 L87.31,57.93 L86.03,58.98 L85.69,60.23 L86.28,61.79 L87.59,63.68 L89.29,65.87 L90.98,68.24 L92.26,70.61 L92.81,72.76 L92.44,74.50 L91.11,75.69 L88.98,76.29 L86.29,76.36 L83.39,76.09 L80.64,75.71 L78.35,75.52 L76.71,75.79 L75.79,76.71 L75.52,78.35 L75.71,80.64 L76.09,83.39 L76.36,86.29 L76.29,88.98 L75.69,91.11 L74.50,92.44 L72.76,92.81 L70.61,92.26 L68.24,90.98 L65.87,89.29 L63.68,87.59 L61.79,86.28 L60.23,85.69 L58.98,86.03 L57.93,87.31 L56.95,89.39 L55.90,91.96 L54.69,94.61 L53.28,96.90 L51.69,98.45 L50.00,99.00 L48.31,98.45 L46.72,96.90 L45.31,94.61 L44.10,91.96 L43.05,89.39 L42.07,87.31 L41.02,86.03 L39.77,85.69 L38.21,86.28 L36.32,87.59 L34.13,89.29 L31.76,90.98 L29.39,92.26 L27.24,92.81 L25.50,92.44 L24.31,91.11 L23.71,88.98 L23.64,86.29 L23.91,83.39 L24.29,80.64 L24.48,78.35 L24.21,76.71 L23.29,75.79 L21.65,75.52 L19.36,75.71 L16.61,76.09 L13.71,76.36 L11.02,76.29 L8.89,75.69 L7.56,74.50 L7.19,72.76 L7.74,70.61 L9.02,68.24 L10.71,65.87 L12.41,63.68 L13.72,61.79 L14.31,60.23 L13.97,58.98 L12.69,57.93 L10.61,56.95 L8.04,55.90 L5.39,54.69 L3.10,53.28 L1.55,51.69 L1.00,50.00 L1.55,48.31 L3.10,46.72 L5.39,45.31 L8.04,44.10 L10.61,43.05 L12.69,42.07 L13.97,41.02 L14.31,39.77 L13.72,38.21 L12.41,36.32 L10.71,34.13 L9.02,31.76 L7.74,29.39 L7.19,27.24 L7.56,25.50 L8.89,24.31 L11.02,23.71 L13.71,23.64 L16.61,23.91 L19.36,24.29 L21.65,24.48 L23.29,24.21 L24.21,23.29 L24.48,21.65 L24.29,19.36 L23.91,16.61 L23.64,13.71 L23.71,11.02 L24.31,8.89 L25.50,7.56 L27.24,7.19 L29.39,7.74 L31.76,9.02 L34.13,10.71 L36.32,12.41 L38.21,13.72 L39.77,14.31 L41.02,13.97 L42.07,12.69 L43.05,10.61 L44.10,8.04 L45.31,5.39 L46.72,3.10 L48.31,1.55 L50.00,1.00 L51.69,1.55 L53.28,3.10 L54.69,5.39 L55.90,8.04 L56.95,10.61 L57.93,12.69 L58.98,13.97 L60.23,14.31 L61.79,13.72 L63.68,12.41 L65.87,10.71 L68.24,9.02 L70.61,7.74 L72.76,7.19 L74.50,7.56 L75.69,8.89 L76.29,11.02 L76.36,13.71 L76.09,16.61 L75.71,19.36 L75.52,21.65 L75.79,23.29 L76.71,24.21 L78.35,24.48 L80.64,24.29 L83.39,23.91 L86.29,23.64 L88.98,23.71 L91.11,24.31 L92.44,25.50 L92.81,27.24 L92.26,29.39 L90.98,31.76 L89.29,34.13 L87.59,36.32 L86.28,38.21 L85.69,39.77 L86.03,41.02 L87.31,42.07 L89.39,43.05 L91.96,44.10 L94.61,45.31 L96.90,46.72 L98.45,48.31 Z'/%3E%3C/svg%3E");
  --md-shape-puffy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M97.00,50.00 L96.97,51.64 L96.89,53.28 L96.74,54.91 L96.54,56.54 L96.29,58.16 L95.97,59.77 L95.60,61.37 L95.18,62.95 L94.70,64.52 L94.17,66.07 L93.58,67.61 L92.94,69.12 L92.24,70.60 L91.50,72.07 L90.70,73.50 L89.86,74.91 L88.96,76.28 L88.02,77.63 L87.04,78.94 L86.00,80.21 L84.93,81.45 L83.81,82.65 L82.65,83.81 L81.45,84.93 L80.21,86.00 L78.94,87.04 L77.63,88.02 L76.28,88.96 L74.91,89.86 L73.50,90.70 L72.07,91.50 L70.60,92.24 L69.12,92.94 L67.61,93.58 L66.07,94.17 L64.52,94.70 L62.95,95.18 L61.37,95.60 L59.77,95.97 L58.16,96.29 L56.54,96.54 L54.91,96.74 L53.28,96.89 L51.64,96.97 L50.00,97.00 L48.36,96.97 L46.72,96.89 L45.09,96.74 L43.46,96.54 L41.84,96.29 L40.23,95.97 L38.63,95.60 L37.05,95.18 L35.48,94.70 L33.93,94.17 L32.39,93.58 L30.88,92.94 L29.40,92.24 L27.93,91.50 L26.50,90.70 L25.09,89.86 L23.72,88.96 L22.37,88.02 L21.06,87.04 L19.79,86.00 L18.55,84.93 L17.35,83.81 L16.19,82.65 L15.07,81.45 L14.00,80.21 L12.96,78.94 L11.98,77.63 L11.04,76.28 L10.14,74.91 L9.30,73.50 L8.50,72.07 L7.76,70.60 L7.06,69.12 L6.42,67.61 L5.83,66.07 L5.30,64.52 L4.82,62.95 L4.40,61.37 L4.03,59.77 L3.71,58.16 L3.46,56.54 L3.26,54.91 L3.11,53.28 L3.03,51.64 L3.00,50.00 L3.03,48.36 L3.11,46.72 L3.26,45.09 L3.46,43.46 L3.71,41.84 L4.03,40.23 L4.40,38.63 L4.82,37.05 L5.30,35.48 L5.83,33.93 L6.42,32.39 L7.06,30.88 L7.76,29.40 L8.50,27.93 L9.30,26.50 L10.14,25.09 L11.04,23.72 L11.98,22.37 L12.96,21.06 L14.00,19.79 L15.07,18.55 L16.19,17.35 L17.35,16.19 L18.55,15.07 L19.79,14.00 L21.06,12.96 L22.37,11.98 L23.72,11.04 L25.09,10.14 L26.50,9.30 L27.93,8.50 L29.40,7.76 L30.88,7.06 L32.39,6.42 L33.93,5.83 L35.48,5.30 L37.05,4.82 L38.63,4.40 L40.23,4.03 L41.84,3.71 L43.46,3.46 L45.09,3.26 L46.72,3.11 L48.36,3.03 L50.00,3.00 L51.64,3.03 L53.28,3.11 L54.91,3.26 L56.54,3.46 L58.16,3.71 L59.77,4.03 L61.37,4.40 L62.95,4.82 L64.52,5.30 L66.07,5.83 L67.61,6.42 L69.12,7.06 L70.60,7.76 L72.07,8.50 L73.50,9.30 L74.91,10.14 L76.28,11.04 L77.63,11.98 L78.94,12.96 L80.21,14.00 L81.45,15.07 L82.65,16.19 L83.81,17.35 L84.93,18.55 L86.00,19.79 L87.04,21.06 L88.02,22.37 L88.96,23.72 L89.86,25.09 L90.70,26.50 L91.50,27.93 L92.24,29.40 L92.94,30.88 L93.58,32.39 L94.17,33.93 L94.70,35.48 L95.18,37.05 L95.60,38.63 L95.97,40.23 L96.29,41.84 L96.54,43.46 L96.74,45.09 L96.89,46.72 L96.97,48.36 Z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   M3 Expressive: vibrant blues, contrasting shapes, spring motion,
   flexible type, adaptive navigation.
   --------------------------------------------------------------- */

/* Blue families (container / vivid / on-vivid) — light */
:root {
  --fam-royal-c: #DCE1FF;  --fam-royal: #1D4ED8;  --fam-royal-on: #FFFFFF;
  --fam-sky-c: #D3EBFF;    --fam-sky: #0369A1;    --fam-sky-on: #FFFFFF;
  --fam-deep-c: #E0E3FF;   --fam-deep: #2B3FA8;   --fam-deep-on: #FFFFFF;
  --fam-cyan-c: #CCF1FA;   --fam-cyan: #0E7490;   --fam-cyan-on: #FFFFFF;
  --fam-azure-c: #DDF1FF;  --fam-azure: #0284C7;  --fam-azure-on: #FFFFFF;
  --fam-navy-c: #DCE3F6;   --fam-navy: #1E3A8A;   --fam-navy-on: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fam-royal-c: #1C2A5E;  --fam-royal: #B6C4FF;  --fam-royal-on: #0B1A4F;
    --fam-sky-c: #0F3550;    --fam-sky: #8FD0FF;    --fam-sky-on: #002A44;
    --fam-deep-c: #23295A;   --fam-deep: #BFC6FF;   --fam-deep-on: #141A55;
    --fam-cyan-c: #0E3A44;   --fam-cyan: #7EDCF2;   --fam-cyan-on: #00313B;
    --fam-azure-c: #0F3352;  --fam-azure: #93D3FF;  --fam-azure-on: #002B47;
    --fam-navy-c: #1D2747;   --fam-navy: #C3CEF5;   --fam-navy-on: #16214A;
  }
}

/* Flexible, emphasised typography */
h1 { font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-weight: 850; text-wrap: balance; }
.lead, .section-head p, .rust-lead, .dev-lead { text-wrap: pretty; }
.hero h1 .grad { font-style: normal; }

/* Shape utility */
.shape { -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* Feature cards: one vibrant blue family + one contrasting shape each */
.grid.features .card { --c: var(--fam-royal-c); --v: var(--fam-royal); --on: var(--fam-royal-on); --m: var(--md-shape-cookie);
  background: var(--c); }
.grid.features .card:nth-child(2) { --c: var(--fam-sky-c); --v: var(--fam-sky); --on: var(--fam-sky-on); --m: var(--md-shape-clover); }
.grid.features .card:nth-child(3) { --c: var(--fam-deep-c); --v: var(--fam-deep); --on: var(--fam-deep-on); --m: var(--md-shape-flower); }
.grid.features .card:nth-child(4) { --c: var(--fam-cyan-c); --v: var(--fam-cyan); --on: var(--fam-cyan-on); --m: var(--md-shape-burst); }
.grid.features .card:nth-child(5) { --c: var(--fam-azure-c); --v: var(--fam-azure); --on: var(--fam-azure-on); --m: var(--md-shape-puffy); }
.grid.features .card:nth-child(6) { --c: var(--fam-navy-c); --v: var(--fam-navy); --on: var(--fam-navy-on); --m: var(--md-shape-cookie); }
.section.alt .grid.features .card { background: var(--c); }
.grid.features .card:hover { background: var(--c); filter: saturate(1.15); }
.grid.features .ic {
  width: 60px; height: 60px; border-radius: 0; background: var(--v);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  transition: transform .6s var(--md-spring-default);
}
.grid.features .ic svg { stroke: var(--on) !important; width: 26px; height: 26px; transition: transform .6s var(--md-spring-default); }
.grid.features .card:hover .ic { transform: rotate(60deg) scale(1.08); }
.grid.features .card:hover .ic svg { transform: rotate(-60deg); }
.grid.features .card h3 { color: var(--md-on-surface); }
.grid.features .card p { color: var(--md-on-surface-variant); }

/* Steps: contrasting shapes for the numbers */
.step .num { width: 56px; height: 56px; border-radius: 0; font-size: 1.15rem;
  -webkit-mask: var(--md-shape-clover) center / contain no-repeat; mask: var(--md-shape-clover) center / contain no-repeat;
  background: var(--fam-royal); color: var(--fam-royal-on); transition: transform .6s var(--md-spring-default); }
.step:nth-child(2) .num { -webkit-mask-image: var(--md-shape-flower); mask-image: var(--md-shape-flower); background: var(--fam-sky); color: var(--fam-sky-on); }
.step:nth-child(3) .num { -webkit-mask-image: var(--md-shape-burst); mask-image: var(--md-shape-burst); background: var(--fam-cyan); color: var(--fam-cyan-on); }
.step:hover .num { transform: rotate(-30deg) scale(1.06); }

/* Hero: a big vivid blue shape behind the phone (slow, calm rotation) */
.hero-art::before {
  content: ""; position: absolute; z-index: 0; width: min(520px, 92vw); aspect-ratio: 1;
  top: 50%; left: 50%; translate: -50% -50%;
  background: linear-gradient(140deg, #3B6BEF 0%, #1D4ED8 45%, #0EA5E9 100%);
  -webkit-mask: var(--md-shape-cookie) center / contain no-repeat; mask: var(--md-shape-cookie) center / contain no-repeat;
  animation: md-spin 60s linear infinite; opacity: .95;
}
.hero-art .phone, .hero-art .float-card { position: relative; z-index: 1; }
.hero-art .float-card { position: absolute; }
@keyframes md-spin { to { rotate: 360deg; } }

/* Privacy vault: shape behind the envelope */
.vault { background: var(--fam-royal-c); }
.envelope { background: var(--fam-royal); }

/* CTA band: vivid primary with a burst shape */
.cta-band { position: relative; overflow: hidden; background: var(--fam-royal); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .cta-band { background: #1E3FB3; } }
.cta-band::after {
  content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -120px; top: -140px;
  background: rgba(255, 255, 255, .10);
  -webkit-mask: var(--md-shape-burst) center / contain no-repeat; mask: var(--md-shape-burst) center / contain no-repeat;
  animation: md-spin 80s linear infinite reverse;
}
.cta-band::before {
  content: ""; position: absolute; width: 260px; aspect-ratio: 1; left: -80px; bottom: -110px;
  background: rgba(14, 165, 233, .35);
  -webkit-mask: var(--md-shape-flower) center / contain no-repeat; mask: var(--md-shape-flower) center / contain no-repeat;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2, .cta-band .cta-kicker { color: #FFFFFF; }
.cta-inner p { color: #DCE6FF; opacity: 1; }
.cta-band .btn-light { background: #FFFFFF; color: #1D4ED8; }
.cta-band .btn-light:hover { background: #DCE1FF; }

/* Rust band pillars: vivid shape bullets */
.pillar h3::before {
  content: ""; display: block; width: 36px; height: 36px; margin-bottom: 14px; background: #6E8BFF;
  -webkit-mask: var(--md-shape-cookie) center / contain no-repeat; mask: var(--md-shape-cookie) center / contain no-repeat;
}
.pillar:nth-child(2) h3::before { background: #38BDF8; -webkit-mask-image: var(--md-shape-clover); mask-image: var(--md-shape-clover); }
.pillar:nth-child(3) h3::before { background: #22D3EE; -webkit-mask-image: var(--md-shape-flower); mask-image: var(--md-shape-flower); }
.pillar:nth-child(4) h3::before { background: #93C5FD; -webkit-mask-image: var(--md-shape-burst); mask-image: var(--md-shape-burst); }

/* ---------- Adaptive navigation: M3 navigation drawer on small screens ---------- */
.menu-btn {
  display: none; width: 48px; height: 48px; border: 0; border-radius: var(--md-shape-full); cursor: pointer;
  background: transparent; color: var(--md-on-surface); align-items: center; justify-content: center;
  transition: background-color .2s var(--md-effects), border-radius .35s var(--md-spring-fast);
}
.menu-btn:hover { background: var(--md-surface-container); }
.menu-btn:active { border-radius: var(--md-shape-md); }
.menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 860px) { .menu-btn { display: inline-flex; } }

.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .25s var(--md-effects); }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 100; top: 0; right: 0; height: 100dvh; width: min(320px, 86vw);
  background: var(--md-surface-container-low); border-radius: var(--md-shape-xl) 0 0 var(--md-shape-xl);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--md-elev-3);
  transform: translateX(105%); transition: transform .5s var(--md-spring-default);
}
.drawer.open { transform: translateX(0); }
.drawer .drawer-title { padding: 8px 16px 12px; font-weight: 800; color: var(--md-on-surface-variant); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.drawer a.item {
  display: flex; align-items: center; min-height: 56px; padding: 0 20px; border-radius: var(--md-shape-full);
  color: var(--md-on-surface); text-decoration: none; font-weight: 600;
  transition: background-color .2s var(--md-effects);
}
.drawer a.item:hover, .drawer a.item:focus-visible { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.drawer .btn { margin: 12px 8px 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-art::before, .cta-band::after { animation: none; }
  .drawer, .scrim, .grid.features .ic, .grid.features .ic svg, .step .num { transition: none; }
}

/* ---------------------------------------------------------------
   Expressive 3D: softly lit, extruded shapes on rich blue hues
   (inspired by the Material team's visual language, blue-only).
   --------------------------------------------------------------- */
:root {
  /* Rich multi-hue blue gradient (navy → cobalt → royal → periwinkle → sky → cyan) */
  --hue-stage: radial-gradient(120% 90% at 100% 0%, #9CC9FF 0%, rgba(156, 201, 255, 0) 45%),
               radial-gradient(90% 80% at 0% 100%, #22D3EE 0%, rgba(34, 211, 238, 0) 40%),
               linear-gradient(135deg, #0B1A5E 0%, #1E3FB3 32%, #3B6BEF 58%, #8EA6FF 82%, #C9D8FF 100%);
  /* Lit faces for 3D shapes */
  --lit-royal: radial-gradient(115% 115% at 28% 22%, #F2F6FF 0%, #A9BFFF 16%, #5A7DF7 42%, #1D4ED8 68%, #102C8C 100%);
  --lit-sky: radial-gradient(115% 115% at 28% 22%, #F0FAFF 0%, #A6DCFF 18%, #47AEF2 44%, #0284C7 70%, #075985 100%);
  --lit-peri: radial-gradient(115% 115% at 28% 22%, #FFFFFF 0%, #D8DFFF 18%, #9AAEFF 45%, #5D72F0 72%, #2F3FB5 100%);
  --lit-cyan: radial-gradient(115% 115% at 28% 22%, #F0FEFF 0%, #A5F0FA 18%, #3FCDE6 45%, #0E9AB8 70%, #0B5E73 100%);
  --edge-dark: linear-gradient(160deg, #102C8C 0%, #081544 100%);
}

/* A 3D shape = extruded back (::before) + lit face (::after) */
.s3d { position: absolute; display: block; width: var(--w, 120px); aspect-ratio: var(--ar, 1);
  filter: drop-shadow(0 18px 28px rgba(8, 21, 68, .35)); pointer-events: none; }
.s3d::before, .s3d::after { content: ""; position: absolute; inset: 0; border-radius: var(--r, 0);
  -webkit-mask: var(--m, none) center / 100% 100% no-repeat; mask: var(--m, none) center / 100% 100% no-repeat; }
.s3d::before { background: var(--edge-dark); translate: var(--dx, 9px) var(--dy, 12px); }
.s3d::after {
  background:
    radial-gradient(60% 45% at 30% 20%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    var(--face, var(--lit-royal));
}
.s3d.pill { --r: 999px; --ar: 2.1 / 1; }
.s3d.oval { --r: 50%; --ar: 1.25 / 1; }
.s3d.cookie { --m: var(--md-shape-cookie); }
.s3d.clover { --m: var(--md-shape-clover); }
.s3d.flower { --m: var(--md-shape-flower); }
.s3d.burst { --m: var(--md-shape-burst); }
.s3d.puffy { --m: var(--md-shape-puffy); }
.s3d.sky { --face: var(--lit-sky); }
.s3d.peri { --face: var(--lit-peri); }
.s3d.cyan { --face: var(--lit-cyan); }

@keyframes float-a { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 6deg)); } }
@keyframes float-b { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(12px) rotate(calc(var(--rot, 0deg) - 5deg)); } }
.s3d { animation: float-a 9s ease-in-out infinite; transform: rotate(var(--rot, 0deg)); }
.s3d:nth-child(even) { animation-name: float-b; animation-duration: 11s; }

/* ---------- Hero stage ---------- */
.hero-art::before { content: none; animation: none; }
.stage {
  position: absolute; z-index: 0; inset: 2% -2% 2% 4%; border-radius: 40px; overflow: hidden;
  background: var(--hue-stage);
  box-shadow: 0 30px 80px -30px rgba(11, 26, 94, .55);
}
.stage::after { /* soft grain-free sheen */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 70% 10%, rgba(255, 255, 255, .25), transparent 60%);
}
.stage .s3d.a { --w: 150px; top: 6%; left: 4%; --rot: -18deg; }
.stage .s3d.b { --w: 120px; bottom: 8%; left: 2%; --rot: 12deg; }
.stage .s3d.c { --w: 170px; top: 10%; right: -4%; --rot: 8deg; }
.stage .s3d.d { --w: 130px; bottom: 4%; right: 2%; --rot: -10deg; }
.hero-art { min-height: 620px; align-items: center; }
.hero-art .phone { box-shadow: 0 40px 80px -24px rgba(8, 21, 68, .6); }
@media (max-width: 980px) {
  .hero-art { min-height: 0; padding: 36px 0; }
  .stage { inset: 0 -4px; border-radius: 32px; }
  .stage .s3d.a { --w: 110px; } .stage .s3d.b { --w: 90px; } .stage .s3d.c { --w: 120px; } .stage .s3d.d { --w: 96px; }
}

/* ---------- Feature icons: 3D-lit ---------- */
.grid.features .ic {
  background:
    radial-gradient(60% 45% at 30% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(115% 115% at 28% 22%, color-mix(in srgb, var(--v) 25%, white) 0%, var(--v) 55%, color-mix(in srgb, var(--v) 70%, black) 100%);
  filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--v) 45%, transparent));
}
.grid.features .ic svg { stroke: #FFFFFF !important; }
@media (prefers-color-scheme: dark) {
  .grid.features .ic {
    background:
      radial-gradient(60% 45% at 30% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
      radial-gradient(115% 115% at 28% 22%, white 0%, var(--v) 45%, color-mix(in srgb, var(--v) 55%, #0B1A5E) 100%);
  }
  .grid.features .ic svg { stroke: #0B1A5E !important; }
}

/* ---------- Closing banner: rich hues + floating 3D shapes ---------- */
.cta-band { background: var(--hue-stage); }
.cta-band::before, .cta-band::after { content: none; }
.cta-band .s3d.e { --w: 160px; left: 4%; top: 18%; --rot: -14deg; }
.cta-band .s3d.f { --w: 120px; right: 6%; bottom: 14%; --rot: 16deg; }
.cta-band .s3d.g { --w: 90px; right: 18%; top: 10%; --rot: 4deg; }
@media (max-width: 760px) { .cta-band .s3d.e, .cta-band .s3d.g { display: none; } .cta-band .s3d.f { --w: 90px; opacity: .7; } }
.cta-inner h2 { text-shadow: 0 2px 24px rgba(8, 21, 68, .35); }

@media (prefers-reduced-motion: reduce) { .s3d { animation: none; } }

/* Hero stage: wider, shapes peek around the phone */
@media (min-width: 981px) {
  .stage { inset: 3% -9% 3% -7%; }
  .hero-art .phone { width: 310px; }
  .stage .s3d.a { --w: 190px; top: 5%; left: -6%; }
  .stage .s3d.b { --w: 150px; bottom: 6%; left: -2%; }
  .stage .s3d.c { --w: 200px; top: 4%; right: -8%; }
  .stage .s3d.d { --w: 160px; bottom: 5%; right: -3%; }
  .hero-art .fc1 { left: -10%; }
  .hero-art .fc2 { right: -8%; }
}

/* Brighter, more vibrant hero stage (light, luminous blues) */
:root {
  --hue-stage: radial-gradient(80% 70% at 85% 8%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 55%),
               radial-gradient(70% 60% at 5% 100%, rgba(103, 232, 249, .85) 0%, rgba(103, 232, 249, 0) 55%),
               linear-gradient(140deg, #3D6DFF 0%, #5E8BFF 30%, #8DB6FF 58%, #BCE0FF 82%, #E3F3FF 100%);
  --edge-dark: linear-gradient(160deg, #2F5BE0 0%, #1C3A9E 100%);
}
.stage { box-shadow: 0 30px 70px -30px rgba(29, 78, 216, .45); }
.stage::after { background: radial-gradient(60% 40% at 30% 0%, rgba(255, 255, 255, .35), transparent 70%); }
.s3d { filter: drop-shadow(0 16px 24px rgba(29, 78, 216, .28)); }

/* Light silver-blue phone frame in light mode */
.hero-art .phone {
  background: linear-gradient(160deg, #FFFFFF 0%, #E6ECFF 55%, #CBD7FB 100%);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, .12), 0 40px 80px -28px rgba(29, 78, 216, .45);
}
.hero-art .phone-notch { background: #CBD7FB; }
@media (prefers-color-scheme: dark) {
  :root {
    --hue-stage: radial-gradient(80% 70% at 85% 8%, rgba(182, 196, 255, .55) 0%, rgba(182, 196, 255, 0) 55%),
                 radial-gradient(70% 60% at 5% 100%, rgba(34, 211, 238, .55) 0%, rgba(34, 211, 238, 0) 55%),
                 linear-gradient(140deg, #2747C9 0%, #3D6DFF 35%, #6E95FF 65%, #A8C8FF 100%);
  }
  .hero-art .phone { background: linear-gradient(160deg, #3A3F55 0%, #262A3A 100%); box-shadow: 0 40px 80px -28px rgba(0, 0, 0, .6); }
  .hero-art .phone-notch { background: #262A3A; }
}

/* Closing banner: bright, luminous blues like the hero (dark text for contrast) */
.cta-band { background: var(--hue-stage); color: #0B1A5E; }
.cta-inner h2 { color: #0B1A5E; text-shadow: none; }
.cta-inner p { color: #1E3A8A; opacity: 1; }
.cta-band .cta-kicker { color: #1E3A8A; }
.cta-band .btn-light { background: #1D4ED8; color: #FFFFFF; box-shadow: 0 10px 30px -10px rgba(29, 78, 216, .6); }
.cta-band .btn-light:hover { background: #1A45C2; }
@media (prefers-color-scheme: dark) {
  .cta-band { color: #FFFFFF; }
  .cta-inner h2 { color: #FFFFFF; text-shadow: 0 2px 24px rgba(8, 21, 68, .35); }
  .cta-inner p, .cta-band .cta-kicker { color: #E8EEFF; }
  .cta-band .btn-light { background: #FFFFFF; color: #1D4ED8; }
}

/* Smooth motion: continuous rotation + independent gentle float.
   Separate `rotate` and `translate` properties animate independently. */
@keyframes s3d-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes s3d-spin-rev { from { rotate: 360deg; } to { rotate: 0deg; } }
@keyframes s3d-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.s3d {
  transform: none;
  animation: s3d-spin 38s linear infinite, s3d-bob 7s ease-in-out infinite;
  will-change: rotate, translate;
}
.s3d:nth-child(2) { animation: s3d-spin-rev 46s linear infinite, s3d-bob 8.5s ease-in-out -2s infinite; }
.s3d:nth-child(3) { animation: s3d-spin 54s linear infinite, s3d-bob 9.5s ease-in-out -4s infinite; }
.s3d:nth-child(4) { animation: s3d-spin-rev 42s linear infinite, s3d-bob 7.5s ease-in-out -1s infinite; }
/* Elongated shapes rotate more slowly so they stay readable */
.s3d.pill, .s3d.oval { animation-duration: 64s, 8s; }
@media (prefers-reduced-motion: reduce) { .s3d { animation: none !important; } }

/* ---------------------------------------------------------------
   Hero: no panel — a soft light-blue hue + drifting 'waves of pixels'
   --------------------------------------------------------------- */
:root { --pixel-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' preserveAspectRatio='none'%3E%3Cpath d='M0.0,120.0 L10.0,124.6 L20.0,129.1 L30.0,133.5 L40.0,137.6 L50.0,141.4 L60.0,144.8 L70.0,147.7 L80.0,150.1 L90.0,152.0 L100.0,153.3 L110.0,153.9 L120.0,153.9 L130.0,153.3 L140.0,152.1 L150.0,150.3 L160.0,147.9 L170.0,145.0 L180.0,141.7 L190.0,137.9 L200.0,133.8 L210.0,129.5 L220.0,125.0 L230.0,120.4 L240.0,115.7 L250.0,111.2 L260.0,106.8 L270.0,102.7 L280.0,98.9 L290.0,95.5 L300.0,92.5 L310.0,90.0 L320.0,88.1 L330.0,86.8 L340.0,86.1 L350.0,86.0 L360.0,86.6 L370.0,87.8 L380.0,89.5 L390.0,91.9 L400.0,94.7 L410.0,98.1 L420.0,101.8 L430.0,105.8 L440.0,110.2 L450.0,114.7 L460.0,119.3 L470.0,123.9 L480.0,128.5 L490.0,132.8 L500.0,137.0 L510.0,140.8 L520.0,144.3 L530.0,147.3 L540.0,149.8 L550.0,151.7 L560.0,153.1 L570.0,153.8 L580.0,154.0 L590.0,153.5 L600.0,152.3' fill='none' stroke='white' stroke-opacity='0.9' stroke-width='54' stroke-linecap='round'/%3E%3Cpath d='M0.0,289.4 L10.0,290.0 L20.0,289.8 L30.0,288.9 L40.0,287.2 L50.0,284.9 L60.0,281.9 L70.0,278.4 L80.0,274.3 L90.0,269.7 L100.0,264.8 L110.0,259.7 L120.0,254.3 L130.0,248.9 L140.0,243.5 L150.0,238.2 L160.0,233.1 L170.0,228.3 L180.0,224.0 L190.0,220.1 L200.0,216.8 L210.0,214.0 L220.0,212.0 L230.0,210.7 L240.0,210.0 L250.0,210.2 L260.0,211.0 L270.0,212.6 L280.0,214.9 L290.0,217.8 L300.0,221.3 L310.0,225.4 L320.0,229.9 L330.0,234.8 L340.0,239.9 L350.0,245.3 L360.0,250.7 L370.0,256.1 L380.0,261.4 L390.0,266.5 L400.0,271.3 L410.0,275.7 L420.0,279.6 L430.0,283.0 L440.0,285.8 L450.0,287.9 L460.0,289.3 L470.0,289.9 L480.0,289.9 L490.0,289.1 L500.0,287.5 L510.0,285.3 L520.0,282.4 L530.0,279.0 L540.0,274.9 L550.0,270.5 L560.0,265.6 L570.0,260.5 L580.0,255.1 L590.0,249.7 L600.0,244.3' fill='none' stroke='white' stroke-opacity='1.0' stroke-width='70' stroke-linecap='round'/%3E%3Cpath d='M0.0,398.6 L10.0,394.2 L20.0,389.6 L30.0,384.8 L40.0,379.9 L50.0,375.0 L60.0,370.2 L70.0,365.6 L80.0,361.3 L90.0,357.3 L100.0,353.7 L110.0,350.6 L120.0,348.0 L130.0,346.1 L140.0,344.8 L150.0,344.1 L160.0,344.1 L170.0,344.7 L180.0,346.0 L190.0,348.0 L200.0,350.5 L210.0,353.6 L220.0,357.1 L230.0,361.1 L240.0,365.5 L250.0,370.1 L260.0,374.8 L270.0,379.7 L280.0,384.6 L290.0,389.4 L300.0,394.0 L310.0,398.4 L320.0,402.4 L330.0,406.1 L340.0,409.2 L350.0,411.8 L360.0,413.8 L370.0,415.2 L380.0,415.9 L390.0,415.9 L400.0,415.3 L410.0,414.1 L420.0,412.2 L430.0,409.7 L440.0,406.7 L450.0,403.2 L460.0,399.2 L470.0,394.9 L480.0,390.3 L490.0,385.5 L500.0,380.6 L510.0,375.8 L520.0,370.9 L530.0,366.3 L540.0,361.9 L550.0,357.9 L560.0,354.2 L570.0,351.0 L580.0,348.4 L590.0,346.4 L600.0,344.9' fill='none' stroke='white' stroke-opacity='0.85' stroke-width='58' stroke-linecap='round'/%3E%3Cpath d='M0.0,479.4 L10.0,476.6 L20.0,474.3 L30.0,472.4 L40.0,471.1 L50.0,470.3 L60.0,470.0 L70.0,470.3 L80.0,471.1 L90.0,472.5 L100.0,474.4 L110.0,476.8 L120.0,479.6 L130.0,482.7 L140.0,486.2 L150.0,490.0 L160.0,493.9 L170.0,497.9 L180.0,502.0 L190.0,506.1 L200.0,510.0 L210.0,513.7 L220.0,517.2 L230.0,520.4 L240.0,523.2 L250.0,525.6 L260.0,527.5 L270.0,528.8 L280.0,529.7 L290.0,530.0 L300.0,529.7 L310.0,528.9 L320.0,527.6 L330.0,525.8 L340.0,523.4 L350.0,520.7 L360.0,517.5 L370.0,514.1 L380.0,510.3 L390.0,506.4 L400.0,502.4 L410.0,498.3 L420.0,494.2 L430.0,490.3 L440.0,486.5 L450.0,483.0 L460.0,479.8 L470.0,477.0 L480.0,474.6 L490.0,472.7 L500.0,471.2 L510.0,470.3 L520.0,470.0 L530.0,470.2 L540.0,471.0 L550.0,472.3 L560.0,474.1 L570.0,476.4 L580.0,479.1 L590.0,482.2 L600.0,485.7' fill='none' stroke='white' stroke-opacity='0.7' stroke-width='46' stroke-linecap='round'/%3E%3C/svg%3E"); }
.stage {
  inset: -12% -16% -12% -14%; border-radius: 0; overflow: visible;
  background: none; box-shadow: none;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 52% 50%, rgba(147, 197, 253, .55) 0%, rgba(147, 197, 253, 0) 100%),
    radial-gradient(30% 30% at 78% 22%, rgba(186, 230, 253, .55) 0%, rgba(186, 230, 253, 0) 100%),
    radial-gradient(28% 28% at 22% 80%, rgba(165, 180, 252, .45) 0%, rgba(165, 180, 252, 0) 100%);
}
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(29, 78, 216, .55) 1.3px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask: var(--pixel-waves) center / 100% 100% no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: var(--pixel-waves) center / 100% 100% no-repeat, radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-composite: intersect;
  animation: pixel-drift 14s linear infinite;
}
@keyframes pixel-drift { from { background-position: 0 0; } to { background-position: 56px 14px; } }
@media (prefers-color-scheme: dark) {
  .stage::before {
    background:
      radial-gradient(42% 46% at 52% 50%, rgba(59, 107, 239, .35) 0%, rgba(59, 107, 239, 0) 100%),
      radial-gradient(30% 30% at 78% 22%, rgba(56, 189, 248, .22) 0%, rgba(56, 189, 248, 0) 100%),
      radial-gradient(28% 28% at 22% 80%, rgba(129, 140, 248, .22) 0%, rgba(129, 140, 248, 0) 100%);
  }
  .stage::after { background-image: radial-gradient(circle, rgba(147, 197, 253, .55) 1.3px, transparent 1.8px); }
}
.stage .s3d { z-index: 1; }
@media (min-width: 981px) {
  .stage .s3d.a { --w: 150px; top: 8%; left: 2%; }
  .stage .s3d.b { --w: 120px; bottom: 10%; left: 6%; }
  .stage .s3d.c { --w: 160px; top: 6%; right: 2%; }
  .stage .s3d.d { --w: 130px; bottom: 8%; right: 6%; }
}
@media (max-width: 980px) { .stage { inset: -4% -4%; } }
@media (prefers-reduced-motion: reduce) { .stage::after { animation: none; } }


/* Feather the hero glow so it never shows a box edge */
.stage::before {
  -webkit-mask: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask: radial-gradient(closest-side, #000 45%, transparent 100%);
}

/* Closing banner logo: white app-icon tile, visible on any background */
.cta-inner .cta-logo {
  width: 88px; height: 88px; margin-bottom: 16px; border-radius: 24px;
  box-shadow: 0 12px 30px -10px rgba(11, 26, 94, .45);
}

/* Floating 3D shapes at 1/4 size (hero + closing banner) */
.s3d { --dx: 3px; --dy: 4px; filter: drop-shadow(0 6px 10px rgba(29, 78, 216, .28)); }
@keyframes s3d-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.stage .s3d.a { --w: 38px; }
.stage .s3d.b { --w: 30px; }
.stage .s3d.c { --w: 40px; }
.stage .s3d.d { --w: 33px; }
@media (max-width: 980px) {
  .stage .s3d.a { --w: 28px; } .stage .s3d.b { --w: 22px; } .stage .s3d.c { --w: 30px; } .stage .s3d.d { --w: 24px; }
}
.cta-band .s3d.e { --w: 40px; }
.cta-band .s3d.f { --w: 30px; opacity: 1; }
.cta-band .s3d.g { --w: 23px; }

/* Random floating 3D shapes (positions, paths, speeds set by site.js) */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; }
.s3d.floater {
  left: var(--x); top: var(--y); --w: var(--size);
  animation:
    s3d-spin var(--spin) linear infinite var(--spin-dir),
    s3d-wander var(--dur) ease-in-out var(--delay) infinite alternate;
}
@keyframes s3d-wander {
  0%   { translate: 0 0; }
  25%  { translate: var(--x1) var(--y1); }
  50%  { translate: var(--x2) var(--y2); }
  75%  { translate: var(--x3) var(--y3); }
  100% { translate: var(--x4) var(--y4); }
}
@media (prefers-reduced-motion: reduce) { .s3d.floater { animation: none !important; } }

/* Feature cards: lighter, airy pastel blues (icons stay the colour accent) */
:root {
  --fam-royal-c: #EFF2FF;
  --fam-sky-c:   #EBF6FF;
  --fam-deep-c:  #F1F1FF;
  --fam-cyan-c:  #E9F9FC;
  --fam-azure-c: #EDF7FF;
  --fam-navy-c:  #EEF1FA;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fam-royal-c: #18203F;
    --fam-sky-c:   #142838;
    --fam-deep-c:  #1B1D3F;
    --fam-cyan-c:  #132B31;
    --fam-azure-c: #13263A;
    --fam-navy-c:  #191F33;
  }
}
.grid.features .card { box-shadow: 0 1px 0 rgba(29, 78, 216, .06), 0 10px 30px -18px rgba(29, 78, 216, .25); }
.grid.features .card:hover { filter: none; box-shadow: 0 1px 0 rgba(29, 78, 216, .06), 0 18px 40px -20px rgba(29, 78, 216, .35); }
@media (prefers-color-scheme: dark) { .grid.features .card, .grid.features .card:hover { box-shadow: none; } }

/* Feature icon gems: soft pastel 3D (icon drawn in the card's deep blue) */
.grid.features .ic {
  background:
    radial-gradient(55% 42% at 30% 22%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(115% 115% at 28% 22%,
      #FFFFFF 0%,
      color-mix(in srgb, var(--v) 18%, white) 38%,
      color-mix(in srgb, var(--v) 34%, white) 78%,
      color-mix(in srgb, var(--v) 46%, white) 100%);
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--v) 22%, transparent));
}
.grid.features .ic svg { stroke: var(--v) !important; }
@media (prefers-color-scheme: dark) {
  .grid.features .ic {
    background:
      radial-gradient(55% 42% at 30% 22%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%),
      radial-gradient(115% 115% at 28% 22%,
        color-mix(in srgb, var(--v) 70%, white) 0%,
        color-mix(in srgb, var(--v) 55%, #1A1B21) 60%,
        color-mix(in srgb, var(--v) 40%, #1A1B21) 100%);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  }
  .grid.features .ic svg { stroke: #F1F4FF !important; }
}

/* How it works: pastel cards + soft 3D number gems (matches features) */
.steps .step { --c: var(--fam-royal-c); --v: var(--fam-royal); background: var(--c);
  box-shadow: 0 1px 0 rgba(29, 78, 216, .06), 0 10px 30px -18px rgba(29, 78, 216, .25); }
.steps .step:nth-child(2) { --c: var(--fam-sky-c); --v: var(--fam-sky); }
.steps .step:nth-child(3) { --c: var(--fam-cyan-c); --v: var(--fam-cyan); }
.section.alt .steps .step { background: var(--c); }
.step .num, .step:nth-child(2) .num, .step:nth-child(3) .num {
  background:
    radial-gradient(55% 42% at 30% 22%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(115% 115% at 28% 22%,
      #FFFFFF 0%,
      color-mix(in srgb, var(--v) 18%, white) 38%,
      color-mix(in srgb, var(--v) 34%, white) 78%,
      color-mix(in srgb, var(--v) 46%, white) 100%);
  color: var(--v); font-weight: 900;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--v) 22%, transparent));
}
@media (prefers-color-scheme: dark) {
  .steps .step { box-shadow: none; }
  .step .num, .step:nth-child(2) .num, .step:nth-child(3) .num {
    background:
      radial-gradient(55% 42% at 30% 22%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%),
      radial-gradient(115% 115% at 28% 22%,
        color-mix(in srgb, var(--v) 70%, white) 0%,
        color-mix(in srgb, var(--v) 55%, #1A1B21) 60%,
        color-mix(in srgb, var(--v) 40%, #1A1B21) 100%);
    color: #F1F4FF; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  }
}

/* ---------- Engineered in Rust: vibrant royal blue (not black) ---------- */
.rust-band {
  background:
    radial-gradient(70% 60% at 90% 0%, rgba(147, 197, 253, .45), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(34, 211, 238, .30), transparent 60%),
    linear-gradient(135deg, #1A36A8 0%, #1D4ED8 45%, #3B82F6 100%);
  color: #FFFFFF;
}
.rust-band h2 span { color: #CFE6FF; }
.rust-band .rust-kicker { color: #DCE6FF; }
.rust-band .rust-lead { color: #E3EBFF; }
.rust-band .pillars { border-top-color: rgba(255, 255, 255, .25); }
.rust-band .pillar h3 { color: #FFFFFF; }
.rust-band .pillar p { color: #DCE6FF; }
.rust-band .pillar .tech { color: #CFEFFF; border-top-color: rgba(255, 255, 255, .25); }
.rust-band .pillar .tech code { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .rust-band {
    background:
      radial-gradient(70% 60% at 90% 0%, rgba(96, 165, 250, .30), transparent 60%),
      radial-gradient(60% 50% at 0% 100%, rgba(34, 211, 238, .18), transparent 60%),
      linear-gradient(135deg, #14246E 0%, #1A3BB0 50%, #2563EB 100%);
  }
}

/* ---------- For businesses & developers: light sky blue ---------- */
.dark-band {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(255, 255, 255, .8), transparent 60%),
    linear-gradient(160deg, #E4F3FF 0%, #D3EAFF 55%, #C6E1FF 100%);
  color: var(--md-on-surface);
}
.dark-band h2 { color: #0B1A5E; }
.dark-band .grad-light { color: #1D4ED8; }
.dark-band .eyebrow-light { background: rgba(29, 78, 216, .10); color: #1D4ED8; }
.dark-band .integrate-copy > p, .dark-band .int-save { color: #33416B; }
.dark-band .int-list li { background: rgba(255, 255, 255, .75); border: 1px solid rgba(29, 78, 216, .10); }
.dark-band .int-list b { color: #0B1A5E; }
.dark-band .int-list span { color: #44507A; }
.dark-band .btn-light { background: #1D4ED8; color: #FFFFFF; }
.dark-band .btn-light:hover { background: #1A45C2; }
.dark-band .btn-outline { color: #1D4ED8; border-color: rgba(29, 78, 216, .45); }
.dark-band .btn-outline:hover { background: rgba(29, 78, 216, .08); }
.dark-band .code { box-shadow: 0 24px 50px -24px rgba(11, 26, 94, .45); }
@media (prefers-color-scheme: dark) {
  .dark-band {
    background:
      radial-gradient(60% 60% at 100% 0%, rgba(56, 189, 248, .18), transparent 60%),
      linear-gradient(160deg, #102540 0%, #0F2036 100%);
    color: #E3E1E9;
  }
  .dark-band h2 { color: #EAF2FF; }
  .dark-band .grad-light { color: #93C5FD; }
  .dark-band .eyebrow-light { background: rgba(147, 197, 253, .14); color: #BFDBFE; }
  .dark-band .integrate-copy > p, .dark-band .int-save { color: #C5D2F2; }
  .dark-band .int-list li { background: rgba(255, 255, 255, .05); border-color: rgba(147, 197, 253, .14); }
  .dark-band .int-list b { color: #FFFFFF; }
  .dark-band .int-list span { color: #A9B7DA; }
  .dark-band .btn-light { background: #B6C4FF; color: #0B1A5E; }
  .dark-band .btn-outline { color: #BFDBFE; border-color: rgba(191, 219, 254, .45); }
}

/* Typeface: Noto Sans (self-hosted variable font) */
body, button, input, select, textarea, .btn, .tab-list button {
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2 { font-stretch: 100%; }

/* Noto Sans is wider: tune display sizes so headlines keep their rhythm */
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.rust-band h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.dev-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

/* Engineered in Rust: deep navy blue */
.rust-band {
  background:
    radial-gradient(70% 60% at 90% 0%, rgba(59, 107, 239, .35), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(14, 165, 233, .18), transparent 60%),
    linear-gradient(135deg, #0A1A4F 0%, #102A6B 55%, #16348A 100%);
}
@media (prefers-color-scheme: dark) {
  .rust-band {
    background:
      radial-gradient(70% 60% at 90% 0%, rgba(59, 107, 239, .28), transparent 60%),
      linear-gradient(135deg, #081443 0%, #0E2460 55%, #132E7A 100%);
  }
}

/* Privacy section: sealed-envelope card in deep navy */
.envelope, .vault .envelope { background: #082567; box-shadow: 0 18px 40px -18px rgba(8, 37, 103, .55); }
.envelope .lines i { background: rgba(255, 255, 255, .32); }

/* Floating sheet of pixels (canvas) replaces the flat dotted bands */
.stage::after { content: none; }
.stage .pixel-sheet {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 4%; width: 100%; height: 62%;
  color: #1D4ED8; opacity: .55; pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 30%, #000 80%, transparent 100%),
                linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent 0%, #000 30%, #000 80%, transparent 100%),
        linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
@media (prefers-color-scheme: dark) { .stage .pixel-sheet { color: #93C5FD; opacity: .5; } }
.stage .pixel-sheet { height: 82%; bottom: -2%; opacity: .7; }
@media (prefers-color-scheme: dark) { .stage .pixel-sheet { opacity: .65; } }

/* Pixel sheet: bottom half, recedes to an infinite horizon at the middle,
   no visible bottom edge (rows continue past the frame). */
.stage .pixel-sheet {
  top: 50%; bottom: auto; height: 50%; opacity: .75;
  -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%),
                linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%),
        linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* Full-width pixel sheet across the hero's bottom half: runs past the screen
   edges (no side edges), recedes to the horizon at mid-height, fades softly
   at the bottom, and is gentler under the text on the left. */
.hero { position: relative; isolation: isolate; }
.hero > .hero-sheet {
  position: absolute; z-index: -1; left: -6%; right: -6%; width: auto; bottom: 0; top: auto; height: 56%;
  color: #1D4ED8; opacity: .7; pointer-events: none;
  -webkit-mask:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 35%, #000 60%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,.28) 0%, rgba(0,0,0,.45) 35%, #000 60%, #000 100%);
  mask-composite: intersect;
}
@media (prefers-color-scheme: dark) { .hero > .hero-sheet { color: #93C5FD; opacity: .6; } }
@media (max-width: 980px) {
  .hero > .hero-sheet { height: 40%; -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%); mask: linear-gradient(to bottom, transparent 0%, #000 20%, #000 82%, transparent 100%); }
}
.hero > .hero-sheet { left: -6%; right: auto; width: 112%; }

/* Hero like the admin sign-in panel: silver + light blues, clearly visible
   pixel sheet, small floating shapes. */
.hero {
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(55% 50% at 0% 100%, rgba(186, 230, 253, .8) 0%, rgba(186, 230, 253, 0) 60%),
    linear-gradient(140deg, #F3F5F9 0%, #E7ECF4 30%, #DDE8FB 62%, #CFE0FF 100%);
}
.hero .glow-a, .hero .glow-b { display: none; }
.stage::before { opacity: .55; }
.hero > .hero-sheet {
  opacity: .85;
  -webkit-mask:
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 88%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 58%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 88%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 58%, #000 100%);
  mask-composite: intersect;
}
.hero .eyebrow { background: rgba(255, 255, 255, .7); }
@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(60% 55% at 100% 0%, rgba(147, 197, 253, .22) 0%, transparent 60%),
      radial-gradient(55% 50% at 0% 100%, rgba(56, 189, 248, .16) 0%, transparent 60%),
      linear-gradient(140deg, #2A2F3A 0%, #232A3A 45%, #1E2A45 100%);
  }
  .hero > .hero-sheet { opacity: .75; }
  .hero .eyebrow { background: rgba(255, 255, 255, .08); }
}

/* Closing banner: blue waves flowing left to right (three layers, parallax) */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .floaters { z-index: 1; }
.cta-inner { z-index: 2; }
.cta-band::before, .cta-band::after, .cta-band .cta-waves {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  pointer-events: none; z-index: 0; background-repeat: repeat-x; background-position: 0 100%;
}
.cta-band::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,300 L0.0,150.0 L10.0,153.1 L20.0,156.2 L30.0,159.3 L40.0,162.2 L50.0,165.0 L60.0,167.6 L70.0,170.1 L80.0,172.3 L90.0,174.3 L100.0,176.0 L110.0,177.4 L120.0,178.5 L130.0,179.3 L140.0,179.8 L150.0,180.0 L160.0,179.8 L170.0,179.3 L180.0,178.5 L190.0,177.4 L200.0,176.0 L210.0,174.3 L220.0,172.3 L230.0,170.1 L240.0,167.6 L250.0,165.0 L260.0,162.2 L270.0,159.3 L280.0,156.2 L290.0,153.1 L300.0,150.0 L310.0,146.9 L320.0,143.8 L330.0,140.7 L340.0,137.8 L350.0,135.0 L360.0,132.4 L370.0,129.9 L380.0,127.7 L390.0,125.7 L400.0,124.0 L410.0,122.6 L420.0,121.5 L430.0,120.7 L440.0,120.2 L450.0,120.0 L460.0,120.2 L470.0,120.7 L480.0,121.5 L490.0,122.6 L500.0,124.0 L510.0,125.7 L520.0,127.7 L530.0,129.9 L540.0,132.4 L550.0,135.0 L560.0,137.8 L570.0,140.7 L580.0,143.8 L590.0,146.9 L600.0,150.0 L610.0,153.1 L620.0,156.2 L630.0,159.3 L640.0,162.2 L650.0,165.0 L660.0,167.6 L670.0,170.1 L680.0,172.3 L690.0,174.3 L700.0,176.0 L710.0,177.4 L720.0,178.5 L730.0,179.3 L740.0,179.8 L750.0,180.0 L760.0,179.8 L770.0,179.3 L780.0,178.5 L790.0,177.4 L800.0,176.0 L810.0,174.3 L820.0,172.3 L830.0,170.1 L840.0,167.6 L850.0,165.0 L860.0,162.2 L870.0,159.3 L880.0,156.2 L890.0,153.1 L900.0,150.0 L910.0,146.9 L920.0,143.8 L930.0,140.7 L940.0,137.8 L950.0,135.0 L960.0,132.4 L970.0,129.9 L980.0,127.7 L990.0,125.7 L1000.0,124.0 L1010.0,122.6 L1020.0,121.5 L1030.0,120.7 L1040.0,120.2 L1050.0,120.0 L1060.0,120.2 L1070.0,120.7 L1080.0,121.5 L1090.0,122.6 L1100.0,124.0 L1110.0,125.7 L1120.0,127.7 L1130.0,129.9 L1140.0,132.4 L1150.0,135.0 L1160.0,137.8 L1170.0,140.7 L1180.0,143.8 L1190.0,146.9 L1200.0,150.0 L1200,300 Z' fill='%2393C5FD' fill-opacity='0.55'/%3E%3C/svg%3E"); background-size: 1200px 100%;
  animation: cta-wave-1 26s linear infinite;
}
.cta-band::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,300 L0.0,210.1 L10.0,210.8 L20.0,211.0 L30.0,210.5 L40.0,209.4 L50.0,207.6 L60.0,205.4 L70.0,202.6 L80.0,199.4 L90.0,195.8 L100.0,192.0 L110.0,188.0 L120.0,183.9 L130.0,179.8 L140.0,175.9 L150.0,172.2 L160.0,168.8 L170.0,165.8 L180.0,163.3 L190.0,161.3 L200.0,159.9 L210.0,159.2 L220.0,159.0 L230.0,159.5 L240.0,160.6 L250.0,162.4 L260.0,164.6 L270.0,167.4 L280.0,170.6 L290.0,174.2 L300.0,178.0 L310.0,182.0 L320.0,186.1 L330.0,190.2 L340.0,194.1 L350.0,197.8 L360.0,201.2 L370.0,204.2 L380.0,206.7 L390.0,208.7 L400.0,210.1 L410.0,210.8 L420.0,211.0 L430.0,210.5 L440.0,209.4 L450.0,207.6 L460.0,205.4 L470.0,202.6 L480.0,199.4 L490.0,195.8 L500.0,192.0 L510.0,188.0 L520.0,183.9 L530.0,179.8 L540.0,175.9 L550.0,172.2 L560.0,168.8 L570.0,165.8 L580.0,163.3 L590.0,161.3 L600.0,159.9 L610.0,159.2 L620.0,159.0 L630.0,159.5 L640.0,160.6 L650.0,162.4 L660.0,164.6 L670.0,167.4 L680.0,170.6 L690.0,174.2 L700.0,178.0 L710.0,182.0 L720.0,186.1 L730.0,190.2 L740.0,194.1 L750.0,197.8 L760.0,201.2 L770.0,204.2 L780.0,206.7 L790.0,208.7 L800.0,210.1 L810.0,210.8 L820.0,211.0 L830.0,210.5 L840.0,209.4 L850.0,207.6 L860.0,205.4 L870.0,202.6 L880.0,199.4 L890.0,195.8 L900.0,192.0 L910.0,188.0 L920.0,183.9 L930.0,179.8 L940.0,175.9 L950.0,172.2 L960.0,168.8 L970.0,165.8 L980.0,163.3 L990.0,161.3 L1000.0,159.9 L1010.0,159.2 L1020.0,159.0 L1030.0,159.5 L1040.0,160.6 L1050.0,162.4 L1060.0,164.6 L1070.0,167.4 L1080.0,170.6 L1090.0,174.2 L1100.0,178.0 L1110.0,182.0 L1120.0,186.1 L1130.0,190.2 L1140.0,194.1 L1150.0,197.8 L1160.0,201.2 L1170.0,204.2 L1180.0,206.7 L1190.0,208.7 L1200.0,210.1 L1200,300 Z' fill='%233B82F6' fill-opacity='0.35'/%3E%3C/svg%3E"); background-size: 900px 92%;
  animation: cta-wave-2 18s linear infinite;
}
.cta-band .cta-waves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,300 L0.0,235.5 L10.0,233.9 L20.0,232.1 L30.0,230.3 L40.0,228.3 L50.0,226.3 L60.0,224.3 L70.0,222.2 L80.0,220.1 L90.0,218.0 L100.0,216.0 L110.0,214.0 L120.0,212.1 L130.0,210.4 L140.0,208.7 L150.0,207.3 L160.0,205.9 L170.0,204.8 L180.0,203.8 L190.0,203.0 L200.0,202.5 L210.0,202.1 L220.0,202.0 L230.0,202.1 L240.0,202.4 L250.0,202.9 L260.0,203.7 L270.0,204.6 L280.0,205.7 L290.0,207.0 L300.0,208.5 L310.0,210.1 L320.0,211.9 L330.0,213.7 L340.0,215.7 L350.0,217.7 L360.0,219.7 L370.0,221.8 L380.0,223.9 L390.0,226.0 L400.0,228.0 L410.0,230.0 L420.0,231.9 L430.0,233.6 L440.0,235.3 L450.0,236.7 L460.0,238.1 L470.0,239.2 L480.0,240.2 L490.0,241.0 L500.0,241.5 L510.0,241.9 L520.0,242.0 L530.0,241.9 L540.0,241.6 L550.0,241.1 L560.0,240.3 L570.0,239.4 L580.0,238.3 L590.0,237.0 L600.0,235.5 L610.0,233.9 L620.0,232.1 L630.0,230.3 L640.0,228.3 L650.0,226.3 L660.0,224.3 L670.0,222.2 L680.0,220.1 L690.0,218.0 L700.0,216.0 L710.0,214.0 L720.0,212.1 L730.0,210.4 L740.0,208.7 L750.0,207.3 L760.0,205.9 L770.0,204.8 L780.0,203.8 L790.0,203.0 L800.0,202.5 L810.0,202.1 L820.0,202.0 L830.0,202.1 L840.0,202.4 L850.0,202.9 L860.0,203.7 L870.0,204.6 L880.0,205.7 L890.0,207.0 L900.0,208.5 L910.0,210.1 L920.0,211.9 L930.0,213.7 L940.0,215.7 L950.0,217.7 L960.0,219.7 L970.0,221.8 L980.0,223.9 L990.0,226.0 L1000.0,228.0 L1010.0,230.0 L1020.0,231.9 L1030.0,233.6 L1040.0,235.3 L1050.0,236.7 L1060.0,238.1 L1070.0,239.2 L1080.0,240.2 L1090.0,241.0 L1100.0,241.5 L1110.0,241.9 L1120.0,242.0 L1130.0,241.9 L1140.0,241.6 L1150.0,241.1 L1160.0,240.3 L1170.0,239.4 L1180.0,238.3 L1190.0,237.0 L1200.0,235.5 L1200,300 Z' fill='%231D4ED8' fill-opacity='0.3'/%3E%3C/svg%3E"); background-size: 1400px 80%;
  animation: cta-wave-3 12s linear infinite;
}
/* Moving the tile rightwards = waves travel from left to right */
@keyframes cta-wave-1 { from { background-position-x: 0; } to { background-position-x: 1200px; } }
@keyframes cta-wave-2 { from { background-position-x: 0; } to { background-position-x: 900px; } }
@keyframes cta-wave-3 { from { background-position-x: 0; } to { background-position-x: 1400px; } }
@media (prefers-color-scheme: dark) {
  .cta-band::before { opacity: .55; }
  .cta-band::after, .cta-band .cta-waves { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before, .cta-band::after, .cta-band .cta-waves { animation: none; }
}

/* Reset older decorative rules on these layers so the waves span the banner */
.cta-band::before, .cta-band::after {
  width: auto; top: auto; aspect-ratio: auto; border-radius: 0; rotate: none; translate: none;
  -webkit-mask: none; mask: none; filter: none;
}
.cta-band::before, .cta-band::after, .cta-band .cta-waves { background-color: transparent; }

/* ===============================================================
   Hero device family: desktop, tablet, phone, watch — slim 3D.
   Thin bezels, a visible thin edge (stacked offset shadows), soft
   drop shadow and a gentle shared tilt. Pure CSS, decorative.
   =============================================================== */
.hero-art { perspective: 1600px; min-height: 600px; }
.hero-art .dev, .hero-art .phone {
  position: absolute; z-index: 2;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(5deg);
}
.hero-art .dev {
  background: linear-gradient(160deg, #FFFFFF 0%, #E9EEFC 55%, #D3DDF8 100%);
  border-radius: 18px; padding: 8px;
  /* slim edge: a few stacked 1px offsets + soft shadow */
  box-shadow:
    1px 1px 0 #D7E0F7, 2px 2px 0 #C8D4F3, 3px 3px 0 #B8C7EE, 4px 4px 0 #A8B9E8,
    0 30px 60px -22px rgba(29, 78, 216, .45);
}
.dev-screen {
  position: relative; overflow: hidden; height: 100%;
  border-radius: 12px; background: #F4F6FF; color: #0F1E46;
  font-size: 10px; line-height: 1.25;
}
.dev-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 32%);
}

/* ---- Desktop monitor (back) ---- */
.hero-art .dev.desktop { width: 470px; height: 300px; left: -2%; top: 6%; padding: 9px 9px 14px; border-radius: 16px; }
.hero-art .dev.desktop .d-stand {
  position: absolute; left: 50%; bottom: -44px; width: 120px; height: 44px; translate: -50% 0;
  background: linear-gradient(180deg, #D3DDF8, #B8C7EE);
  clip-path: polygon(38% 0, 62% 0, 70% 78%, 100% 84%, 100% 100%, 0 100%, 0 84%, 30% 78%);
}
.d-bar { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; background: #E6ECFB; }
.d-bar i { width: 6px; height: 6px; border-radius: 50%; background: #F87171; }
.d-bar i:nth-child(2) { background: #FBBF24; } .d-bar i:nth-child(3) { background: #34D399; }
.d-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: #FFFFFF; color: #5B6A92; font-size: 8px; }
.d-app { display: grid; grid-template-columns: 34% 1fr; height: calc(100% - 20px); }
.d-list { background: #FFFFFF; border-right: 1px solid #E3E8F6; padding: 6px; display: grid; align-content: start; gap: 4px; }
.d-row { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 8px; }
.d-row.on { background: #DCE1FF; }
.d-av { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 8px; }
.d-av.a1 { background: linear-gradient(135deg, #F59E0B, #EC4899); }
.d-av.a2 { background: linear-gradient(135deg, #1D4ED8, #38BDF8); }
.d-av.a3 { background: linear-gradient(135deg, #0E7490, #22D3EE); }
.d-av.a4 { background: linear-gradient(135deg, #3730A3, #818CF8); }
.d-lines { display: grid; gap: 3px; flex: 1; }
.d-lines b { height: 4px; width: 60%; border-radius: 3px; background: #9DAACB; }
.d-lines em { height: 3px; width: 85%; border-radius: 3px; background: #CDD5EA; }
.d-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.d-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: #FFFFFF; border-bottom: 1px solid #E3E8F6; }
.d-head b { font-size: 9px; } .d-head small { color: #15803D; font-size: 7px; margin-left: auto; }
.d-msgs, .t-msgs { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.m { max-width: 72%; padding: 5px 8px; border-radius: 10px; font-size: 8px; box-shadow: 0 1px 2px rgba(15, 30, 70, .12); }
.m.in { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 3px; }
.m.out { align-self: flex-end; background: #1D4ED8; color: #FFFFFF; border-bottom-right-radius: 3px; }
.m.file::before { content: "▣ "; opacity: .8; }
.d-composer { display: flex; align-items: center; gap: 6px; margin: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #FFFFFF; color: #8A98BF; font-size: 8px; }
.d-composer i { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; background: #1D4ED8; }

/* ---- Tablet (left, front) ---- */
.hero-art .dev.tablet { width: 200px; height: 270px; left: -6%; bottom: 4%; border-radius: 20px; z-index: 3; }
.hero-art .dev.tablet .dev-screen { border-radius: 14px; display: grid; grid-template-rows: auto 1fr auto; }
.t-head { display: flex; align-items: center; gap: 6px; padding: 8px; background: #FFFFFF; border-bottom: 1px solid #E3E8F6; }
.t-head b { font-size: 9px; }

/* ---- Phone (right, front): reuse the existing mock-up, scaled ---- */
.hero-art .phone {
  width: 310px; right: -2%; bottom: 0; z-index: 4;
  transform: rotateY(-14deg) rotateX(5deg) scale(.66);
  transform-origin: right bottom;
}

/* ---- Smartwatch (front, centre) ---- */
.hero-art .dev.watch {
  width: 84px; height: 98px; left: 38%; bottom: -1%; z-index: 5;
  border-radius: 26px; padding: 6px;
}
.hero-art .dev.watch .dev-screen {
  border-radius: 20px; background: #0B1220; color: #EAF0FF;
  display: grid; align-content: center; justify-items: center; gap: 1px; text-align: center;
}
.w-time { font-size: 9px; font-weight: 800; color: #93C5FD; }
.w-app { font-size: 6px; letter-spacing: .08em; text-transform: uppercase; color: #9AABD3; }
.w-from { font-size: 9px; } .w-msg { font-size: 7px; color: #C5D2F2; }
.w-band { position: absolute; left: 50%; translate: -50% 0; width: 52px; height: 30px; z-index: -1;
  background: linear-gradient(180deg, #B8C7EE, #8EA6E8); }
.w-band.top { top: -24px; border-radius: 12px 12px 4px 4px; }
.w-band.bottom { bottom: -24px; border-radius: 4px 4px 12px 12px; }
.w-crown { position: absolute; right: -5px; top: 36%; width: 5px; height: 14px; border-radius: 2px; background: #A8B9E8; }

/* Float cards above the scene */
.hero-art .float-card { z-index: 6; }
.hero-art .fc1 { top: 2%; left: auto; right: 2%; }
.hero-art .fc2 { bottom: 34%; right: auto; left: 30%; }

/* Dark mode: deeper slim frames, dark screens */
@media (prefers-color-scheme: dark) {
  .hero-art .dev { background: linear-gradient(160deg, #3A3F55 0%, #2B3044 60%, #22263A 100%);
    box-shadow: 1px 1px 0 #30354A, 2px 2px 0 #2A2F43, 3px 3px 0 #24283B, 4px 4px 0 #1E2234, 0 30px 60px -22px rgba(0,0,0,.6); }
  .dev-screen { background: #121A2E; color: #E3E1E9; }
  .dev-screen::after { background: linear-gradient(115deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 32%); }
  .d-bar { background: #1B2440; } .d-bar span { background: #121A2E; color: #9AABD3; }
  .d-list, .d-head, .t-head, .d-composer, .m.in { background: #1A2340; border-color: #26304F; }
  .d-row.on { background: #1E3FB3; }
  .d-lines b { background: #4C5B85; } .d-lines em { background: #2D3A5E; }
  .m.out { background: #3B6BEF; }
  .w-band { background: linear-gradient(180deg, #3A3F55, #22263A); }
}

/* Smaller screens: phone + watch only */
@media (max-width: 980px) {
  .hero-art { min-height: 520px; perspective: 1200px; }
  .hero-art .dev.desktop, .hero-art .dev.tablet { display: none; }
  .hero-art .phone { right: 50%; translate: 50% 0; transform: rotateY(-10deg) rotateX(4deg) scale(.9); transform-origin: center bottom; }
  .hero-art .dev.watch { left: auto; right: 6%; bottom: 6%; }
}
@media (max-width: 420px) {
  .hero-art .phone { transform: rotateY(-8deg) rotateX(3deg) scale(.82); }
  .hero-art .dev.watch { right: 2%; transform: rotateY(-14deg) rotateX(5deg) scale(.85); }
}

/* ---- Devices: stronger tilt (thickness visible) + gentle float ---- */
.hero-art .dev, .hero-art .phone { transform: rotateY(-24deg) rotateX(9deg) rotateZ(-1deg); }
.hero-art .phone { transform: rotateY(-24deg) rotateX(9deg) rotateZ(-1deg) scale(.66); }
.hero-art .dev {
  box-shadow:
    1px 1px 0 #DCE4F8, 2px 2px 0 #CFD9F5, 3px 3px 0 #C2CEF1, 4px 4px 0 #B5C4ED,
    5px 5px 0 #A8B9E8, 6px 6px 0 #9BAFE4, 7px 7px 0 #8FA5DF,
    0 34px 60px -20px rgba(29, 78, 216, .45);
}
.hero-art .phone {
  box-shadow:
    1px 1px 0 #DCE4F8, 2px 2px 0 #CFD9F5, 3px 3px 0 #C2CEF1, 4px 4px 0 #B5C4ED,
    5px 5px 0 #A8B9E8, 6px 6px 0 #9BAFE4, 7px 7px 0 #8FA5DF, 8px 8px 0 #839BDA,
    0 40px 80px -28px rgba(29, 78, 216, .45);
}
@keyframes dev-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero-art .dev.desktop { animation: dev-float 8s ease-in-out infinite; }
.hero-art .dev.tablet { animation: dev-float 7s ease-in-out -2s infinite; }
.hero-art .phone { animation: dev-float 9s ease-in-out -4s infinite; }
.hero-art .dev.watch { animation: dev-float 6s ease-in-out -1s infinite; }
@media (prefers-color-scheme: dark) {
  .hero-art .dev, .hero-art .phone {
    box-shadow:
      1px 1px 0 #3A3F55, 2px 2px 0 #353A50, 3px 3px 0 #30354A, 4px 4px 0 #2B3045,
      5px 5px 0 #262B40, 6px 6px 0 #21263A, 7px 7px 0 #1C2134,
      0 34px 60px -20px rgba(0, 0, 0, .6);
  }
}

/* ---- Devices talking: connection lines + travelling encrypted packets ---- */
.hero-art .talk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; overflow: visible; }
.talk .link {
  fill: none; stroke: #3B6BEF; stroke-width: 1.6; stroke-linecap: round; opacity: .45;
  stroke-dasharray: 2 5; vector-effect: non-scaling-stroke;
  animation: link-flow 1.6s linear infinite;
}
@keyframes link-flow { to { stroke-dashoffset: -7; } }
.talk ellipse { filter: drop-shadow(0 0 6px rgba(56, 189, 248, .9)); }
@media (prefers-color-scheme: dark) { .talk .link { stroke: #93C5FD; opacity: .5; } }

/* Message arrivals synced with the packets (9 s loop) */
@keyframes arrive-desk { 0%, 20% { opacity: 0; transform: scale(.6); } 26%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes watch-ping {
  0%, 44% { box-shadow: inset 0 0 0 0 rgba(56, 189, 248, 0); }
  48% { box-shadow: inset 0 0 0 3px rgba(56, 189, 248, .95); }
  60%, 100% { box-shadow: inset 0 0 0 0 rgba(56, 189, 248, 0); }
}
@keyframes arrive-phone { 0%, 76% { opacity: .35; } 80%, 96% { opacity: 1; } 100% { opacity: .35; } }
@keyframes send-phone { 0%, 2% { transform: scale(.9); filter: brightness(1.25); } 8%, 100% { transform: scale(1); filter: none; } }
.d-msgs .m.out.file { transform-origin: right center; animation: arrive-desk 9s ease-out infinite; }
.hero-art .dev.watch .dev-screen { animation: watch-ping 9s ease-out infinite; }
.hero-art .phone .bubble.out:first-of-type { transform-origin: right center; animation: send-phone 9s ease-out infinite; }
.hero-art .phone .chat-body .bubble.in:nth-of-type(4) { animation: arrive-phone 9s ease-out infinite; }

@media (max-width: 980px) { .hero-art .talk { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .talk ellipse { display: none; }
  .talk .link, .hero-art .dev, .hero-art .phone, .d-msgs .m.out.file, .hero-art .dev.watch .dev-screen,
  .hero-art .phone .bubble { animation: none !important; }
}

/* Packets as little encrypted chat bubbles */
.talk .pkt { filter: drop-shadow(0 2px 6px rgba(29, 78, 216, .55)); }
@media (prefers-color-scheme: dark) { .talk .pkt rect:first-child, .talk .pkt path:first-of-type { fill: #3B6BEF; } }
@media (prefers-reduced-motion: reduce) { .hero-art .talk .pkt { display: none; } }
/* Keep the 15 MB card out of the message paths on wide screens */
@media (min-width: 981px) { .hero-art .fc2 { display: none; } }

/* ---- Sharper text on the devices ---- */
.hero-art .dev, .hero-art .phone {
  transform-style: flat; backface-visibility: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
/* Phone: real zoom (text laid out and rasterised at final size) instead of scale() */
.hero-art .phone { zoom: .66; transform: rotateY(-24deg) rotateX(9deg) rotateZ(-1deg); }
@media (max-width: 980px) { .hero-art .phone { zoom: .9; transform: rotateY(-10deg) rotateX(4deg); } }
@media (max-width: 420px) { .hero-art .phone { zoom: .82; transform: rotateY(-8deg) rotateX(3deg); } }
/* Slightly larger, weightier micro-text on the device screens */
.dev-screen { font-size: 11px; font-weight: 500; }
.m { font-size: 9.5px; font-weight: 500; padding: 5px 9px; }
.d-head b, .t-head b { font-size: 10.5px; font-weight: 700; }
.d-head small { font-size: 8px; font-weight: 600; }
.d-bar span, .d-composer { font-size: 9px; }
.w-time { font-size: 10px; } .w-from { font-size: 10px; } .w-msg { font-size: 8px; } .w-app { font-size: 6.5px; font-weight: 700; }

/* ---- Smartwatch v2: larger, crisper, more realistic ---- */
.hero-art .dev.watch {
  width: 128px; height: 150px; left: 36%; bottom: -3%; padding: 0; border-radius: 40px; background: none;
  box-shadow: none; zoom: 1;
}
.hero-art .dev.watch .w-case {
  position: relative; z-index: 1; width: 100%; height: 100%; padding: 7px; border-radius: 40px;
  background: linear-gradient(150deg, #F7F9FF 0%, #DCE5FA 45%, #B9C8EE 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(29, 78, 216, .25),
    1px 1px 0 #C9D5F4, 2px 2px 0 #B8C7EE, 3px 3px 0 #A8B9E8, 4px 4px 0 #98ACE2, 5px 5px 0 #8BA1DD,
    0 26px 44px -16px rgba(29, 78, 216, .5);
}
.hero-art .dev.watch .dev-screen {
  height: 100%; border-radius: 33px; padding: 12px 11px 10px;
  background: radial-gradient(120% 80% at 30% 0%, #1B2A55 0%, #0A1024 60%, #05080F 100%);
  box-shadow: inset 0 0 0 2px #0B1226, inset 0 0 0 3px rgba(147, 197, 253, .18);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 5px;
  color: #EAF0FF; text-align: left; font-weight: 600;
}
.hero-art .dev.watch .dev-screen::after { background: linear-gradient(125deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%); }
.w-top { display: flex; align-items: center; gap: 4px; }
.w-icon { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; background: #1D4ED8; flex: none; }
.w-icon img { width: 12px; height: 12px; }
.w-app { font-size: 9px; font-weight: 700; color: #BFD3FF; letter-spacing: .02em; text-transform: none; }
.w-time { margin-left: auto; font-size: 10px; font-weight: 800; color: #93C5FD; }
.w-sender { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.w-av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #0E7490, #22D3EE); flex: none; }
.w-from { font-size: 11.5px; font-weight: 800; color: #FFFFFF; }
.w-msg { margin: 0; font-size: 10.5px; font-weight: 600; line-height: 1.25; color: #DCE6FF; }
.w-reply { margin-top: auto; align-self: stretch; text-align: center; font-size: 9.5px; font-weight: 800; color: #FFFFFF;
  padding: 4px 0; border-radius: 999px; background: #1D4ED8; }
.hero-art .dev.watch .w-band { width: 76px; height: 46px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #C8D5F5 0%, #9FB3E6 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.hero-art .dev.watch .w-band.top { top: -38px; border-radius: 18px 18px 6px 6px; }
.hero-art .dev.watch .w-band.bottom { bottom: -38px; border-radius: 6px 6px 18px 18px; }
.hero-art .dev.watch .w-crown {
  position: absolute; right: -6px; top: 30%; width: 7px; height: 22px; border-radius: 3px; z-index: 0;
  background: repeating-linear-gradient(180deg, #B4C4EC 0 2px, #8EA4DC 2px 3px);
  box-shadow: 1px 1px 0 #7F96D4;
}
.hero-art .dev.watch .w-button { position: absolute; right: -4px; top: 56%; width: 5px; height: 18px; border-radius: 3px; background: #A8B9E8; z-index: 0; }
@media (prefers-color-scheme: dark) {
  .hero-art .dev.watch .w-case { background: linear-gradient(150deg, #4A5068 0%, #33384D 50%, #24283A 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 1px 1px 0 #30354A, 2px 2px 0 #2A2F43, 3px 3px 0 #24283B,
      4px 4px 0 #1E2234, 0 26px 44px -16px rgba(0,0,0,.6); }
  .hero-art .dev.watch .w-band { background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px), linear-gradient(180deg, #3A3F55, #22263A); }
  .hero-art .dev.watch .w-crown { background: repeating-linear-gradient(180deg, #4A5068 0 2px, #2B3045 2px 3px); }
  .hero-art .dev.watch .w-button { background: #3A3F55; }
}
@media (max-width: 980px) { .hero-art .dev.watch { right: 4%; left: auto; bottom: 4%; } }

/* Desktop chat order: photo arrives (slides open, no gap), THEN the reply */
@keyframes arrive-desk {
  0%, 20% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; transform: scale(.6); }
  26%, 92% { opacity: 1; max-height: 30px; padding-top: 5px; padding-bottom: 5px; margin-top: 0; transform: scale(1); }
  100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; }
}
@keyframes reply-desk {
  0%, 32% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; transform: translateY(4px); }
  38%, 92% { opacity: 1; max-height: 30px; padding-top: 5px; padding-bottom: 5px; margin-top: 0; transform: none; }
  100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; }
}
.d-msgs .m { overflow: hidden; }
.d-msgs .m.out.file { animation: arrive-desk 9s ease-out infinite; }
.d-msgs .m.in:last-child { animation: reply-desk 9s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .d-msgs .m { animation: none !important; opacity: 1; max-height: none; } }

/* Watch: a thumbs-up reaction springs up after the notification */
.hero-art .dev.watch .dev-screen { position: relative; }
.w-thumb {
  position: absolute; right: 10px; bottom: 30px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  font-size: 19px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #DCE6FF 100%);
  box-shadow: 0 4px 12px rgba(29, 78, 216, .55), 0 0 0 2px rgba(147, 197, 253, .8);
  opacity: 0; transform: scale(.2) translateY(6px);
  animation: watch-thumb 9s cubic-bezier(.34, 1.56, .64, 1) infinite;
}
@keyframes watch-thumb {
  0%, 50% { opacity: 0; transform: scale(.2) translateY(6px) rotate(-20deg); }
  55% { opacity: 1; transform: scale(1.15) translateY(-2px) rotate(8deg); }
  60% { transform: scale(1) translateY(0) rotate(0deg); }
  80% { opacity: 1; transform: scale(1) translateY(-4px); }
  88%, 100% { opacity: 0; transform: scale(.9) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .w-thumb { animation: none; opacity: 1; transform: none; } }
.w-thumb { bottom: auto; top: 30px; right: 9px; width: 28px; height: 28px; font-size: 16px; }
.w-thumb { top: 40px; right: 10px; }
.w-thumb { top: 38px; right: 9px; }

/* Smallest phones (≤380px): keep logo, CTA and menu on one line with no
   sideways scroll. */
@media (max-width: 380px) {
  .nav .wrap { gap: 8px; }
  .nav-cta .btn { padding-inline: 14px; font-size: .875rem; }
  .menu-btn { margin-left: 0; }
}

/* ≤980px: centre the hero phone. The float animation animates `translate`,
   which overrode the old `translate: 50% 0` centring and pushed the phone
   off the left edge on phones. Centre with auto margins instead. */
@media (max-width: 980px) {
  .hero-art .phone { left: 0; right: 0; margin-inline: auto; translate: none; }
}
