/* ==========================================================================
   Signal by DataDirect Intelligence — marketing site
   Light, warm, loud-accent design. Urbanist + IBM Plex Mono.
   ========================================================================== */

:root {
  /* Brand palette (DataDirect) */
  --amber:  #FFAE00;
  --coral:  #FF4C4F;
  --pink:   #FF00AA;
  --purple: #4E3E93;
  --mint:   #01FEB5;
  --lime:   #71DC00;

  /* Surfaces and ink */
  --paper:      #FCFAF6;
  --paper-soft: #F5F1E9;
  --card:       #FFFFFF;
  --ink:        #17131F;
  --ink-soft:   #4C4757;
  --ink-faint:  #8A8494;
  --line:       #E7E1D6;
  --line-dark:  #17131F;

  /* Tinted section surfaces */
  --tint-purple: #F2EFFA;
  --tint-pink:   #FFF0F9;
  --tint-mint:   #EAFBF4;
  --tint-amber:  #FFF6E2;

  --font-sans: 'Urbanist', 'Gilroy', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  /* soft modern elevation (replaces the old hard offset "pop" shadows) */
  --shadow-pop:  0 16px 40px -18px rgba(23, 19, 31, 0.20);
  --shadow-soft: 0 6px 18px -8px rgba(23, 19, 31, 0.10);
  --shadow-lift: 0 22px 50px -20px rgba(23, 19, 31, 0.26);

  /* Family gradients, lifted from the DataDirect parent site */
  --grad-brand: linear-gradient(115deg, #FF00AA 0%, #FF4C4F 48%, #FFAE00 100%);
  --grad-cool:  linear-gradient(135deg, #4E3E93 0%, #FF00AA 100%);
  /* brand colours lined up as solid blocks, same order as the About page colour bar */
  --grad-ribbon: linear-gradient(90deg,
    #FF00AA 0 16.66%, #FFAE00 16.66% 33.33%, #FF4C4F 33.33% 50%,
    #4E3E93 50% 66.66%, #01FEB5 66.66% 83.33%, #71DC00 83.33% 100%);

  --wrap: 1180px;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--pink); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38em;
  font-weight: 500;
}

/* Gradient keyword inside hero headlines, carried over from the current site */
.grad-text {
  background: linear-gradient(100deg, var(--purple) 0%, var(--pink) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The trailing brand dot on headings, echoing the logo */
.dot { color: var(--pink); }
.dot--amber { color: var(--amber); }
.dot--mint { color: #00C98F; }
.dot--purple { color: var(--purple); }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--soft { background: var(--paper-soft); }
.section--mint { background: var(--tint-mint); }

/* Full-bleed purple colour field, c2mtl style */
.section--purple { background: var(--purple); color: #fff; }
.section--purple h2 { color: #fff; }
.section--purple .lede { color: rgba(255, 255, 255, 0.8); }
.section--purple .eyebrow { color: rgba(255, 255, 255, 0.7); }
.section--purple .eyebrow::before { color: var(--mint); }
.section--purple .dot,
.section--purple .dot--purple { color: var(--mint); }
.section--purple .swift__list li { color: rgba(255, 255, 255, 0.88); }
.section--purple .swift__list .icon { color: var(--mint); }
.section--purple .swift-note { color: rgba(255, 255, 255, 0.78); }
.section--purple .swift-note .icon { color: var(--mint); }
.section--purple .link-arrow { color: #fff; border-bottom-color: var(--mint); }
.section--purple .link-arrow:hover { color: var(--mint); }
.section--purple .btn--ink { background: #fff; color: var(--ink); border-color: var(--ink); }
.section--purple .btn--ink:hover { box-shadow: var(--shadow-lift); }
.section--purple .chat { box-shadow: var(--shadow-pop); }

/* Mono eyebrow label with brand spark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "\2731"; /* heavy asterisk, the logo spark */
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.eyebrow--pink::before { color: var(--pink); }
.eyebrow--mint::before { color: #00C98F; }
.eyebrow--purple::before { color: var(--purple); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Skip link: visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.btn--primary { background: linear-gradient(115deg, var(--pink), var(--coral)); border-color: transparent; color: #fff; }
/* App-purple button for sign-in actions, matching the Signal login screen */
.btn--purple { background: linear-gradient(180deg, #5A4AA3 0%, #4E3E93 100%); border-color: transparent; color: #fff; }
.btn--purple:hover { box-shadow: var(--shadow-lift); }
.btn--ink { background: var(--ink); color: #fff; border-color: transparent; }
.btn--ink:hover { box-shadow: var(--shadow-lift); }
.btn--sm { padding: 9px 20px; font-size: 0.92rem; }

.btn .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 2px;
  transition: gap 0.16s ease, color 0.16s ease;
}
.link-arrow:hover { gap: 13px; color: var(--pink); }
.link-arrow .icon { width: 17px; height: 17px; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header ------------------------------------------------------------------- */

/* Floating pill nav, carried over from the current Signal site */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 11px 12px 11px 32px;
  background: rgba(252, 250, 246, 0.6);
  backdrop-filter: blur(26px) saturate(1.7);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.site-header.is-scrolled .nav {
  box-shadow: var(--shadow-lift);
}

.nav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 42px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}
/* logo left, links dead centre, CTAs right */
@media (min-width: 921px) {
  .nav { position: relative; }
  .nav__links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .nav__cta { margin-left: auto; }
}
.nav__links a {
  display: block;
  position: relative;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
/* gradient underline sweep, carried over from the current site */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); background: var(--pink); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }

  .nav.is-open .nav__links,
  .nav.is-open .nav__cta {
    display: flex;
  }
  .nav.is-open {
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-radius: 28px;
  }
  .nav.is-open .nav__links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 6px 0 0;
    gap: 2px;
  }
  .nav.is-open .nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav.is-open .nav__links a[aria-current="page"]::after { left: 14px; right: auto; width: 28px; bottom: 6px; }
  .nav.is-open .nav__cta {
    order: 5;
    flex-basis: 100%;
    margin-top: 14px;
  }
  .nav.is-open .nav__cta .btn { flex: 1; }
}

/* Hero --------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  /* pull the section up behind the floating nav so the circle blobs
     run all the way to the viewport top */
  margin-top: -94px;
  padding: calc(clamp(56px, 8vw, 104px) + 94px) 0 clamp(64px, 9vw, 110px);
  /* ambient pastel wash, echoing the app login screen */
  background:
    radial-gradient(900px 600px at -5% -10%, rgba(217, 200, 255, 0.55) 0%, transparent 55%),
    radial-gradient(700px 500px at 108% 10%, rgba(255, 184, 222, 0.5) 0%, transparent 55%),
    radial-gradient(800px 700px at 104% 60%, rgba(255, 179, 71, 0.35) 0%, transparent 60%),
    radial-gradient(650px 450px at 60% 115%, rgba(168, 255, 225, 0.4) 0%, transparent 58%),
    var(--paper);
}
/* fade the whole mesh and wash into paper at the section bottom */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 240px;
  background: linear-gradient(180deg, transparent 0%, var(--paper) 94%);
  pointer-events: none;
  z-index: 1;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero::before {
  /* dotted "live map" grid backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 19, 31, 0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* Poster-scale hero type */
.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.2rem);
  letter-spacing: -0.032em;
  line-height: 1.0;
}

/* Blurred ambient blobs — the same mesh as the Signal app login screen */
.hero__circles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__circles span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
/* mesh covers roughly the right two-thirds of the hero, hugging the right edge full height;
   each blob wanders on its own long path, like the app login screen */
.hero__circles span:nth-child(1) { width: 780px; height: 780px; top: -280px; right: -220px; background: #ff5ea8; animation: blob-roam-1 34s ease-in-out infinite; }
.hero__circles span:nth-child(2) { width: 700px; height: 700px; top: 34%;   right: -240px; background: #ffb347; animation: blob-roam-2 40s ease-in-out infinite; }
.hero__circles span:nth-child(3) { width: 640px; height: 640px; top: -200px; right: 34%;   background: #c07eff; animation: blob-roam-3 36s ease-in-out infinite; }
.hero__circles span:nth-child(4) { width: 520px; height: 520px; bottom: -220px; right: 24%; background: var(--mint); opacity: 0.36; animation: blob-roam-4 44s ease-in-out infinite; }
.hero__circles span:nth-child(5) { width: 420px; height: 420px; top: 38%;   right: 44%;    background: #d9c8ff; opacity: 0.55; animation: blob-roam-2 31s ease-in-out infinite reverse; }
.hero__circles span:nth-child(6) { width: 460px; height: 460px; bottom: -200px; right: -160px; background: #ff8ac2; opacity: 0.42; animation: blob-roam-3 47s ease-in-out infinite reverse; }

@keyframes blob-roam-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-24vw, 16vh) scale(1.15); }
  50%      { transform: translate(-34vw, 42vh) scale(0.9); }
  75%      { transform: translate(-8vw, 28vh) scale(1.08); }
}
@keyframes blob-roam-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-26vw, -18vh) scale(0.92); }
  50%      { transform: translate(-38vw, 10vh) scale(1.18); }
  75%      { transform: translate(-12vw, -8vh) scale(1.04); }
}
@keyframes blob-roam-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(18vw, 22vh) scale(1.1); }
  50%      { transform: translate(8vw, 44vh) scale(0.88); }
  75%      { transform: translate(22vw, 12vh) scale(1.12); }
}
@keyframes blob-roam-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-16vw, -26vh) scale(1.16); }
  50%      { transform: translate(10vw, -40vh) scale(0.94); }
  75%      { transform: translate(-6vw, -14vh) scale(1.05); }
}
@media (max-width: 920px) {
  .hero__circles span { opacity: 0.32; }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero__powered {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.hero__powered img { height: 16px; width: auto; opacity: 0.75; }

/* Live map mock panel */
.livemap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: rotate(1.2deg);
}
@media (max-width: 920px) { .livemap { transform: none; } }

.livemap__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: var(--paper-soft);
}
.livemap__bar .dots { display: flex; gap: 6px; }
.livemap__bar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.livemap__bar .dots span:nth-child(1) { background: var(--coral); }
.livemap__bar .dots span:nth-child(2) { background: var(--amber); }
.livemap__bar .dots span:nth-child(3) { background: var(--lime); }
.livemap__bar .label { margin-left: 2px; color: var(--ink-soft); }

.livemap__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #027A57;
  background: var(--tint-mint);
  border: 1.5px solid #00C98F;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00C98F;
  position: relative;
  flex: none;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #00C98F;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.3); opacity: 0; }
}

.livemap__map {
  position: relative;
  height: 320px;
  background:
    radial-gradient(rgba(23, 19, 31, 0.13) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(180deg, #FFFFFF 0%, #FAF7F0 100%);
}
.livemap__floorplan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.livemap__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.livemap__stat {
  padding: 16px 18px;
  text-align: left;
}
.livemap__stat + .livemap__stat { border-left: 1px solid var(--line); }
.livemap__stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.livemap__stat span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Trust strip ---------------------------------------------------------------- */

.trust { padding: 34px 0 10px; }
.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.trust__label--powered { margin-bottom: 10px; color: var(--ink-soft); }
.trust__label--powered a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.16s ease;
}
.trust__label--powered a:hover { color: var(--pink); }
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
  max-width: 1040px;
  margin-inline: auto;
}
.trust__logos img {
  height: 34px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.6) brightness(1.1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.trust__logos img:hover { filter: none; opacity: 1; }

/* Feature cards --------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cards--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cards--three { grid-template-columns: 1fr; } }
.card::after { content: ""; position: absolute; inset: 0 -5px -5px 0; pointer-events: none; }
.card:hover::after { pointer-events: auto; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.99rem; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__icon--pink   { background: var(--tint-pink); color: var(--pink); }
.card__icon--purple { background: var(--tint-purple); color: var(--purple); }
.card__icon--amber  { background: var(--tint-amber); color: #C77F00; }
.card__icon--mint   { background: var(--tint-mint); color: #027A57; }
.card__icon--coral  { background: #FFEEEE; color: var(--coral); }
.card__icon--lime   { background: #F2FBE6; color: #4C9A00; }

/* Steps (how it works) -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.step { overflow: hidden; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  right: 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--pink);
  opacity: 0.5;
  pointer-events: none;
}
.step:nth-child(2)::before { -webkit-text-stroke-color: var(--purple); }
.step:nth-child(3)::before { -webkit-text-stroke-color: #00A878; }
.step h3 { margin-top: 38px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.99rem; }

/* Swift section --------------------------------------------------------------- */

.swift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 920px) { .swift { grid-template-columns: 1fr; } }

.swift__list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.swift__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink-soft);
}
.swift__list .icon { color: var(--purple); margin-top: 3px; width: 20px; height: 20px; }

