/* ============================================================
   TRIBE — Landing Page
   Aesthetic: editorial-modern, dark hero, warm light body
   Brand teal #0D9488 + amber #E68A00 (very sparing) + Inter
   ============================================================ */

:root {
  /* Brand */
  --teal-50:  #ECFDF5;
  --teal-100: #CCFBF1;
  --teal-300: #5EEAD4;
  --teal-400: #2DD4BF;
  --teal:     #0D9488;
  --teal-600: #0F766E;
  --teal-700: #115E59;
  --teal-900: #042F2E;

  --amber:    #E68A00;
  --amber-light: #F59E0B;

  /* Neutrals — warm */
  --paper:    #F7F5EE;     /* warm off-white body */
  --paper-2:  #EFECE2;     /* slightly deeper */
  --ink:      #0B1413;     /* near-black, slight teal */
  --ink-2:    #1A2625;
  --ink-3:    #2A3635;
  --muted:    #5C6B6A;
  --line:     rgba(11, 20, 19, 0.08);

  /* Dark */
  --night:    #04161A;     /* dark navy-teal for hero */
  --night-2:  #082327;

  /* Type */
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--teal); color: white; }

/* ----------------------------------------------------------------
   UTILS
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   NAV
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 22, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav.is-light.is-scrolled {
  background: rgba(247, 245, 238, 0.82);
  border-bottom-color: var(--line);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}
.nav.is-light .nav__brand { color: var(--ink); }
.nav__logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.nav.is-light .nav__links { color: var(--muted); }
.nav__links a {
  position: relative;
  transition: color 0.2s;
}
.nav__links a:hover { color: white; }
.nav.is-light .nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav.is-light .lang-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}
.lang-toggle__opt {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav.is-light .lang-toggle__opt { color: var(--muted); }
.lang-toggle__opt.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.nav.is-light .lang-toggle__opt.is-active {
  background: var(--ink);
  color: var(--paper);
}
.lang-toggle__opt:hover:not(.is-active) { color: white; }
.nav.is-light .lang-toggle__opt:hover:not(.is-active) { color: var(--ink); }

@media (max-width: 800px) {
  .lang-toggle { display: none; }
}
.nav.is-light .nav__cta {
  background: var(--ink);
  color: var(--paper);
}
.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  align-items: center;
  justify-content: center;
}
.nav.is-light .nav__burger {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.04);
}

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

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--night);
  color: white;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero__mesh::before,
.hero__mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  animation: drift 22s var(--ease-out-expo) infinite alternate;
}
.hero__mesh::before {
  width: 60vw;
  height: 60vw;
  left: -10vw;
  top: -10vw;
  background: radial-gradient(circle at 30% 30%, #0D9488 0%, #115E59 40%, transparent 70%);
}
.hero__mesh::after {
  width: 50vw;
  height: 50vw;
  right: -15vw;
  bottom: -20vw;
  background: radial-gradient(circle at 60% 40%, #14B8A6 0%, #042F2E 50%, transparent 70%);
  animation-delay: -8s;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.15); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.hero__badge-tag {
  background: var(--teal);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5EEAD4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18); }
  50%      { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
}

.hero__title {
  margin: 24px 0 0 0;
  font-size: clamp(44px, 6.4vw, 104px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__title .line { display: block; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title em {
  font-style: normal;
  color: var(--teal-300);
}
.hero__title .serif {
  color: var(--teal-300);
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 28px 0 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  text-wrap: pretty;
}

.hero__ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: none;
  transition: transform 0.25s var(--ease-out-quart), background 0.25s, color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--ink);
  color: var(--paper);
}
.btn--dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out-quart);
}
.btn:hover .arrow { transform: translateX(4px); }

.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__meta-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
}
.hero__meta-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ---- Hero visual: phone with floating cards ---- */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.phone {
  position: relative;
  width: clamp(260px, 28vw, 340px);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #1a2625 0%, #0b1413 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.55),
    0 24px 48px rgba(13, 148, 136, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  color: var(--ink);
}
.phone__shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0b1413;
  border-radius: 999px;
  z-index: 3;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.phone__status-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.phone__status-icons svg { width: 14px; height: 14px; }

.phone__app {
  padding: 18px 18px 0;
  height: calc(100% - 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.phone__greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.phone__greeting-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
  margin-bottom: 4px;
}
.phone__greeting-text strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-700));
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.phone__hero-card {
  background: var(--teal);
  color: white;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.phone__hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -50% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
}
.phone__hero-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.phone__hero-title {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 12px;
  letter-spacing: -0.01em;
}
.phone__hero-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  opacity: 0.9;
}
.phone__hero-meta span { display: inline-flex; align-items: center; gap: 4px; }

.phone__quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.phone__quick-item {
  background: rgba(13, 148, 136, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--teal-700);
}
.phone__quick-item .ico {
  width: 24px; height: 24px;
  margin: 0 auto 4px;
  background: var(--teal);
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
}

