/* ============================================
   FNX AI — Brand Styles
   Dark mode default | #130060 primary | #1E42C2 accent
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #130060;
  --accent: #1E42C2;
  --accent-light: #3B6FE0;
  --bg: #0A0A1A;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --text: #E8E8F0;
  --text-muted: #9999B0;
  --text-heading: #FFFFFF;
  --border: rgba(255,255,255,0.06);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-subtle: linear-gradient(135deg, rgba(19,0,96,0.15), rgba(30,66,194,0.15));
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.2; }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 640px; }

/* --- Sections --- */
section { padding: 100px 0; }

section.hero {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,66,194,0.2) 0%, transparent 70%);
  pointer-events: none;
}

section.hero .container { position: relative; z-index: 1; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(30,66,194,0.3);
  border-radius: 100px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .lead { margin: 16px auto 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(30,66,194,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(30,66,194,0.5);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
}

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(30,66,194,0.3);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gradient-subtle);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 80px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; color: var(--text-muted);
}
.trust-item svg { width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }

/* --- Stat Cards --- */
.stat-card {
  text-align: center;
  padding: 32px 24px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

/* --- Process Timeline --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 16px;
}
@media (max-width: 700px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; appearance: none; }

/* --- Nav --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,26,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { height: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10,10,26,0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* --- Footer --- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner h2 { position: relative; z-index: 1; }
.cta-banner p { position: relative; z-index: 1; color: rgba(255,255,255,0.8); }
.cta-banner .btn { position: relative; z-index: 1; margin-top: 24px; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

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

/* --- Neural Grid Background --- */
.neural-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
}
.neural-bg canvas { width: 100%; height: 100%; }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,66,194,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Two column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Values grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* --- Outcome cards --- */
.outcome-card {
  padding: 32px;
  border-left: 3px solid var(--accent);
}
.outcome-card h4 { margin-bottom: 8px; }
.outcome-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* --- Consultation box --- */
.consult-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 48px;
}
.consult-box ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px;
}
.consult-box li {
  padding: 8px 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.consult-box li::before {
  content: '✓';
  color: var(--accent-light);
  font-weight: 700;
}
