/* ==========================================================================
   X2Soft — design tokens
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-alt: #f1f4fb;
  --ink: #0a1024; /* dark hero, CTA, footer */
  --ink-2: #111a3a;

  /* Text */
  --text: #0f172a;
  --muted: #55607a;
  --on-ink: #ffffff;
  --on-ink-muted: #a7b2d1;

  /* Brand */
  --accent: #3b63f3;
  --accent-2: #7c5cff;
  --accent-dark: #2443c9;
  --accent-soft: #eef2ff;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));

  /* Lines, depth, shape */
  --border: #e3e8f2;
  --border-ink: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 50px -12px rgba(30, 50, 120, 0.22);
  --ring: 0 0 0 3px rgba(59, 99, 243, 0.3);
  --radius-sm: 0.75rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;

  --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --header-h: 5.25rem;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 0.5rem;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
}

/* Lucide icons render as inline SVGs sized by their container's font-size. */
.lucide {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 16, 36, 0.88);
  border-bottom-color: var(--border-ink);
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: 4.25rem;
  width: auto;
}

.site-footer .brand-mark {
  height: 4.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--on-ink-muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.1);
}

.nav-links .nav-cta {
  margin-left: 0.75rem;
  padding: 0.6rem 1.15rem;
  color: #fff;
  font-weight: 600;
  background: var(--gradient);
  box-shadow: 0 8px 20px -6px rgba(91, 99, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links .nav-cta:hover {
  background: var(--gradient);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(91, 99, 255, 0.75);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-ink);
  border-radius: 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Shared dark hero backdrop (home + inner pages)
   ========================================================================== */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background: var(--ink);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40rem 26rem at 15% 0%, rgba(59, 99, 243, 0.35), transparent 60%),
    radial-gradient(34rem 24rem at 90% 20%, rgba(124, 92, 255, 0.3), transparent 60%),
    radial-gradient(30rem 20rem at 60% 110%, rgba(224, 57, 47, 0.12), transparent 60%);
}

/* Fine grid lines that fade out toward the edges. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow {
  color: var(--accent);
}

.eyebrow {
  color: #c7d2fe;
}

.eyebrow.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.eyebrow.pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18);
}

.text-gradient {
  background: linear-gradient(120deg, #8fb0ff, #c3b1ff 60%, #ffb4c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn .lucide {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn:hover .lucide {
  transform: translateX(3px);
}

.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 28px -10px rgba(91, 99, 255, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(91, 99, 255, 0.85);
}

.btn-ghost {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-light {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.5);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link .lucide {
  transition: transform 0.2s ease;
}

.text-link:hover .lucide {
  transform: translateX(3px);
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  padding: 6rem 0 6.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 34rem;
  margin-bottom: 2.25rem;
  font-size: 1.13rem;
  color: var(--on-ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-ink);
}

.stat dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat dd {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--on-ink-muted);
}

/* Code window illustration */

.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-visual {
  position: relative;
  padding: 2.5rem 1rem;
}

.code-window {
  position: relative;
  border: 1px solid var(--border-ink);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-ink);
  background: rgba(255, 255, 255, 0.03);
}

.code-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff5f57;
}

.code-bar span:nth-child(2) {
  background: #febc2e;
}

.code-bar span:nth-child(3) {
  background: #28c840;
}

.code-bar em {
  margin-left: 0.6rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--on-ink-muted);
  font-family: var(--font-mono);
}

.code {
  margin: 0;
  padding: 1.5rem 1.6rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.85;
  color: #d5dcf5;
  white-space: pre;
  overflow-x: auto;
}

.code b,
.code i,
.code u {
  font-weight: inherit;
  font-style: normal;
  text-decoration: none;
}

.code .k {
  color: #c4a1ff;
}

.code .s {
  color: #7ee0b5;
}

.code .f {
  color: #7cc4ff;
}

.code .c {
  color: #6f7da6;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.85rem;
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite;
}

.float-chip .lucide {
  font-size: 1.1rem;
  color: var(--accent);
}

.chip-a {
  top: 0.4rem;
  right: 0;
}

.chip-b {
  bottom: 0.4rem;
  left: -0.5rem;
  animation-delay: -2s;
}