.chat {
  background: var(--card);
  color: var(--ink); /* keep readable inside colour-field sections */
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.chat__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--tint-purple);
}
.chat__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  flex: none;
}
.chat__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.chat__bar b { font-size: 0.98rem; }
.chat__bar span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}
.chat__body { padding: 22px; display: grid; gap: 14px; }
.bubble {
  max-width: 85%;
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.bubble--user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--swift {
  justify-self: start;
  background: var(--tint-purple);
  border: 1.5px solid #D8D0EE;
  border-bottom-left-radius: 4px;
}
.bubble--typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
.bubble--typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.4;
  animation: typing 1.2s infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: 0.18s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Hardware teaser / range ----------------------------------------------------- */

.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1020px) { .hw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hw-grid { grid-template-columns: 1fr; } }

.hw-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hw-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.hw-card__img {
  flex: none; /* keep the image panel a fixed ratio regardless of caption length */
  background: linear-gradient(180deg, #FFFFFF, #F4F1EA);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  padding: 18px;
}
.hw-card__img img { max-height: 100%; width: auto; object-fit: contain; }
.hw-card__body { padding: 20px 22px 22px; }
.hw-card__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--pink);
  text-transform: uppercase;
  font-weight: 600;
}
.hw-card__body h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.hw-card__body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* SEM01 stylised device (no photo asset) */
.sem-device {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.sem-device__box {
  width: 64%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.sem-device__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.sem-device__screen {
  background: var(--ink);
  border-radius: 9px;
  padding: 12px;
  font-family: var(--font-mono);
  color: var(--mint);
  font-size: 0.78rem;
  line-height: 1.8;
}
.sem-device__screen .amber { color: var(--amber); }
.sem-device__screen .pink { color: #FF7BD0; }

/* Big CTA band ---------------------------------------------------------------- */

.cta-band {
  background: var(--grad-brand);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  right: -140px; top: -180px;
  background: radial-gradient(circle at 35% 35%, rgba(78, 62, 147, 0.9), rgba(255, 0, 170, 0.4));
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  right: 160px; bottom: -160px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 174, 0, 0.9), rgba(255, 76, 79, 0.5));
  mix-blend-mode: multiply;
  opacity: 0.45;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  text-shadow: 0 2px 18px rgba(23, 19, 31, 0.18);
}
.cta-band .lede { color: rgba(255, 255, 255, 0.92); }
.cta-band .btn { border-color: #fff; color: #fff; }
.cta-band .btn:hover { box-shadow: var(--shadow-lift); }
.cta-band .btn--primary { background: var(--ink); border-color: var(--ink); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Footer ------------------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(48px, 6vw, 72px) 0 36px;
  margin-top: clamp(48px, 7vw, 96px);
  position: relative;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { height: 28px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; max-width: 30em; }

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.16s ease;
}
.site-footer ul a:hover { color: var(--pink); }

.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}
.site-footer__base a { color: inherit; }
.site-footer__base .dd-logo { height: 20px; width: auto; opacity: 0.9; }
.site-footer__social { margin-left: auto; display: flex; gap: 14px; }
.site-footer__social a { color: rgba(255, 255, 255, 0.65); display: inline-flex; transition: color 0.16s ease; }
.site-footer__social a:hover { color: var(--pink); }

/* Page hero (interior pages) ------------------------------------------------------ */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 19, 31, 0.09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 20%, transparent 70%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; }
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Feature rows (platform) ----------------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 56px) 0;
}
@media (max-width: 880px) { .feature-row { grid-template-columns: 1fr; } }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row--flip .feature-row__media { order: 2; }
@media (max-width: 880px) { .feature-row--flip .feature-row__media { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-weight: 500; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: #00A878; }
.check-list--pink .icon { color: var(--pink); }
.check-list--purple .icon { color: var(--purple); }
.check-list--amber .icon { color: #C77F00; }

/* Mock panels used as media on platform page */
.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.mock__bar .dots { display: flex; gap: 5px; }
.mock__bar .dots span { width: 9px; height: 9px; border-radius: 50%; }
.mock__bar .dots span:nth-child(1) { background: var(--coral); }
.mock__bar .dots span:nth-child(2) { background: var(--amber); }
.mock__bar .dots span:nth-child(3) { background: var(--lime); }
.mock__body { padding: 20px; }

.mock-rows { display: grid; gap: 10px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.mock-row .tagdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mock-row .meta { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); font-weight: 500; }
.mock-row .chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip--ok { background: var(--tint-mint); color: #027A57; border: 1px solid #9BE8CD; }
.chip--warn { background: var(--tint-amber); color: #9A6B00; border: 1px solid #F3D48A; }
.chip--alert { background: #FFEDED; color: #C92A2D; border: 1px solid #F5B3B4; }

/* Sparkline temp chart mock */
.mock-chart { padding: 6px 4px 0; }
.mock-chart svg { width: 100%; height: auto; display: block; }

/* Phone / web duo */
.duo {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: end;
}
.duo .mock { box-shadow: var(--shadow-pop); }
.phone {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  padding: 12px 10px;
  box-shadow: var(--shadow-pop);
}
.phone__notch {
  width: 60px; height: 6px;
  background: var(--line);
  border-radius: 99px;
  margin: 0 auto 12px;
}
.phone .mock-row { font-size: 0.78rem; padding: 9px 11px; }

/* FAQ -------------------------------------------------------------------------------- */

.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.faq details:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--pink);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* Hardware page ------------------------------------------------------------------------ */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  padding: clamp(44px, 6vw, 72px) 0;
}
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }
.product + .product { border-top: 1px solid var(--line); }
.product--flip > .product__media { order: 2; }
@media (max-width: 880px) { .product--flip > .product__media { order: 0; } }

.product__media { position: sticky; top: 110px; }
@media (max-width: 880px) { .product__media { position: static; } }

.product__photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FFFFFF, #F4F1EA);
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 30px;
  overflow: hidden;
}
.product__photo img { max-height: 100%; width: auto; object-fit: contain; }

/* Carousel prev/next arrows (injected by main.js when a gallery has >1 image) */
.product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.product__nav--prev { left: 14px; }
.product__nav--next { right: 14px; }
.product__nav .icon { width: 20px; height: 20px; }
.product__nav:hover { background: var(--pink); color: #fff; box-shadow: var(--shadow-lift); }
.product__nav--prev:hover { transform: translateY(-50%) translateY(-4px); }
.product__nav--next:hover { transform: translateY(-50%) translateY(-4px); }
.product__nav:active { transform: translateY(-50%); box-shadow: none; }
.product__nav:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.product__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.product__thumbs button {
  width: 64px; height: 56px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease;
}
.product__thumbs button.is-active,
.product__thumbs button:hover { border-color: var(--ink); }
.product__thumbs img { max-height: 100%; max-width: 100%; object-fit: contain; }

.product__code {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.product__code--pink   { background: var(--tint-pink); color: #C4007F; }
.product__code--purple { background: var(--tint-purple); color: var(--purple); }
.product__code--mint   { background: var(--tint-mint); color: #027A57; }
.product__code--amber  { background: var(--tint-amber); color: #9A6B00; }

.product__sub { font-weight: 700; color: var(--ink-soft); margin-top: -6px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 0.94rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 42%;
}
.spec-table td { font-weight: 600; }

.deploy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 720px) { .deploy-cards { grid-template-columns: 1fr; } }
.deploy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.deploy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.deploy-card img { border-bottom: 1px solid var(--line); width: 100%; }
.deploy-card__body { padding: 18px 20px 20px; }
.deploy-card__body h4 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 800; }
.deploy-card__body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.deploy-card__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
  display: block;
  margin-top: 10px;
}

/* Use cases grid */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.usecases--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .usecases, .usecases--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .usecases, .usecases--four { grid-template-columns: 1fr; } }
.usecase {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.usecase:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.usecase__sector {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1.5px solid currentColor;
}
.usecase h3 { font-size: 1.12rem; margin-bottom: 8px; }
.usecase p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.usecase__kit {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.usecase__kit b { color: var(--ink); font-weight: 600; }
.usecase__stat {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 4px 0 0;
}

.sector--pink { color: #C4007F; background: var(--tint-pink); }
.sector--mint { color: #027A57; background: var(--tint-mint); }
.sector--purple { color: var(--purple); background: var(--tint-purple); }
.sector--amber { color: #9A6B00; background: var(--tint-amber); }
.sector--coral { color: #C92A2D; background: #FFEDED; }
.sector--lime { color: #4C9A00; background: #F2FBE6; }

/* About / values ------------------------------------------------------------------------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .values { grid-template-columns: 1fr; } }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .contact-panel { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-pop);
}
.contact-card .btn { width: 100%; margin-top: 8px; }
.contact-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-weight: 700;
}
.contact-card__row + .contact-card__row { border-top: 1px solid var(--line); }
.contact-card__row .icon { color: var(--pink); }
.contact-card__row a { text-decoration: none; }
.contact-card__row a:hover { color: var(--pink); }
.contact-card__row span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }

/* Legal pages -------------------------------------------------------------------------------- */

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.legal-meta span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink-soft);
}

.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 22px; }
.legal-body a { color: var(--pink); font-weight: 600; }

/* Sign-in page --------------------------------------------------------------------------------- */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } }

.auth__brand {
  background: var(--ink);
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 100% 70% at 30% 100%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 30% 100%, #000, transparent 75%);
}
@media (max-width: 880px) { .auth__brand { display: none; } }
.auth__brand > * { position: relative; }
.auth__brand .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.auth__brand .back:hover { color: #fff; }
.auth__brand-mid { margin: auto 0; }
.auth__brand-mid img { height: 44px; width: auto; margin-bottom: 30px; }
.auth__brand-mid h1 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); color: #fff; }
.auth__brand-mid p { color: rgba(255, 255, 255, 0.72); max-width: 30em; }
.auth__points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.auth__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.auth__points .icon { color: var(--mint); width: 19px; height: 19px; margin-top: 3px; }
.auth__points b { display: block; }
.auth__points span { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; }

.auth__form {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px);
  position: relative;
}
.auth__form-inner { width: min(420px, 100%); }
.auth__form-logo { height: 34px; width: auto; margin-bottom: 34px; }
.auth__form h2 { font-size: 1.8rem; margin-bottom: 4px; }
.auth__form .sub { color: var(--ink-soft); margin-bottom: 30px; }

.field { margin-bottom: 20px; }
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 8px;
}
.field label a { font-size: 0.85rem; font-weight: 600; color: var(--pink); text-decoration: none; }
.field label a:hover { text-decoration: underline; }
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.field input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 170, 0.22);
}
.field--password { position: relative; }
.field--password .toggle {
  position: absolute;
  right: 12px;
  bottom: 11px;
  background: none;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 6px;
}
.field--password .toggle:hover { color: var(--ink); }
.field--password input { padding-right: 70px; }

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 24px;
  cursor: pointer;
  user-select: none;
}
.remember input { width: 18px; height: 18px; accent-color: var(--pink); }