.phone__list { display: flex; flex-direction: column; gap: 8px; }
.phone__list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
}
.phone__list-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.phone__list-item.amber .phone__list-dot { background: var(--amber); }
.phone__list-text { flex: 1; min-width: 0; }
.phone__list-text strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.phone__list-text small { font-size: 10px; color: var(--muted); }
.phone__list-pill {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--teal-100);
  color: var(--teal-700);
  letter-spacing: 0.04em;
}
.phone__list-pill.amber { background: #FEF3C7; color: #B45309; }

/* Floating cards around phone */
.float-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: bob 6s ease-in-out infinite;
}
.float-card--1 { top: 8%; left: -8%; animation-delay: 0s; }
.float-card--2 { top: 45%; right: -10%; animation-delay: -2s; }
.float-card--3 { bottom: 6%; left: 0%; animation-delay: -4s; }

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

.float-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: white;
}
.float-card__icon.teal { background: var(--teal); }
.float-card__icon.amber { background: var(--amber); }
.float-card__icon.success { background: #10B981; }
.float-card__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.float-card__text small {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 520px; }
  .float-card--1 { left: -4%; top: 4%; }
  .float-card--2 { right: -4%; }
}

/* ----------------------------------------------------------------
   MARQUEE
   ---------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 4;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-items: center;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.7);
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  margin-left: 38px;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   SECTION SHELL
   ---------------------------------------------------------------- */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper-2 { background: var(--paper-2); color: var(--ink); }
.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .eyebrow { color: var(--teal-400); }

.section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: 64px;
}
.section__title {
  margin: 16px 0 0 0;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section__title em { font-style: normal; color: var(--teal); }
.section__sub {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 480px;
  justify-self: end;
}
.section--ink .section__sub { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 800px) {
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .section__sub { justify-self: start; }
}

/* ----------------------------------------------------------------
   ROLES — interactive tabs
   ---------------------------------------------------------------- */
.roles {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.roles__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--line);
}
.roles__tab {
  text-align: left;
  background: none;
  border: none;
  padding: 22px 24px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  position: relative;
}
.roles__tab strong {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
}
.roles__tab span {
  font-size: 14px;
  color: var(--muted);
  max-width: 360px;
  display: none;
}
.roles__tab.is-active {
  color: var(--ink);
  border-left-color: var(--teal);
}
.roles__tab.is-active span { display: block; }
.roles__tab:hover:not(.is-active) {
  color: var(--ink-3);
}

.roles__panel {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 32px;
  min-height: 480px;
  overflow: hidden;
}
.roles__panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.4), transparent 60%);
  filter: blur(40px);
}
.roles__panel-inner { position: relative; z-index: 2; }
.roles__panel-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--teal-300);
}
.roles__panel-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 24px 0 12px;
}
.roles__panel-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.roles__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.roles__panel-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}
.roles__panel-list li::before {
  content: "→";
  color: var(--teal-300);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; }
  .roles__panel-list { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   FEATURE GRID
   ---------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-quart), border-color 0.4s, background 0.4s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}
.section--ink .feature {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.section--ink .feature:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--teal);
}

.feature--span-6 { grid-column: span 6; min-height: 320px; }
.feature--span-4 { grid-column: span 4; }
.feature--span-3 { grid-column: span 3; }
.feature--feature {
  grid-column: span 6;
  background: var(--teal);
  color: white;
  border-color: transparent;
  min-height: 320px;
}
.feature--feature:hover { transform: translateY(-4px); border-color: transparent; }
.feature--feature::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--teal-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.section--ink .feature__icon {
  background: var(--teal);
  color: white;
}
.feature--feature .feature__icon {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.feature__body { display: flex; flex-direction: column; gap: 10px; }
.feature__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}
.feature--feature .feature__title { font-size: 28px; }
.feature__desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}
.section--ink .feature__desc { color: rgba(255, 255, 255, 0.6); }
.feature--feature .feature__desc { color: rgba(255, 255, 255, 0.85); font-size: 15px; }

.feature__viz {
  align-self: stretch;
  min-height: 100px;
}