.chip-c {
  bottom: 0.4rem;
  right: 1.5rem;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   Tech marquee
   ========================================================================== */

.tech-strip {
  padding: 2.25rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.tech-label {
  margin: 0 0 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0.375rem;
  list-style: none;
}

.tech-pill {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 6rem 0;
}

.section.alt {
  background: var(--surface-alt);
}

.section h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section p {
  color: var(--muted);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

/* About (home) */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.about-copy > p {
  font-size: 1.05rem;
}

.about-quote,
.hero-quote {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.4rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.about-quote {
  background: var(--accent-soft);
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature:nth-child(even) {
  transform: translateY(1.5rem);
}

.feature h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.93rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 1.25rem;
}

.card-grid[data-cols="1"] {
  --cols: 1;
  max-width: 26rem;
  margin: 0 auto;
}

.card-grid[data-cols="2"] {
  --cols: 2;
  max-width: 50rem;
  margin: 0 auto;
}

.card-grid[data-cols="3"] {
  --cols: 3;
}

.card-grid[data-cols="4"] {
  --cols: 4;
}

/* 7 items: 4 + a centred row of 3. */
.card-grid[data-cols="4"]:has(> :nth-child(7):last-child) {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.card-grid[data-cols="4"]:has(> :nth-child(7):last-child) > * {
  grid-column: span 2;
}

.card-grid[data-cols="4"]:has(> :nth-child(7):last-child) > :nth-child(5) {
  grid-column: 2 / span 2;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cdd6f6;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #eaf0ff, #f1ebff);
  color: var(--accent);
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(59, 99, 243, 0.12);
  transition: background 0.25s ease, color 0.25s ease;
}

.card:hover .card-icon {
  background: var(--gradient);
  color: #fff;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.card-more .lucide {
  transition: transform 0.2s ease;
}

.card-link:hover .card-more .lucide {
  transform: translateX(4px);
}

/* ==========================================================================
   Timeline (process steps)
   ========================================================================== */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.5rem;
  width: calc((100% + 1.5rem) * (var(--steps, 4) - 1) / var(--steps, 4));
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), rgba(124, 92, 255, 0.15));
}

.timeline-step {
  position: relative;
}

.step-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 0 6px var(--bg);
}

.section.alt .step-number {
  box-shadow: 0 0 0 6px var(--surface-alt);
}

.timeline-step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.timeline-step p {
  margin: 0;
  font-size: 0.93rem;
}

/* ==========================================================================
   Lists, split text, CTA panel
   ========================================================================== */

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 58rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 500;
  color: var(--text);
}

.check-list .lucide {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  stroke-width: 3;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.split h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.split-copy p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.split-copy p:last-child {
  margin-bottom: 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--on-ink);
  background:
    radial-gradient(30rem 20rem at 0% 0%, rgba(59, 99, 243, 0.5), transparent 60%),
    radial-gradient(26rem 18rem at 100% 100%, rgba(124, 92, 255, 0.45), transparent 60%),
    var(--ink);
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  margin-bottom: 0.75rem;
  color: var(--on-ink);
}

.cta-panel p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--on-ink-muted);
}

.cta-panel .contact-actions {
  margin-top: 2rem;
}

.cta-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: 2.75rem 3rem;
}

.cta-compact h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.contact-details,
.contact-details-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
}

.contact-detail dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-detail dd {
  margin: 0.1rem 0 0;
  font-weight: 600;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}

/* On dark panels */
.cta-panel .contact-details {
  padding: 1.75rem;
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.cta-panel .detail-icon,
.contact-card .detail-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #c7d2fe;
}

.cta-panel .contact-detail dt,
.contact-card .contact-detail dt {
  color: var(--on-ink-muted);
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */

.page-hero {
  padding: 4.5rem 0 5rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.page-hero h1 {
  max-width: 48rem;
  margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-hero-copy {
  max-width: 42rem;
  margin: 0;
  font-size: 1.12rem;
  color: var(--on-ink-muted);
}

.hero-quote {
  max-width: 36rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--on-ink-muted);
}

.breadcrumb a {
  color: #c7d2fe;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current="page"] {
  color: var(--on-ink);
}

.crumb-sep {
  font-size: 0.85rem;
  opacity: 0.6;
}

.page-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 16rem;
  height: 16rem;
}

.page-hero-art[hidden] {
  display: none;
}

.art-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ring-2 {
  inset: 2.5rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 70%);
}