.auth__error {
  display: none;
  background: #FFEDED;
  border: 2px solid var(--coral);
  color: #B02225;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.auth__error.is-visible { display: block; }

.auth__notice {
  display: none;
  background: var(--tint-amber);
  border: 2px solid var(--amber);
  color: #7A5500;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.auth__notice.is-visible { display: block; }

.auth__form .btn { width: 100%; }
.auth__back-mobile {
  display: none;
  margin-bottom: 28px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  align-items: center;
  gap: 8px;
}
@media (max-width: 880px) { .auth__back-mobile { display: inline-flex; } }

/* 404 ------------------------------------------------------------------------------------------ */

.notfound {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 19, 31, 0.1) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 10%, transparent 75%);
}
.notfound__inner { position: relative; width: min(680px, calc(100% - 48px)); }
.notfound__lastseen {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1.5px dashed var(--ink-faint);
  border-radius: 999px;
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 24px;
}
.notfound h1 {
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.notfound h1 .dot { color: var(--pink); }
.notfound h2 { margin-bottom: 14px; }
.notfound p { color: var(--ink-soft); max-width: 34em; margin-inline: auto; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

.notfound__swift {
  margin: 44px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 26px 10px 12px;
  box-shadow: var(--shadow-pop);
}
.notfound__swift img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--line);
  background: var(--tint-purple);
}
.notfound__swift p { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.notfound__swift span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

/* Giant type block — c2mtl-style bottom-anchored wordmark ----------------------------------------- */

.bigtype {
  padding: clamp(40px, 6vw, 90px) 0 clamp(20px, 3vw, 36px);
  margin-bottom: calc(clamp(48px, 7vw, 96px) * -1); /* sit close against the footer */
  user-select: none;
}
.bigtype img {
  width: min(68%, 860px);
  height: auto;
  filter: brightness(0) opacity(0.12);
}

/* Reveal-on-scroll ------------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.card.is-visible:hover,
.hw-card.is-visible:hover,
.deploy-card.is-visible:hover,
.step.is-visible:hover,
.usecase.is-visible:hover { transform: translateY(-5px); }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
.reveal--d5 { transition-delay: 0.40s; }

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