/* ==========================================================================
   Abba Group — Design System
   Apple-inspired minimalism: quiet surfaces, precise type, soft gradients.
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #515154;
  --muted-2: #86868b;
  --hairline: rgba(29, 29, 31, 0.08);
  --hairline-strong: rgba(29, 29, 31, 0.14);

  --blue: #0071e3;
  --grad-accent: linear-gradient(96deg, #0090ff 0%, #6a5cff 52%, #b84dff 100%);
  --grad-soft: radial-gradient(52% 68% at 24% 12%, rgba(0, 144, 255, 0.10) 0%, transparent 100%),
               radial-gradient(44% 60% at 82% 6%, rgba(184, 77, 255, 0.08) 0%, transparent 100%);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04), 0 4px 16px rgba(29, 29, 31, 0.04);
  --shadow-md: 0 2px 6px rgba(29, 29, 31, 0.05), 0 14px 40px rgba(29, 29, 31, 0.07);
  --shadow-lg: 0 8px 24px rgba(29, 29, 31, 0.08), 0 28px 80px rgba(29, 29, 31, 0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Home — space backdrop
   A tiny blurred preview is painted at once; the sharp photo fades in over it. */

body.home-space {
  background: #070b14;
  color: #f5f5f7;
}

.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #070b14 url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAADwBQCdASpAACQAPp1Gnkulo6KqJXgKaUATiWcAwKAImVtch9xrSMkizXpcVk/BcZVnhLLf6LItAAD+87gSyfJNymL9FS+D806jJtOfu+uUXa5JmZ7Qq1q7CpLiAPJcolwlvDHfy94LDfeuMaTLMsteVFZWAX6mbGwBZsTU9H4r4KBZ7oNQvDBl7d/LAauowxcF6KeY0axG+snmwAA=") center / cover no-repeat;
}

.space-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease);
}

.js .space-backdrop img:not(.is-loaded) {
  opacity: 0;
}

body.home-space::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.6));
  z-index: -1;
}

body.home-space .hero-animated::before {
  display: none;
}

body.home-space .hero-animated h1 .static-text {
  color: #f5f5f7;
}

body.home-space .animated-text {
  background: linear-gradient(96deg, #4db5ff 0%, #8b7cff 52%, #d17aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.home-space .hero-subtitle {
  color: rgba(245, 245, 247, 0.78);
}

body.home-space .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.home-space .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

body.home-space .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.home-space .footer-inner,
body.home-space .footer-note {
  color: rgba(245, 245, 247, 0.6);
}

::selection {
  background: rgba(0, 113, 227, 0.16);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  letter-spacing: -0.008em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Shared text utilities
   ========================================================================== */

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1.1rem;
}

/* Floating pill navbar
   ========================================================================== */

/* Full-width and untransformed, so the open mobile menu is placed against the
   viewport rather than squeezed into the wrapper */
.floating-nav-wrapper {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.floating-nav-wrapper > * {
  pointer-events: auto;
}

.floating-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.fnav-link {
  font-size: 0.88rem;
  padding: 0.48rem 0.95rem;
  border-radius: 9999px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.fnav-link:hover {
  background: rgba(29, 29, 31, 0.05);
  color: var(--ink);
}

.fnav-link.active {
  background: var(--ink);
  color: #ffffff;
}

.fnav-divider {
  width: 1px;
  height: 18px;
  margin: 0 0.25rem;
  background: var(--hairline-strong);
}

.fnav-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fnav-lang svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.floating-nav-wrapper .nav-toggle {
  display: none;
  border: 1px solid var(--hairline);
  padding: 0.55rem;
  cursor: pointer;
  margin-left: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

.floating-nav-wrapper .nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
              border-color 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(180deg, #2b8bff 0%, #0071e3 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28), 0 12px 32px rgba(0, 113, 227, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.32), 0 18px 44px rgba(0, 113, 227, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ink);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #000000;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: rgba(29, 29, 31, 0.3);
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--hairline-strong);
  background: rgba(255, 255, 255, 0.9);
}

.btn-full {
  width: 100%;
}

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

.hero-animated {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-animated::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(38% 42% at 30% 28%, rgba(0, 144, 255, 0.14) 0%, transparent 100%),
    radial-gradient(34% 40% at 72% 24%, rgba(184, 77, 255, 0.11) 0%, transparent 100%),
    radial-gradient(46% 46% at 52% 82%, rgba(0, 200, 255, 0.08) 0%, transparent 100%);
  filter: blur(48px);
  pointer-events: none;
}

.hero-animated-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  gap: 1.25rem;
}

.hero-animated h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 0.25rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-animated h1 .static-text {
  color: var(--ink);
}

.animated-text-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 1.18em;
  position: relative;
  min-width: 200px;
}

.animated-text {
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.5s ease;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.25rem;
}

/* About page — mission statement
   ========================================================================== */

.statement {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 120%;
  background: var(--grad-soft);
  filter: blur(40px);
  pointer-events: none;
}

.statement .container {
  position: relative;
}

.statement-inner {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.statement h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 24ch;
}

.statement p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}