.art-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 1.75rem;
  background: var(--gradient);
  color: #fff;
  font-size: 3.2rem;
  box-shadow: 0 25px 50px -12px rgba(91, 99, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 68rem;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.legal-toc a {
  display: block;
  margin-left: -2px;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.legal-body {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-part + .legal-part {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.legal-part h2 {
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.legal-part p {
  line-height: 1.8;
}

.legal-part p:last-child {
  margin-bottom: 0;
}

.legal-part .check-list {
  grid-template-columns: 1fr;
  max-width: none;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card,
.contact-form {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.contact-card {
  color: var(--on-ink);
  background:
    radial-gradient(24rem 18rem at 0% 0%, rgba(59, 99, 243, 0.45), transparent 60%),
    var(--ink);
}

.contact-card h2,
.contact-form h2 {
  margin-bottom: 1.75rem;
  font-size: 1.4rem;
}

.contact-card .contact-details-list {
  gap: 1.4rem;
}

.contact-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-ink);
  font-size: 0.92rem;
}

.section .contact-note {
  color: var(--on-ink-muted);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 0.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--ring);
}

.contact-form .btn {
  justify-self: start;
}

.form-hint {
  margin: 0;
  font-size: 0.82rem;
}

/* ==========================================================================
   Downloads page
   ========================================================================== */

/* The featured card overlaps the bottom of the dark hero. */
[data-page="products"] .page-hero {
  padding-bottom: 8rem;
}

.featured-section {
  padding-top: 0;
}

.featured-app {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
  margin-top: -4.5rem;
  padding: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

/* App identity: gradient icon tile, name, tags */

.app-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.app-head h3 {
  font-size: 1.25rem;
}

.app-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.05rem;
  background: linear-gradient(135deg, var(--from), var(--to));
  color: #fff;
  font-size: 1.6rem;
  box-shadow:
    0 12px 22px -10px color-mix(in srgb, var(--from) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.featured-app .app-head .app-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.25rem;
  font-size: 2rem;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.app-tag {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.app-tag.is-free {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.featured-desc {
  margin: 1.4rem 0 1.25rem;
  font-size: 1.08rem;
}

.featured-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.featured-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-outline {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.app-actions .btn:hover .lucide {
  transform: none;
}

/* Decorative dashboard mock-up */

.featured-visual {
  padding: 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 30%, rgba(124, 92, 255, 0.22), transparent 65%),
    radial-gradient(circle at 20% 80%, rgba(59, 99, 243, 0.18), transparent 60%);
}

.mock-window {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: var(--ink);
  box-shadow: 0 30px 60px -25px rgba(10, 16, 36, 0.6);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}

.mock-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-ink);
}

.mock-bar span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #ff5f57;
}

.mock-bar span:nth-child(2) {
  background: #febc2e;
}

.mock-bar span:nth-child(3) {
  background: #28c840;
}

.mock-body {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
}

.mock-side {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.1rem 0.8rem;
  border-right: 1px solid var(--border-ink);
}

.mock-side i {
  display: block;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
}

.mock-side i:first-child {
  background: var(--gradient);
}

.mock-main {
  padding: 1.1rem;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mock-kpis b {
  position: relative;
  display: block;
  height: 3.4rem;
  border: 1px solid var(--border-ink);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
}

.mock-kpis b::before,
.mock-kpis b::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  border-radius: 99px;
}

.mock-kpis b::before {
  top: 0.75rem;
  width: 45%;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
}

.mock-kpis b::after {
  top: 1.65rem;
  width: 65%;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.32);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 8.5rem;
  margin: 1rem 0;
  padding: 0.75rem 0.75rem 0;
  border: 1px solid var(--border-ink);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}

.mock-chart em {
  flex: 1;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, #8b7bff, #3b63f3);
}

.mock-rows {
  display: grid;
  gap: 0.5rem;
}

.mock-rows u {
  display: block;
  height: 0.6rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-rows u:nth-child(2) {
  width: 75%;
}

.mock-rows u:nth-child(3) {
  width: 88%;
}

/* Hero art: fanned stack of app icons */

.app-stack {
  position: relative;
  width: 10rem;
  height: 10rem;
}

.stack-tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.75rem;
  height: 4.75rem;
  margin: -2.375rem 0 0 -2.375rem;
  border-radius: 1.3rem;
  font-size: 2.1rem;
}

.stack-tile:nth-child(1) {
  transform: translate(-2.6rem, -2rem) rotate(-12deg);
}

.stack-tile:nth-child(2) {
  transform: translate(2.5rem, -2.3rem) rotate(9deg);
}

.stack-tile:nth-child(3) {
  transform: translate(-2.2rem, 2.4rem) rotate(7deg);
}

.stack-tile:nth-child(4) {
  transform: translate(2.6rem, 2.1rem) rotate(-8deg);
}

/* App grid */

.section-sub {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  font-size: 1.05rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Thin accent line in the app's colour. */
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--from), transparent 80%);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-desc {
  margin: 1.1rem 0 1.75rem;
}

.app-soon {
  margin-top: auto;
  font-weight: 600;
  color: var(--muted);
}

/* Scan-to-download panel: branded QR tag + steps */

.product-qr {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(18rem 10rem at 0% 50%, color-mix(in srgb, var(--from) 12%, transparent), transparent 70%),
    var(--surface-alt);
}

/* Black tag (like an App Store sticker): QR on white, official badge underneath. */
.qr-tag {
  position: relative;
  display: grid;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 9.25rem;
  padding: 0.55rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #1a1d29, #000 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 18px 32px -16px color-mix(in srgb, var(--from) 70%, #000);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-tag:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 40px -16px color-mix(in srgb, var(--from) 80%, #000);
}

.qr-code {
  padding: 0.6rem;
  border-radius: 0.6rem;
  background: #fff;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-inner {
  position: relative;
}

/* App icon in the middle of the code (modules underneath are left blank; ECC level H). */
.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--logo, 22%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 24%;
  background: linear-gradient(135deg, var(--from), var(--to));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 0 3px #fff;
}

.qr-badge {
  display: block;
  width: 100%;
  height: auto;
}

.qr-text {
  display: grid;
  gap: 0.6rem;
}

.qr-text strong {
  font-size: 1rem;
  color: var(--text);
}

.qr-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.qr-tap {
  display: none;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Several stores: labelled row of tags */
.product-qr.is-multi {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.qr-heading {
  font-size: 1rem;
  color: var(--text);
}

.qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.qr-item {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.qr-label {
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.qr-row .qr-tag {
  width: 8.5rem;
}

/* "Coming soon" bar for a platform that isn't released yet (e.g. a Windows app) */
.soon-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1.5px dashed color-mix(in srgb, var(--from, var(--accent)) 35%, var(--border));
  border-radius: var(--radius);
}

.soon-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--from, var(--accent)) 12%, transparent);
  color: var(--from, var(--accent));
  font-size: 1.15rem;
}

.soon-bar strong {
  font-size: 0.93rem;
  color: var(--text);
}

.soon-pill {
  margin-left: auto;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-meta {
  align-self: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Download buttons under the scan panel (e.g. Windows once released) */
.product-qr ~ .app-actions {
  margin-top: 0.85rem;
}

.qr-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.88rem;
}

.qr-hint .lucide {
  font-size: 1.05rem;
  color: var(--from, var(--accent));
}

.qr-hint .qr-tap {
  display: none;
}

/* Official Google Play badge */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 0.55rem;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  width: 9.5rem;
  height: auto;
}

.android-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Without an App Store panel above it, the strip sits at the bottom of the card. */
.app-desc + .android-strip {
  margin-top: auto;
}

.android-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.android-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.android-item {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
}

.android-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.android-item .store-badge img {
  width: 8.5rem;
}

.qr-step b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--from), var(--to));
  color: #fff;
  font-size: 0.72rem;
}

