/*
 * Fantom Website — Shared Stylesheet
 * Plain HTML/CSS conversion of the React UI kit
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #fff;
  color: rgba(0,0,0,0.95);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: #3a7bd5; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }

/* ─── COLOR TOKENS ───────────────────────────────────────────────────────── */
:root {
  --brand:          #3a7bd5;
  --brand-hover:    #2a60b0;
  --brand-dark:     #2d3e4a;
  --bg-page:        #ffffff;
  --bg-alt:         #f6f5f4;
  --bg-dark:        #2d2c2a;
  --fg-primary:     rgba(0,0,0,0.95);
  --fg-secondary:   #615d59;
  --fg-muted:       #a39e98;
  --fg-dark-1:      #f0ede9;
  --fg-dark-2:      #a39e98;
  --border:         rgba(0,0,0,0.10);
  --border-med:     rgba(0,0,0,0.08);
  --badge-bg:       #e8f4fd;
  --badge-text:     #1e5fa8;
  --shadow-card:    rgba(0,0,0,0.04) 0px 4px 18px, rgba(0,0,0,0.027) 0px 2px 7.85px, rgba(0,0,0,0.01) 0px 0.175px 1.04px;
  --shadow-hover:   rgba(0,0,0,0.06) 0px 6px 24px, rgba(0,0,0,0.04) 0px 2px 8px;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-card:    12px;
  --radius-lg:      16px;
  --radius-pill:    9999px;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.container--text { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.t-display {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--fg-primary);
  font-feature-settings: "lnum","locl";
}
.t-h1 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--fg-primary);
}
.t-h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.75px;
  color: var(--fg-primary);
}
.t-h2-lg {
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--fg-primary);
}
.t-h3 {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--fg-primary);
}
.t-body-lg { font-size: 20px; font-weight: 400; line-height: 1.55; color: var(--fg-secondary); }
.t-body     { font-size: 16px; font-weight: 400; line-height: 1.65; color: var(--fg-secondary); }
.t-small    { font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--fg-secondary); }
.t-caption  { font-size: 13px; font-weight: 400; line-height: 1.5;  color: var(--fg-secondary); }

