/* ============================================
   FACT Website — Standalone Brand Site
   Matches AOB / PortfolioInSite design language
   Brand colour: Purple/Violet (#a855f7)
   ============================================ */

/* ---------- Reset & Variables ---------- */
:root {
  --navy: #0a0f1c;
  --navy-mid: #111827;
  --navy-light: #1a2332;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --purple-light: #c084fc;
  --purple-glow: rgba(168,85,247,0.15);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --white: #ffffff;
  --off-white: #fafbfc;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 60px rgba(168,85,247,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-w: 1200px;
  --max-w-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

/* ---------- Typography Scale ---------- */
.display { font-size: clamp(3rem, 7vw, 5.5rem); }
.h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.h4 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--gray-500); }
.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--purple);
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }

/* ---------- Section Headers ---------- */
.section-head { margin-bottom: 64px; }
.section-head .overline { margin-bottom: 16px; display: block; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 620px; color: var(--gray-500); }
.section-head.text-center p { margin: 0 auto; }

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gray-900);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,85,247,0.3);
}
.btn-purple {
  background: var(--purple);
  color: var(--white);
}
.btn-purple:hover {
  background: var(--purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,85,247,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--gray-900);
  box-shadow: inset 0 0 0 1.5px var(--gray-300);
}
.btn-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--gray-900);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--gray-900);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-arrow span {
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gray-900);
}
.nav-cta {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--purple) !important;
}
.nav-toggle { display: none; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  margin: 5px 0;
  transition: all 0.3s;
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: 100px 24px 40px;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.active { display: flex; }
.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  font-family: var(--font-display);
}

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(160deg, var(--navy) 0%, #1a0a2e 40%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  bottom: -50px; left: -50px;
  border-radius: 50%;
}
.hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(168,85,247,0.15);
  color: var(--purple-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: 1px solid rgba(168,85,247,0.2);
}
.hero-brand {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.hero-brand a {
  color: var(--purple-light);
  text-decoration: underline;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.08;
}
.hero p {
  color: var(--gray-300);
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3);
}
.hero .btn-outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--white);
}
.hero-gsd {
  margin-top: 48px;
  padding: 16px 24px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: var(--radius);
  display: inline-block;
  color: var(--gray-300);
  font-size: 0.85rem;
}
.hero-gsd strong {
  color: var(--purple-light);
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--purple-deep));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--gray-500); line-height: 1.7; font-size: 0.95rem; }
.service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--purple-glow);
  color: var(--purple);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 16px;
  margin-right: 4px;
}

/* ---------- Delivery Cards ---------- */
.delivery-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.delivery-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.delivery-card h3 { margin-bottom: 12px; }
.delivery-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 20px;
}
.badge-live { background: rgba(16,185,129,0.1); color: var(--green); }
.badge-soon { background: rgba(245,158,11,0.1); color: var(--amber); }

/* ---------- Partnership Cards ---------- */
.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: all 0.3s var(--ease);
}
.partner-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.partner-icon {
  width: 64px; height: 64px;
  min-width: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.partner-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.partner-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }

/* ---------- Advisory Section (AI Cognitive Governance) ---------- */
.advisory-section {
  background: linear-gradient(160deg, var(--navy) 0%, #1a0a2e 50%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}
.advisory-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  top: -150px; left: -150px;
  border-radius: 50%;
}
.advisory-section .section-head .overline { color: var(--purple-light); }
.advisory-section .section-head h2 { color: var(--white); }
.advisory-section .section-head p { color: var(--gray-400); }

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}
.advisory-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(168,85,247,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.advisory-pillar:hover {
  background: rgba(168,85,247,0.08);
  border-color: rgba(168,85,247,0.3);
  transform: translateY(-2px);
}
.pillar-num {
  display: inline-block;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(168,85,247,0.2);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 32px;
  margin-bottom: 14px;
}
.advisory-pillar h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 8px; font-weight: 700; }
.advisory-pillar p { color: var(--gray-400); font-size: 0.82rem; line-height: 1.6; }

.advisory-legacy {
  text-align: center;
  margin-top: 48px;
  padding: 20px;
  border-top: 1px solid rgba(168,85,247,0.1);
  position: relative;
  z-index: 2;
}
.advisory-legacy p { color: var(--gray-500); font-size: 0.85rem; }
.advisory-legacy strong { color: var(--gray-400); }

/* ---------- Waitlist / CTA Section ---------- */
.waitlist-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.waitlist-section h2 { color: var(--white); margin-bottom: 16px; }
.waitlist-section p { color: var(--gray-300); margin-bottom: 32px; }

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--gray-500); }
.waitlist-form input[type="email"]:focus { border-color: var(--purple); }

/* ---------- Form Messages ---------- */
.form-success {
  display: none;
  padding: 16px 24px;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 16px;
}
.form-error {
  display: none;
  padding: 16px 24px;
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
  color: var(--gray-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.7; }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s;
}
.footer-socials a:hover { background: var(--purple); color: var(--white); }

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .advisory-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .partner-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .advisory-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