/* ==========================================================================
   Installer pages (downloads/<app>/index.html, written by each app's build script)
   ========================================================================== */

.installer-list {
  display: grid;
  gap: 1.25rem;
  max-width: 54rem;
  margin: 0 auto;
}

.dl-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.dl-head .app-icon {
  --from: #2563eb;
  --to: #7c5cff;
}

.dl-title {
  flex: 1 1 16rem;
}

.dl-title h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.dl-meta li {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.dl-steps {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  counter-reset: step;
}

.dl-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
  counter-increment: step;
}

.dl-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.dl-sha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.8rem;
  color: var(--muted);
}

.dl-sha span {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-sha code {
  flex: 1 1 20rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.dl-sha button {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dl-sha button:hover {
  border-color: var(--accent);
}

.dl-note {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  background: #fffbeb;
  font-size: 0.93rem;
  color: #78350f;
}

.dl-note .lucide {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.2rem;
  color: #d97706;
}

.dl-note p {
  margin: 0;
  color: inherit;
}

.dl-note code {
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(217, 119, 6, 0.12);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dl-row h2 {
  font-size: 1.1rem;
}

.dl-row p {
  margin: 0.25rem 0 0;
  font-size: 0.93rem;
}

.dl-row.is-soon {
  border-style: dashed;
  background: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-top: 4.5rem;
  background: var(--ink);
  color: var(--on-ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand p {
  max-width: 20rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.93rem;
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-contact .lucide {
  margin-top: 0.25rem;
  color: #8fa6ff;
}

.footer-contact a {
  color: #dbe2f5;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-links h4 {
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links a {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--on-ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-ink);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

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

[data-reveal] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .card-grid[data-cols="4"],
  .card-grid[data-cols="4"]:has(> :nth-child(7):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid[data-cols="4"]:has(> :nth-child(7):last-child) > *,
  .card-grid[data-cols="4"]:has(> :nth-child(7):last-child) > :nth-child(5) {
    grid-column: auto;
  }

  /* 5- and 6-step timelines become rows of three. */
  .timeline[data-count="6"],
  .timeline[data-count="5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .timeline[data-count="6"]::before,
  .timeline[data-count="5"]::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) {
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
    margin: 0 auto;
  }
}

@media (max-width: 920px) {
  .featured-app {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .mock-window {
    transform: none;
  }

  .hero-grid,
  .about-grid,
  .split,
  .contact-grid,
  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-visual {
    max-width: 34rem;
  }

  .code-window {
    transform: none;
  }

  .about-grid {
    gap: 2.5rem;
  }

  .split {
    gap: 1.25rem;
  }

  .card-grid[data-cols="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-art {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 4.5rem;
  }

  .container {
    width: calc(100% - 2rem);
  }

  .brand-mark {
    height: 3.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
    background: rgba(10, 16, 36, 0.97);
    border-bottom: 1px solid var(--border-ink);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .section {
    padding: 4.25rem 0;
  }

  .section-head {
    margin-bottom: 2.25rem;
  }

  .card-grid[data-cols],
  .card-grid[data-cols="4"]:has(> :nth-child(7):last-child),
  .feature-grid,
  .check-list,
  .field-row {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) {
    transform: none;
  }

  /* Compact cards on phones: icon beside the text instead of above it. */
  .card,
  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding: 1.25rem;
  }

  .card > *,
  .feature > * {
    grid-column: 2;
  }

  .card > .card-icon,
  .feature > .card-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    font-size: 1.2rem;
  }

  .card h3,
  .feature h3 {
    margin-top: 0.1rem;
    font-size: 1.02rem;
  }

  .card-more {
    padding-top: 0.6rem;
  }

  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .stat dt {
    font-size: 1.7rem;
  }

  .stat dd {
    font-size: 0.8rem;
  }

  .code {
    font-size: 0.8rem;
    padding: 1.25rem;
  }

  /* Timelines go vertical with a rail on the left. */
  .timeline,
  .timeline[data-count="6"],
  .timeline[data-count="5"] {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }

  .timeline::before,
  .timeline[data-count="6"]::before,
  .timeline[data-count="5"]::before {
    display: block;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.45rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), rgba(124, 92, 255, 0.15));
  }

  .timeline-step {
    padding-left: 4.25rem;
  }

  .step-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .chip-b {
    left: 0;
  }

  .cta-panel,
  .cta-compact {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius);
  }

  .legal-body,
  .contact-card,
  .contact-form {
    padding: 1.75rem 1.4rem;
    border-radius: var(--radius);
  }

  .featured-app,
  .app-card {
    padding: 1.5rem;
    border-radius: var(--radius);
  }

  .featured-visual {
    padding: 0.5rem;
  }

  .app-actions .btn {
    flex: 1 1 100%;
  }

  .product-qr {
    gap: 1rem;
    padding: 0.9rem;
  }

  .qr-tag {
    width: 8rem;
  }

  /* Phones can't scan their own screen: show "tap" instead of scan steps. */
  .qr-step {
    display: none;
  }

  .qr-tap {
    display: block;
  }

  .qr-hint .qr-hint-scan {
    display: none;
  }

  .qr-hint .qr-tap {
    display: inline;
  }

  .qr-row {
    gap: 0.75rem;
  }

  .qr-row .qr-tag {
    width: 7.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.cookie-notice p {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-notice p a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.cookie-notice-actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* the site's ghost button is made for the dark sections: on the white notice it needs its own outline */
.cookie-notice .cookie-decline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cookie-notice .cookie-decline:hover {
  background: var(--surface-alt);
}