/* ─── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--badge-bg);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--badge-text);
  letter-spacing: 0.125px;
  margin-bottom: 24px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 150ms, opacity 150ms;
  text-decoration: none;
}
.btn--primary   { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); text-decoration: none; color: #fff; }
.btn--secondary { background: rgba(0,0,0,0.05); color: var(--fg-primary); }
.btn--secondary:hover { background: rgba(0,0,0,0.09); text-decoration: none; color: var(--fg-primary); }
.btn--ghost-dark {
  background: rgba(255,255,255,0.10);
  color: var(--fg-dark-1);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.16); text-decoration: none; color: var(--fg-dark-1); }
.btn--lg { padding: 12px 28px; font-size: 16px; }

/* ─── NAVIGATION ─────────────────────────────────────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 45px; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav__item { position: relative; }
.nav__link {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0,0,0,0.80);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background 120ms;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
}
.nav__link:hover { background: rgba(0,0,0,0.04); color: var(--fg-primary); text-decoration: none; }
.nav__link .arrow { font-size: 9px; color: var(--fg-muted); }
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  min-width: 190px;
  z-index: 200;
  list-style: none;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.80);
  border-radius: 4px;
  transition: background 100ms;
  text-decoration: none;
}
.nav__dropdown a:hover { background: rgba(0,0,0,0.04); color: var(--fg-primary); }
.nav__cta {
  background: var(--brand);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms;
  white-space: nowrap;
  text-decoration: none;
}
.nav__cta:hover { background: var(--brand-hover); color: #fff; text-decoration: none; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg-page);
  padding: 96px 32px 80px;
  text-align: center;
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero__headline { margin-bottom: 24px; }
.hero__headline span { color: var(--brand); }
.hero__sub { margin-bottom: 36px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero__trust-item { font-size: 13px; font-weight: 500; color: var(--fg-muted); }

/* ─── PAGE HERO (inner pages) ────────────────────────────────────────────── */
.page-hero {
  background: var(--bg-alt);
  padding: 72px 32px 64px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.page-hero__inner { max-width: 760px; margin: 0 auto; }
.page-hero__image {
  max-width: 760px;
  margin: 40px auto 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 0px solid var(--border-med);
}
.page-hero__image img { width: 100%; display: block; }

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section { padding: 80px 32px; }
.section--white { background: var(--bg-page); }
.section--alt   { background: var(--bg-alt); }
.section--dark  { background: var(--brand-dark); }
.section__header { text-align: center; margin-bottom: 52px; }
.section__header .t-h2-lg { margin-bottom: 16px; }
.section__sub { font-size: 18px; font-weight: 400; color: var(--fg-secondary); line-height: 1.5; }

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card__img {
  aspect-ratio: 487/308;
  background: #0d1018;
  overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-card__body { padding: 20px 22px 22px; }
.product-card__tag {
  font-size: 11px; font-weight: 600; color: var(--brand);
  letter-spacing: 0.3px; text-transform: uppercase; margin-bottom: 6px;
}
.product-card__title {
  font-size: 20px; font-weight: 700; color: var(--fg-primary);
  letter-spacing: -0.25px; line-height: 1.27; margin-bottom: 8px;
}
.product-card__desc {
  font-size: 14px; color: var(--fg-secondary); line-height: 1.55; margin-bottom: 16px;
}
.product-card__cta {
  background: none; border: none; color: var(--brand);
  font-size: 14px; font-weight: 600; padding: 0;
  font-family: inherit; cursor: pointer;
  text-decoration: none;
}
.product-card__cta:hover { text-decoration: underline; }

/* ─── HOW IT WORKS STEPS ─────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: 0 auto; }
.step {
  display: flex; gap: 24px; padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08); align-items: flex-start;
}
.step__num { font-size: 13px; font-weight: 700; color: var(--brand); min-width: 28px; padding-top: 2px; }
.step__title { font-size: 17px; font-weight: 700; color: var(--fg-primary); margin-bottom: 4px; letter-spacing: -0.2px; }
.step__desc  { font-size: 14px; color: var(--fg-secondary); line-height: 1.55; }

/* ─── STATS BAR ──────────────────────────────────────────────────────────── */
.stats-bar { background: var(--brand-dark); padding: 52px 32px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; max-width: 1200px; margin: 0 auto;
}
.stat { text-align: center; }
.stat__num {
  font-size: clamp(28px, 3vw, 44px); font-weight: 700;
  color: #fff; letter-spacing: -1px; line-height: 1.1; margin-bottom: 6px;
}
.stat__label { font-size: 14px; color: var(--fg-muted); }

/* ─── CHANNEL GRID ───────────────────────────────────────────────────────── */
.channel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}
.channel-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px 20px; box-shadow: rgba(0,0,0,0.03) 0px 2px 8px;
  transition: box-shadow 180ms; text-decoration: none; display: block;
}
.channel-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.channel-card__title { font-size: 15px; font-weight: 700; color: var(--fg-primary); margin-bottom: 6px; letter-spacing: -0.2px; }
.channel-card__desc  { font-size: 13px; color: var(--fg-secondary); line-height: 1.5; margin-bottom: 12px; }
.channel-card__link  { font-size: 13px; font-weight: 600; color: var(--brand); }

/* ─── CTA SECTION ────────────────────────────────────────────────────────── */
.cta-section {
  background: #fff; padding: 80px 32px; text-align: center;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.cta-section__inner { max-width: 600px; margin: 0 auto; }
.cta-section .t-h2-lg { margin-bottom: 16px; }
.cta-section__sub { font-size: 18px; color: var(--fg-secondary); margin-bottom: 32px; line-height: 1.5; }
.cta-section__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── DARK CTA BLOCK ─────────────────────────────────────────────────────── */
.dark-cta {
  background: var(--brand-dark); border-radius: var(--radius-lg);
  padding: 44px 48px; text-align: center;
}
.dark-cta__title { font-size: clamp(20px,2.5vw,30px); font-weight: 700; letter-spacing: -0.5px; color: var(--fg-dark-1); margin-bottom: 12px; }
.dark-cta__sub   { font-size: 16px; color: var(--fg-dark-2); line-height: 1.6; margin-bottom: 24px; }
.dark-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── GENERIC CONTENT SECTIONS ───────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col--center { align-items: center; }
.two-col img { border-radius: var(--radius-card); border: 1px solid var(--border-med); width: 100%; }

.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.three-col--center { align-items: center; }
.three-col img { border-radius: var(--radius-card); border: 1px solid var(--border-med); width: 100%; }

.arrow-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.arrow-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg-primary); line-height: 1.5; }
.arrow-list li::before { content: "→"; color: var(--brand); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.info-box {
  background: var(--bg-alt); border: 1px solid var(--border-med);
  border-radius: 10px; padding: 20px 24px;
}
.info-box__label {
  font-size: 13px; font-weight: 700; color: rgba(0,0,0,0.75);
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 10px;
}

.pill-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--badge-bg); color: var(--badge-text);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill);
}

