/* ============================================
   FJ GROUP — INVESTOR-GRADE PORTFOLIO
   Vanilla CSS, no frameworks, no bullshit
   ============================================ */

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --green-500: #22c55e;
  --green-600: #16a34a;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.08) 100%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gray-900) !important;
  color: var(--white) !important;
  border-radius: 100px;
}

.nav-cta:hover {
  background: var(--gray-700) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  gap: 4px;
}

.nav-mobile a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.04) 40%, transparent 70%);
  border-radius: 50%;
}


.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--gray-950);
  margin-bottom: 20px;
}

.hero-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--gray-700);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  color: var(--gray-400);
  transition: var(--transition);
  animation: bounceDown 2s infinite;
}

.hero-scroll a:hover {
  color: var(--gray-600);
  border-color: var(--gray-300);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SECTIONS (SHARED)
   ============================================ */

.section {
  padding: 100px 0;
}

.section:nth-child(even) {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-950);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   FOUNDERS
   ============================================ */

.founders-header {
  position: relative;
}

.founders-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(170deg, #edf0f4 0%, #dde2e8 40%, #d0d6de 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(0, 0, 0, 0.04),
    0 0 80px rgba(255, 255, 255, 0.6);
}

.founders-emblem span {
  font-size: 11rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.04em;
  user-select: none;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 -1px 0 rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.founders-header .section-tag,
.founders-header h2,
.founders-header .section-sub {
  position: relative;
  z-index: 1;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
}

.founder-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.founder-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.founder-avatar {
  margin-bottom: 20px;
}

.founder-avatar-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.founder-avatar-f {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.founder-avatar-j {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.founder-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.founder-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.founder-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
}

.founder-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.founder-skills span {
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
}

.founder-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}

.founder-meta span {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.founder-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.founder-linkedin:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(37,99,235,0.05);
}

@media (max-width: 768px) {
  .founders-grid {
    grid-template-columns: 1fr;
  }

  .founders-emblem {
    width: 260px;
    height: 260px;
  }

  .founders-emblem span {
    font-size: 9rem;
  }
}

@media (max-width: 480px) {
  .founders-emblem {
    width: 200px;
    height: 200px;
  }

  .founders-emblem span {
    font-size: 7rem;
  }
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gradient-subtle);
  color: var(--accent);
}

.product-icon-img {
  background: none;
  overflow: hidden;
}

.product-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(34,197,94,0.1);
  color: var(--green-600);
  border: 1px solid rgba(34,197,94,0.2);
}

.badge-built {
  background: rgba(59,130,246,0.1);
  color: var(--blue-600);
  border: 1px solid rgba(59,130,246,0.2);
}

.badge-dev {
  background: rgba(234,179,8,0.1);
  color: var(--yellow-600);
  border: 1px solid rgba(234,179,8,0.2);
}

.product-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.product-stat {
  text-align: center;
}

.product-stat-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-900);
}

.product-stat-label {
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-tech span {
  padding: 3px 10px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.product-link:hover {
  gap: 10px;
}

.product-link-muted {
  color: var(--gray-400);
  cursor: default;
}

.product-link-muted:hover {
  gap: 6px;
}

@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ============================================
   TRACTION
   ============================================ */

.traction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.traction-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.traction-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.traction-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.traction-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.traction-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.traction-detail {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .traction-grid { grid-template-columns: 1fr; }
}

/* ============================================
   VISION
   ============================================ */

.vision {
  background: var(--gray-950) !important;
}

.vision .section-tag {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--blue-400);
}

.vision .section-header h2 {
  color: var(--white);
}

.vision-content {
  max-width: 900px;
  margin: 0 auto;
}

.vision-lead {
  font-size: 1.25rem;
  color: var(--gray-300);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 48px;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.vision-pillar {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.vision-pillar:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.vision-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(37,99,235,0.15);
  color: var(--blue-400);
  margin-bottom: 16px;
}

.vision-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.vision-pillar p {
  font-size: 0.875rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.vision-bottom {
  text-align: center;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.vision-bottom p {
  font-size: 1rem;
  color: var(--gray-300);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .vision-pillars { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT
   ============================================ */

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 3px solid var(--accent);
  transition: var(--transition);
  margin-bottom: 40px;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-person {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-person:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.contact-person strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.contact-person span {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.contact-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent-dark);
}

@media (max-width: 480px) {
  .contact-founders { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-left p {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition);
}

.footer-right a:hover {
  color: var(--gray-800);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.15s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ============================================
   VERSION UPDATE BANNER
   ============================================ */

.version-update-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  color: white;
  padding: 12px;
  text-align: center;
  z-index: 99999;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.version-update-bar.visible {
  transform: translateY(0);
}
