/* ============================================
   Future Perfect Systems LLC — Global Styles
   Modern / Startup Aesthetic
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --color-bg:        #0b0f19;
  --color-surface:   #121828;
  --color-surface-2: #1a2235;
  --color-border:    #243049;
  --color-text:      #e2e8f0;
  --color-text-muted:#94a3b8;
  --color-accent:    #6366f1;   /* indigo-500 */
  --color-accent-lt: #818cf8;   /* indigo-400 */
  --color-accent-dk: #4f46e5;   /* indigo-600 */
  --color-white:     #ffffff;
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;
  --max-w:           1140px;
  --radius:          12px;
  --transition:      0.25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { max-width: 100%; display: block; }
a   { color: var(--color-accent-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }

/* ---------- Utility ---------- */
.container { width: 90%; max-width: var(--max-w); margin-inline: auto; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.accent    { color: var(--color-accent-lt); }
.text-muted{ color: var(--color-text-muted); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--color-white); }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p  { max-width: 65ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-weight: 600; font-size: .95rem;
  border-radius: 9999px;
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 0 24px rgba(99,102,241,.35);
}
.btn-primary:hover {
  background: var(--color-accent-dk);
  box-shadow: 0 0 32px rgba(99,102,241,.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent-lt);
  border: 1.5px solid var(--color-accent);
}
.btn-outline:hover {
  background: rgba(99,102,241,.1);
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(11,15,25,.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800; font-size: 1.2rem; color: var(--color-white);
  display: flex; align-items: center; gap: .5rem;
}
.logo img { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--color-text-muted); font-weight: 500; font-size: .95rem;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--color-text); font-size: 1.5rem; padding: .25rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; width: 100%;
    flex-direction: column; gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li a { display: block; padding: 1rem 5%; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,.15), transparent),
    radial-gradient(ellipse 40% 55% at 80% 100%, rgba(99,102,241,.08), transparent);
  pointer-events: none;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p  { color: var(--color-text-muted); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-graphic {
  width: 100%; max-width: 420px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg at 50% 50%, var(--color-accent) 0%, transparent 60%),
    var(--color-surface);
  opacity: .6;
  filter: blur(60px);
  animation: pulse 6s ease-in-out infinite alternate;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.08); opacity: .7; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-graphic { max-width: 260px; }
}

/* ---------- Sections ---------- */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { margin-inline: auto; margin-top: .75rem; color: var(--color-text-muted); }

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(99,102,241,.12);
  color: var(--color-accent-lt);
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p  { color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Stats Row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--color-accent-lt); }
.stat-label { color: var(--color-text-muted); font-size: .9rem; margin-top: .25rem; }

/* ---------- About Page : Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: var(--color-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -2rem; top: .6rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}
.timeline-item h3 { margin-bottom: .35rem; }
.timeline-item .year { font-family: var(--font-mono); color: var(--color-accent-lt); font-size: .85rem; }
.timeline-item p { color: var(--color-text-muted); margin-top: .35rem; }

/* ---------- Values Grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 2rem;
}
.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.value-card h3 { margin-bottom: .5rem; }
.value-card p  { color: var(--color-text-muted); font-size: .95rem; }

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-member {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-surface-2);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--color-accent-lt);
}
.team-member h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.team-member .role { color: var(--color-accent-lt); font-size: .85rem; margin-bottom: .75rem; }
.team-member p { color: var(--color-text-muted); font-size: .9rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p  { margin-inline: auto; color: var(--color-text-muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  color: var(--color-text-muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-white); }