.step-list { display: flex; flex-direction: column; gap: 12px; }
.step-list__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 18px; background: var(--bg-alt); border-radius: var(--radius-md);
}
.step-list__num { font-size: 13px; font-weight: 700; color: var(--brand); min-width: 24px; padding-top: 1px; }
.step-list__text { font-size: 15px; color: var(--fg-primary); line-height: 1.55; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: "→"; color: var(--brand); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.feature-list__label { font-size: 14px; font-weight: 700; color: var(--fg-primary); }
.feature-list__desc  { font-size: 13px; color: var(--fg-secondary); }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: #2d2c2a; padding: 64px 32px 32px; color: var(--fg-dark-1); }
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__top {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__logo { height: 28px; margin-bottom: 14px; }
.footer__brand-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-heading {
  font-size: 12px; font-weight: 600; color: var(--fg-dark-1);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.footer__col a {
  font-size: 13px; color: var(--fg-muted); text-decoration: none; line-height: 1.4;
  transition: color 120ms;
}
.footer__col a:hover { color: var(--fg-dark-1); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer__legal { font-size: 12px; color: #615d59; }

/* ─── CONTACT FORM ───────────────────────────────────────────────────────── */
.contact-wrap {
  background: var(--bg-alt); min-height: 60vh;
  display: flex; align-items: center; justify-content: center; padding: 80px 32px;
}
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 52px; max-width: 520px; width: 100%; box-shadow: var(--shadow-card);
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.75); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit; font-size: 15px; color: var(--fg-primary);
  border: 1px solid #ddd; border-radius: var(--radius-sm);
  padding: 9px 11px; outline: none; width: 100%;
  transition: border-color 150ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }

/* ─── CLIENTS LOGO GRID ──────────────────────────────────────────────────── */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.logo-cell {
  background: var(--bg-alt); border: 1px solid var(--border-med); border-radius: var(--radius-card);
  padding: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1;
}
.logo-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ─── TEAM GRID ──────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 72px; }
.team-member { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-member__photo {
  width: 160px; height: 160px; border-radius: 100%;
  overflow: hidden; margin-bottom: 20px; border: 3px solid rgba(0,0,0,0.08); flex-shrink: 0;
}
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-member__name { font-size: 18px; font-weight: 700; color: var(--fg-primary); margin-bottom: 4px; letter-spacing: -0.2px; }
.team-member__role { font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
.team-member__bio { font-size: 14px; color: var(--fg-secondary); line-height: 1.65; }

/* ─── ABOUT — WHAT DRIVES US ─────────────────────────────────────────────── */
.drives-us {
  background: var(--brand-dark); border-radius: var(--radius-lg);
  padding: 52px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.drives-us__stats { display: flex; flex-direction: column; gap: 16px; }
.drives-us__stat {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px;
}
.drives-us__stat-label { font-size: 13px; color: var(--fg-dark-2); font-weight: 500; }
.drives-us__stat-val   { font-size: 15px; color: var(--fg-dark-1); font-weight: 600; }

/* ─── COUNTRY PILL STRIP ─────────────────────────────────────────────────── */
.country-strip {
  background: var(--brand-dark); border-radius: var(--radius-card);
  padding: 24px 32px; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px;
}
.country-pill {
  background: rgba(255,255,255,0.10); color: var(--fg-dark-1);
  border-radius: var(--radius-pill); padding: 4px 14px; font-size: 13px; font-weight: 500;
}

/* ─── PAGE INTRO SECTION ─────────────────────────────────────────────────── */
.page-content { padding: 64px 32px; }

/* ─── PLATFORM STATS ROW ─────────────────────────────────────────────────── */
.platform-features {
  background: var(--bg-alt); border: 1px solid var(--border-med);
  border-radius: var(--radius-card); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container, .container--narrow, .container--text { padding: 0 20px; }
  .hero { padding: 64px 20px 56px; }
  .section { padding: 56px 20px; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .drives-us { grid-template-columns: 1fr; }
  .dark-cta { padding: 36px 28px; }
  .contact-card { padding: 36px 28px; }
  .nav__inner { padding: 0 20px; }
  .page-hero { padding: 52px 20px 48px; }
  .page-content { padding: 48px 20px; }
}
