/* ============================================================
   Technology Frontier International — Global Stylesheet
   Clean, modern, executive. Brand blues drawn from the TFI logo.
   ============================================================ */

:root {
  --navy: #0a2342;          /* deep logo navy — headings, footer */
  --navy-2: #10315e;
  --blue: #1656c8;          /* primary brand blue */
  --blue-dark: #0f3d8f;
  --blue-light: #e8f0fc;
  --cyan: #27a3e8;          /* logo glow accent */
  --ink: #212b3a;           /* body text */
  --muted: #5b6b80;         /* secondary text */
  --line: #e3e8f0;          /* borders */
  --bg-soft: #f5f7fb;       /* subtle grey section background */
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(10, 35, 66, .07);
  --shadow-md: 0 10px 30px rgba(10, 35, 66, .10);
  --shadow-lg: 0 20px 50px rgba(10, 35, 66, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .55em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #123a6e 100%); color: #d7e2f2; }
.section.navy h2, .section.navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section.navy .eyebrow { color: var(--cyan); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section.navy .section-head p { color: #b8c7dd; }

.lead { font-size: 1.13rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(22, 86, 200, .28);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: var(--blue-light); color: var(--blue-dark); }
.btn-white {
  background: #fff;
  color: var(--navy);
}
.btn-white:hover { background: var(--blue-light); color: var(--navy); transform: translateY(-1px); }
.btn-ghost {
  border-color: rgba(255,255,255,.55);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand-text small {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(39,163,232,.10), transparent 60%),
    radial-gradient(700px 380px at -5% 110%, rgba(22,86,200,.08), transparent 60%),
    var(--white);
  padding: 92px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}
.hero .badge-row { margin-bottom: 22px; }
.hero p.lead { max-width: 560px; }
.hero-logo {
  display: flex;
  justify-content: center;
}
.hero-logo img {
  width: min(400px, 100%);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(39,163,232,.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%, #123a6e 100%);
  color: #c9d7ea;
  padding: 84px 0 76px;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 720px; font-size: 1.12rem; color: #b8c7dd; }
.page-hero .eyebrow { color: var(--cyan); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid #d3e1f8;
}
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero .badge, .section.navy .badge {
  background: rgba(255,255,255,.10);
  color: #dce8f8;
  border-color: rgba(255,255,255,.18);
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card ul { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover h3 { color: var(--blue); }

.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), #f2f7ff);
  border: 1px solid #d9e5f8;
  margin-bottom: 18px;
}
.icon-chip svg { width: 26px; height: 26px; stroke: var(--blue); }

.outcome {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-size: .92rem;
  color: var(--navy);
}
.outcome strong { color: var(--blue-dark); }

/* numbered value cards */
.num {
  font-size: .85rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* ---------- Stats strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 34px 0 0;
}
.stat h3 { font-size: 1.9rem; margin-bottom: 4px; color: var(--blue); }
.stat p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Stage timeline ---------- */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.stage .stage-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: .95rem;
}
.stage h3 { font-size: 1.02rem; }
.stage p { font-size: .88rem; color: var(--muted); margin-bottom: 0; }
.stage small {
  display: block;
  margin-top: 10px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: .8rem;
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231656c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section.navy .checklist li::before {
  background-color: rgba(255,255,255,.14);
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(39,163,232,.25), transparent 60%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 22px;
  padding: 64px 56px;
  color: #eaf1fc;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 640px; margin: 0 auto 8px; color: #d5e3f8; font-size: 1.07rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-field label .req { color: #d33; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: .95rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,86,200,.12);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  background: #e8f7ee;
  border: 1px solid #bfe6cd;
  color: #1c6b3c;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 500;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Tables (legal) ---------- */
.legal-content h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal-content h3 { font-size: 1.12rem; margin-top: 1.6em; color: var(--navy-2); }
.legal-content { max-width: 820px; }
.legal-content ul { color: var(--ink); }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9bad2;
  padding: 70px 0 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.footer-brand strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 6px; }
.footer-brand .tagline { color: var(--cyan); font-weight: 600; font-size: .88rem; }
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #a9bad2; }
.site-footer a:hover { color: #fff; }
.footer-loc { margin-bottom: 14px; line-height: 1.5; }
.footer-loc strong { color: #dfe8f4; display: block; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom ul li { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 660px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  z-index: 200;
  display: none;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .87rem; color: var(--muted); flex: 1 1 320px; }
.cookie-banner .btn { padding: 9px 20px; font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(300px, 80%); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .form-card { padding: 26px 20px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
