/* ============================================================
   TDM · Staff Augmentation — design system
   ============================================================ */
:root {
  /* Palette — deep near-black green + refined emerald */
  --bg: #06120d;
  --bg-elev: #0a1c15;
  --bg-card: #0d241b;
  --bg-card-2: #103127;
  --border: rgba(94, 224, 166, 0.1);
  --border-2: rgba(94, 224, 166, 0.2);
  --border-3: rgba(94, 224, 166, 0.32);

  --text: #e9f1ec;
  --text-dim: #a4b6ac;
  --text-faint: #6a7c72;

  --accent: #3ecf8e;
  --accent-bright: #64e8ab;
  --accent-deep: #159068;
  --grad: linear-gradient(135deg, #64e8ab 0%, #23a779 100%);
  --grad-soft: linear-gradient(135deg, rgba(100, 232, 171, 0.16), rgba(35, 167, 121, 0.06));

  /* Type */
  --font-display: "Satoshi", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px var(--border-2), 0 20px 50px -24px rgba(62, 207, 142, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
::selection {
  background: var(--accent);
  color: #05130d;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
section {
  position: relative;
  padding-block: clamp(72px, 10vw, 132px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.eyebrow.center {
  justify-content: center;
}
.section-head {
  max-width: 640px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  margin-top: 18px;
}
.lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.7;
}
.text-grad {
  background: linear-gradient(120deg, #8ff0c4, var(--accent) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--grad);
  color: #04140d;
  box-shadow: 0 10px 30px -10px rgba(62, 207, 142, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(62, 207, 142, 0.65);
}
.btn-primary .arrow {
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 18, 13, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.25s;
}
.nav a:hover {
  color: var(--text);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 99;
  background: rgba(6, 18, 13, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.drawer.open {
  display: flex;
}
.drawer a:not(.btn) {
  padding: 13px 4px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.drawer .btn {
  margin-top: 16px;
}

/* ---------- aurora / ambient ---------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora::before {
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(62, 207, 142, 0.34), transparent 68%);
}
.aurora::after {
  width: 520px;
  height: 520px;
  bottom: -260px;
  right: -120px;
  background: radial-gradient(circle, rgba(35, 167, 121, 0.24), transparent 66%);
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
  z-index: 0;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 168px;
  padding-bottom: 96px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  margin-top: 26px;
}
.hero .lead {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.trust-line {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.trust-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.16);
  flex: none;
}

/* timezone card */
.tz-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 49, 39, 0.8), rgba(10, 28, 21, 0.9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow);
}
.tz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(100, 232, 171, 0.5), transparent 45%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.tz-head span {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tz-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--accent-bright);
}
.tz-live .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(62, 207, 142, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0);
  }
}
.tz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.tz-row + .tz-row {
  border-top: 1px solid var(--border);
}
.tz-city {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tz-city .flag {
  width: 32px;
  height: 23px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  flex: none;
}
.tz-city .flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tz-city b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.tz-city small {
  display: block;
  color: var(--text-faint);
  font-size: 0.76rem;
}
.tz-time {
  text-align: right;
}
.tz-time .clock {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 1.02rem;
}
.tz-time .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--accent);
  margin-top: 2px;
}
.tz-time .status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- generic grid + cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  background: var(--bg-card-2);
}
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.icon-box svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---------- model strip ---------- */
.model-card {
  text-align: left;
}
.model-card .step-n {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ---------- roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.role-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
}
.role-col > .head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.role-col .head .icon-box {
  margin: 0;
}
.role-col .head h3 {
  font-size: 1.3rem;
  margin: 0;
}
.role-col .head small {
  color: var(--text-faint);
  font-size: 0.85rem;
}
.role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.role-item:last-child {
  border-bottom: none;
}
.role-item .r-name {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
}
.role-item .r-stack {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-align: right;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step .s-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- savings ---------- */
.savings-wrap {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.save-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  gap: 16px;
}
.save-row + .save-row {
  border-top: 1px solid var(--border);
}
.save-row.head {
  background: var(--bg-elev);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-block: 14px;
}
.save-role {
  font-family: var(--font-display);
  font-weight: 600;
}
.save-local {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(150, 170, 160, 0.5);
  font-variant-numeric: tabular-nums;
}
.save-tdm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.save-cta {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 38px;
}
.save-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 10px 0 6px;
}

/* ---------- confidentiality ---------- */
.conf {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(35, 167, 121, 0.12), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(34px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.conf-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.conf-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--text-dim);
}
.conf-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.shield {
  display: grid;
  place-items: center;
}
.shield-badge {
  width: min(280px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.14), transparent 70%);
  border: 1px solid var(--border-2);
  position: relative;
}
.shield-badge::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed var(--border-2);
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shield-badge svg {
  width: 40%;
  height: 40%;
  color: var(--accent-bright);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 34px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  background: linear-gradient(120deg, #9ff2ce, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- faq ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.faq-q .chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 4px 24px;
  color: var(--text-dim);
  max-width: 700px;
}

/* ---------- final cta ---------- */
.final {
  position: relative;
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(35, 167, 121, 0.18), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: clamp(48px, 7vw, 88px) 24px;
  overflow: hidden;
}
.final h2 {
  max-width: 720px;
  margin-inline: auto;
}
.final .hero-ctas {
  justify-content: center;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 34px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-faint);
  max-width: 300px;
  font-size: 0.92rem;
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a,
.footer-col span {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color 0.25s;
}
.footer-col a:hover {
  color: var(--accent-bright);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.08s;
}
.reveal[data-d="2"] {
  transition-delay: 0.16s;
}
.reveal[data-d="3"] {
  transition-delay: 0.24s;
}
.reveal[data-d="4"] {
  transition-delay: 0.32s;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .savings-wrap,
  .conf {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 132px;
  }
  .hero .lead {
    max-width: 560px;
  }
  .cols-3,
  .cols-4,
  .stats,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav,
  .header-cta .btn {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .shield {
    order: -1;
  }
}
@media (max-width: 620px) {
  .container {
    padding-inline: 18px;
  }
  .cols-2,
  .cols-3,
  .cols-4,
  .stats,
  .steps,
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
}

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