/* mini visualizations */
.viz-bars { display: flex; gap: 6px; align-items: flex-end; height: 90px; }
.viz-bars span {
  flex: 1;
  background: var(--teal);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.feature--feature .viz-bars span { background: rgba(255, 255, 255, 0.5); }
.feature--feature .viz-bars span:nth-child(odd) { background: rgba(255, 255, 255, 0.85); }

.viz-rsvp {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.viz-rsvp span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.viz-rsvp .yes { background: #D1FAE5; color: #047857; }
.viz-rsvp .maybe { background: #FEF3C7; color: #B45309; }
.viz-rsvp .no { background: #FEE2E2; color: #B91C1C; }

.viz-roster {
  display: flex;
  align-items: center;
}
.viz-roster span {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--paper);
  margin-left: -8px;
  color: white;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--sans);
}
.section--ink .viz-roster span { border-color: var(--ink); }
.viz-roster span:first-child { margin-left: 0; }
.viz-roster span:nth-child(2) { background: var(--teal-600); }
.viz-roster span:nth-child(3) { background: var(--amber); }
.viz-roster span:nth-child(4) { background: var(--teal-700); }
.viz-roster span:nth-child(5) {
  background: transparent;
  color: var(--muted);
  border-style: dashed;
  font-size: 11px;
}

.viz-paid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
  font-family: var(--mono);
}
.viz-paid > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.section--ink .viz-paid > div { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.viz-paid b {
  display: block;
  font-size: 20px;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.viz-paid .paid b { color: #047857; }
.viz-paid .due b { color: var(--amber); }

.viz-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.viz-chat span {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}
.viz-chat .them { background: var(--paper-2); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.viz-chat .me { background: var(--teal); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.section--ink .viz-chat .them { background: rgba(255, 255, 255, 0.06); color: var(--paper); }

@media (max-width: 1000px) {
  .feature--span-6, .feature--feature { grid-column: span 12; }
  .feature--span-4 { grid-column: span 6; }
  .feature--span-3 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .feature--span-4, .feature--span-3 { grid-column: span 12; }
}

/* ----------------------------------------------------------------
   APP SHOWCASE STRIP
   ---------------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1600px;
}
.showcase__phone {
  background: var(--ink-2);
  border-radius: 32px;
  padding: 10px;
  aspect-ratio: 9 / 19;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease-out-quart);
}
.showcase__phone:nth-child(2) { transform: translateY(40px); }
.showcase__phone:nth-child(3) { transform: rotateY(8deg) rotateX(4deg); }
.showcase__phone:hover { transform: translateY(-10px) rotateY(0) rotateX(0); }

.showcase__screen {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.showcase__placeholder {
  flex: 1;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(13, 148, 136, 0.06) 12px 13px),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
}
.showcase__placeholder small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.showcase__img {
  flex: 1;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.showcase__label {
  background: var(--ink);
  color: white;
  padding: 14px 16px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.showcase__label .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400);
}

@media (max-width: 800px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__phone, .showcase__phone:nth-child(2), .showcase__phone:nth-child(3) {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   STATS / PROOF
   ---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat {
  padding: 40px 28px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat__num {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
}
.stat__num em { font-style: normal; color: var(--teal-300); }
.stat__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ----------------------------------------------------------------
   CONTACT
   ---------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.contact__intro h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 16px 0 0 0;
}
.contact__intro h2 em { font-style: normal; color: var(--teal); }
.contact__intro p {
  margin: 24px 0 32px;
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.55;
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
  transition: transform 0.25s, border-color 0.25s;
}
.contact__channel:hover { transform: translateX(4px); border-color: var(--teal); }
.contact__channel-icon {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--teal-300);
  border-radius: 12px;
  display: grid; place-items: center;
}
.contact__channel-text { flex: 1; }
.contact__channel-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}
.contact__channel-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Form */
.form {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.form::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.form__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: span 2; }
.form__field label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.55);
}
.form__field input,
.form__field textarea,
.form__field select {
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--paper);
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--teal-400);
  background: rgba(255, 255, 255, 0.06);
}
.form__field textarea { min-height: 120px; resize: vertical; }
.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.form__submit {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form__note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
}
.form__success {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.form__success.is-on { opacity: 1; pointer-events: auto; }
.form__success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: white;
}
.form__success h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.form__success p { color: rgba(255, 255, 255, 0.6); max-width: 320px; margin: 0; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .form__field--full, .form__submit { grid-column: span 1; }
}

/* ----------------------------------------------------------------
   CTA BANNER
   ---------------------------------------------------------------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--paper);
  overflow: hidden;
}
.cta-banner__title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 32px;
}
.cta-banner__title em { font-style: normal; color: var(--teal); }
.cta-banner__title .serif { color: var(--teal); }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 12px;
}
.footer__brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
  line-height: 1.55;
}
.footer__col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--teal-400); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Theme variants (Tweaks)
   ---------------------------------------------------------------- */
body[data-hero="light"] .hero {
  background: var(--paper);
  color: var(--ink);
}
body[data-hero="light"] .hero__mesh::before {
  opacity: 0.25;
  background: radial-gradient(circle, var(--teal-300), transparent 60%);
}
body[data-hero="light"] .hero__mesh::after {
  opacity: 0.25;
  background: radial-gradient(circle, var(--amber-light), transparent 60%);
}
body[data-hero="light"] .hero__sub { color: var(--muted); }
body[data-hero="light"] .hero__badge { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.5); }
body[data-hero="light"] .hero__title em,
body[data-hero="light"] .hero__title .serif { color: var(--teal); }
body[data-hero="light"] .hero__meta-num { color: var(--ink); }
body[data-hero="light"] .hero__meta-label { color: var(--muted); }
body[data-hero="light"] .btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  border-color: var(--line);
}
body[data-hero="light"] .btn--ghost:hover { background: rgba(0, 0, 0, 0.08); }
body[data-hero="light"] .nav { /* override */ }
body[data-hero="light"] .nav .nav__brand { color: var(--ink); }
body[data-hero="light"] .nav .nav__links { color: var(--muted); }
body[data-hero="light"] .nav .nav__cta { background: var(--ink); color: var(--paper); }

body[data-accent="amber"] {
  --teal: var(--amber);
  --teal-300: #FBBF24;
  --teal-400: #F59E0B;
  --teal-600: #B45309;
  --teal-700: #92400E;
}