/* About page — goal pillars
   ========================================================================== */

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

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-num {
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.pillar-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

/* About page — project features
   ========================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding: 2.5rem 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--hairline);
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  background: var(--surface-alt);
}

.feature-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.feature-media.contain img {
  object-fit: contain;
  padding: 2.5rem;
}

.feature-row:hover .feature-media img {
  transform: scale(1.02);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feature-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.feature-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature-copy p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

/* About page — founders & team
   ========================================================================== */

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

.founder-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.founder-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.founder-photo {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.founder-body {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
}

.founder-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.founder-label.neutral {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--muted-2);
  font-weight: 600;
}

.founder-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.founder-role {
  font-size: 0.9rem;
  color: var(--muted-2);
  font-weight: 500;
}

.founder-body p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted-2);
}

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

.section {
  padding: 5.5rem 0;
}

.section-first {
  padding-top: 9rem;
}

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

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

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-header h1,
.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-header p {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.two-columns h2,
.two-columns h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.two-columns p {
  color: var(--muted);
  line-height: 1.7;
}

/* Lists */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.96rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--grad-accent);
  opacity: 0.85;
}

.label {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--surface-alt);
  border: 1px solid var(--hairline);
  color: var(--muted);
}

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

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

.card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card p {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.card .btn {
  margin-top: auto;
  font-size: 0.88rem;
}

.card a.btn {
  text-align: center;
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--blue);
  transition: gap 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.6rem;
}

/* Products page
   Each product keeps its own brand colours; layout and motion stay shared.
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-ilars {
  --brand-a: #3a8dff;
  --brand-b: #8f5cff;
  --brand-c: #ff9a56;
}

.brand-drfiller {
  --brand-a: #2d6cdf;
  --brand-b: #7c5fe0;
  --brand-c: #37a169;
}

.brand-simuflow {
  --brand-a: #78003f;
  --brand-b: #e64164;
  --brand-c: #ff8fab;
}

.app-icon {
  display: block;
  border-radius: 23%;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.06),
              0 14px 30px -14px color-mix(in srgb, var(--brand-a, #1d1d1f) 70%, transparent);
}

/* Products page — hero */

.lineup-hero {
  position: relative;
  padding: 10rem 0 5.5rem;
  overflow: hidden;
  text-align: center;
}

.lineup-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background: var(--grad-soft);
  filter: blur(40px);
  pointer-events: none;
}

.lineup-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.lineup-hero .eyebrow {
  margin: 0;
}

.lineup-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lineup-hero-text {
  margin: 0;
  max-width: 640px;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: balance;
}

.lineup-icons {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 4vw, 3rem);
  margin-top: 2.75rem;
}

.lineup-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 11rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.lineup-icon:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.lineup-icon-art {
  display: block;
  margin-bottom: 1rem;
}

.lineup-icon .app-icon {
  width: 104px;
  height: 104px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.lineup-icon:hover .app-icon {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.06),
              0 24px 44px -16px color-mix(in srgb, var(--brand-a) 80%, transparent);
}

.lineup-icon-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.lineup-icon-text {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted-2);
  text-wrap: balance;
}

/* Products page — product stages */

.product {
  padding: 1.25rem 0;
  scroll-margin-top: 5rem;
}

.product-container {
  max-width: 1240px;
}

.product-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 3.75rem;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  background:
    radial-gradient(34% 40% at var(--glow-x, 74%) 30%, color-mix(in srgb, var(--brand-a) 16%, transparent) 0%, transparent 100%),
    radial-gradient(30% 36% at calc(var(--glow-x, 74%) - 12%) 78%, color-mix(in srgb, var(--brand-b) 14%, transparent) 0%, transparent 100%),
    radial-gradient(24% 30% at calc(var(--glow-x, 74%) + 16%) 66%, color-mix(in srgb, var(--brand-c) 12%, transparent) 0%, transparent 100%);
  filter: blur(36px);
  pointer-events: none;
}

