/* ============================================================
   T&E Solutions — Design System
   Frontline-inspired: light, airy, premium AI startup
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #FAFAFC;
  --bg-2: #FFFFFF;
  --bg-lav: #E7E9FB;
  --bg-peri: #DDE6FF;

  /* Ink */
  --ink: #16161D;
  --ink-soft: #2C2D38;
  --muted: #5B5D6B;
  --muted-2: #8A8C9A;

  /* Accent (single) */
  --accent: #A6DAFF;
  --accent-deep: #6FB8F0;
  --accent-ink: #1B4F77;

  /* Lines & shadow */
  --line: #ECECF2;
  --line-2: #E3E3EC;
  --shadow-sm: 0 1px 2px rgba(22,22,29,.04), 0 1px 3px rgba(22,22,29,.05);
  --shadow-md: 0 4px 14px rgba(22,22,29,.05), 0 2px 6px rgba(22,22,29,.04);
  --shadow-lg: 0 24px 60px -18px rgba(40,44,90,.22), 0 8px 24px -12px rgba(22,22,29,.10);
  --shadow-card: 0 1px 0 rgba(22,22,29,.02), 0 8px 28px -16px rgba(40,44,90,.18);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Rhythm */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 132px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  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-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); line-height: 1.05; }
.display {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h2 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -0.03em; line-height: 1.06; }
.h3 { font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); line-height: 1.55; font-weight: 400; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-ink);
  text-transform: none;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }
.muted { color: var(--muted); }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding-inline: 24px;
  border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(22,22,29,.3), 0 8px 20px -10px rgba(22,22,29,.5);
}
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(22,22,29,.3), 0 14px 28px -12px rgba(22,22,29,.55); }
.btn-ghost {
  background: rgba(255,255,255,.6); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #fff; border-color: #d7d7e2; transform: translateY(-1px); }
.btn-sm { height: 42px; padding-inline: 18px; font-size: 14.5px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding-inline: 13px;
  border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.pill.accent { background: color-mix(in srgb, var(--accent) 34%, #fff); border-color: color-mix(in srgb, var(--accent) 55%, #fff); color: var(--accent-ink); }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-deep); }
.pill .pdot.live { box-shadow: 0 0 0 0 rgba(111,184,240,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(111,184,240,.55);} 70%{box-shadow:0 0 0 7px rgba(111,184,240,0);} 100%{box-shadow:0 0 0 0 rgba(111,184,240,0);} }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