.product-stage.reverse {
  --glow-x: 28%;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.product-stage.reverse .product-copy {
  order: 2;
}

.product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.product-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product-id .app-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.product-name {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.product-kind {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product-headline {
  margin: 0.5rem 0 0;
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-wrap: balance;
}

.product-headline .accent {
  background: linear-gradient(100deg, var(--brand-a) 0%, var(--brand-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.product-text {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.product-points {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.product-points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-a) 13%, transparent);
}

.product-points li::after {
  content: "";
  position: absolute;
  left: 0.47rem;
  top: calc(0.1em + 0.27rem);
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--brand-a);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.4rem;
  margin-top: 0.75rem;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-a) 0%, var(--brand-b) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand-a) 28%, transparent),
              0 14px 30px -10px color-mix(in srgb, var(--brand-b) 55%, transparent);
}

.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-a) 32%, transparent),
              0 20px 40px -12px color-mix(in srgb, var(--brand-b) 60%, transparent);
}

.icon-out {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

a:hover > .icon-out {
  transform: translate(2px, -2px);
}

.store-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.store-link:hover {
  color: var(--ink);
}

/* Products page — showcase: a browser window with a phone in front.
   Sizes inside the frames use container units, so every frame scales with
   the column instead of being cropped. */

.showcase {
  --depth: 40px;
  position: relative;
  aspect-ratio: 1.3;
}

.showcase-browser {
  container-type: inline-size;
  position: absolute;
  top: 4%;
  left: 0;
  width: 88%;
  translate: 0 calc(var(--shift, 0) * var(--depth) / 4);
}

.showcase-phone {
  container-type: inline-size;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  translate: 0 calc(var(--shift, 0) * var(--depth));
}

.reverse .showcase-browser {
  left: auto;
  right: 0;
}

.reverse .showcase-phone {
  right: auto;
  left: 0;
}

.browser {
  position: relative;
  overflow: hidden;
  border-radius: 1.4cqw;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.08),
              0 12px 28px -12px rgba(29, 29, 31, 0.22),
              0 40px 80px -32px color-mix(in srgb, var(--brand-b) 40%, transparent);
}

.browser img {
  width: 100%;
  height: auto;
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 3.75cqw;
  padding: 0 1.6cqw;
  background: #f3f3f6;
  border-bottom: 1px solid rgba(29, 29, 31, 0.07);
}

.browser-dots {
  display: flex;
  gap: 0.55cqw;
}

.browser-dots i {
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: #d5d5dc;
}

.browser-url {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27cqw;
  height: 2.3cqw;
  border-radius: 0.6cqw;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.06);
  font-size: 1.1cqw;
  color: #6e6e76;
  white-space: nowrap;
}

.phone {
  position: relative;
  padding: 3.6cqw;
  border-radius: 15.5cqw;
  background: #1d1d1f;
  box-shadow: inset 0 0 0 0.9cqw #3b3b40,
              inset 0 0 0 1.4cqw #111113,
              0 0 0 1px rgba(29, 29, 31, 0.2),
              0 18px 36px -14px rgba(29, 29, 31, 0.45),
              0 40px 80px -30px color-mix(in srgb, var(--brand-a) 45%, transparent);
}

.phone::after {
  content: "";
  position: absolute;
  top: 6cqw;
  left: 50%;
  z-index: 2;
  width: 27cqw;
  height: 7.8cqw;
  border-radius: 999px;
  background: #050506;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  aspect-ratio: 1290 / 2796;
  border-radius: 11.9cqw;
  overflow: hidden;
  background: #ffffff;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}

.phone-screen img.is-active {
  opacity: 1;
  transform: none;
}

/* Products page — closing call to action */

.lineup-cta {
  padding: 6rem 0 7rem;
}

.lineup-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.lineup-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lineup-cta p {
  margin: 0 0 0.6rem;
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Company page
   ========================================================================== */

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

.company-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.company-card h2,
.company-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.data-list {
  margin: 0;
}

.data-list div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}

.data-list div:last-child {
  border-bottom: none;
}

.data-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-2);
}

.data-list dd {
  margin: 0.2rem 0 0;
  font-size: 0.97rem;
  color: var(--ink);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-layout h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.contact-layout > div > p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-list a {
  color: var(--blue);
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
}

.contact-form h2,
.contact-form h3 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted-2);
}

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

.footer {
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--hairline);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-note {
  color: var(--muted-2);
}

/* Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUpSoft {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-animated h1,
  .hero-animated .hero-subtitle,
  .hero-animated .hero-actions,
  .statement .eyebrow,
  .statement h2,
  .statement p,
  .lineup-hero .eyebrow,
  .lineup-hero h1,
  .lineup-hero-text {
    animation: fadeUpSoft 640ms var(--ease) both;
  }

  .hero-animated .hero-subtitle,
  .statement h2,
  .lineup-hero h1 { animation-delay: 80ms; }

  .hero-animated .hero-actions,
  .statement p,
  .lineup-hero-text { animation-delay: 160ms; }

  .pillars-grid .pillar-card,
  .founders-grid .founder-card {
    animation: fadeUpSoft 640ms var(--ease) both;
  }

  .pillars-grid .pillar-card:nth-child(1),
  .founders-grid .founder-card:nth-child(1) { animation-delay: 60ms; }

  .pillars-grid .pillar-card:nth-child(2),
  .founders-grid .founder-card:nth-child(2) { animation-delay: 140ms; }

  .pillars-grid .pillar-card:nth-child(3) { animation-delay: 220ms; }

  /* Products page */

  @keyframes iconRise {
    from {
      opacity: 0;
      transform: translateY(26px) scale(0.86);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

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

  @keyframes glowDrift {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(3%, 2%, 0) scale(1.08); }
  }

  .lineup-icon {
    animation: iconRise 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .lineup-icon:nth-child(1) { animation-delay: 240ms; }
  .lineup-icon:nth-child(2) { animation-delay: 360ms; }
  .lineup-icon:nth-child(3) { animation-delay: 480ms; }

  .lineup-icon-art {
    animation: iconFloat 6s ease-in-out infinite;
  }

  .lineup-icon:nth-child(2) .lineup-icon-art { animation-delay: -2s; }
  .lineup-icon:nth-child(3) .lineup-icon-art { animation-delay: -4s; }

  .product-stage::before {
    animation: glowDrift 18s ease-in-out infinite alternate;
  }

  /* Sections fade in once they scroll into view (script.js adds .is-visible) */

  .js .product-copy > *,
  .js .lineup-cta-inner > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  }

  .js .product-copy.is-visible > *,
  .js .lineup-cta-inner.is-visible > * {
    opacity: 1;
    transform: none;
  }

  .js .product-copy > :nth-child(2),
  .js .lineup-cta-inner > :nth-child(2) { transition-delay: 80ms; }

  .js .product-copy > :nth-child(3),
  .js .lineup-cta-inner > :nth-child(3) { transition-delay: 160ms; }

  .js .product-copy > :nth-child(4) { transition-delay: 240ms; }

  .js .product-copy > :nth-child(5) { transition-delay: 320ms; }

  .js .showcase-browser {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
    transition: opacity 1s var(--ease) 0.1s, transform 1.3s var(--ease) 0.1s;
  }

  .js .showcase-phone {
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 1s var(--ease) 0.35s, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  }

  .js .is-visible .showcase-browser,
  .js .is-visible .showcase-phone {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 1100px) {
  .product-stage,
  .product-stage.reverse {
    gap: 2.5rem;
    padding: 3.5rem 3rem;
  }
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .feature-media img {
    height: 300px;
  }

  .founders-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-grid,
  .two-columns,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-nav {
    display: none;
  }

  .floating-nav-wrapper .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .floating-nav.open {
    position: fixed;
    top: 4rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    gap: 0.15rem;
  }

  .floating-nav.open .fnav-link {
    width: 100%;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .floating-nav.open .fnav-divider {
    width: auto;
    height: 1px;
    margin: 0.35rem 0.95rem;
  }

  .product-stage,
  .product-stage.reverse {
    --glow-x: 70%;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
    padding: 3.25rem 2.5rem 3.5rem;
  }

  .product-stage.reverse .product-copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .section-first {
    padding-top: 7.5rem;
  }

  .statement {
    padding: 7.5rem 0 3.5rem;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-photo {
    height: 320px;
    min-height: 0;
  }

  .feature-media img {
    height: 240px;
  }

  .hero-animated {
    padding: 5rem 0 3rem;
  }

  .lineup-hero {
    padding: 8rem 0 3.5rem;
  }

  .lineup-icons {
    gap: 0.25rem;
    margin-top: 2rem;
  }

  .lineup-icon {
    flex: 1 1 0;
    width: auto;
  }

  .lineup-icon .app-icon {
    width: 76px;
    height: 76px;
  }

  .lineup-icon-text {
    font-size: 0.78rem;
  }

  .product {
    padding: 0.6rem 0;
  }

  .product-container {
    padding: 0 0.75rem;
  }

  .product-stage,
  .product-stage.reverse {
    gap: 2.25rem;
    padding: 2.5rem 1.4rem 2.75rem;
    border-radius: 28px;
  }

  .showcase {
    --depth: 18px;
    aspect-ratio: 1.08;
  }

  .showcase-browser {
    top: 4%;
    width: 92%;
  }

  .showcase-phone {
    width: 36%;
  }

  .lineup-cta {
    padding: 4.5rem 0 5rem;
  }
}
