/* ============================================
   TechFire AI — Nico Landing Page
   Style: Fin.ai-inspired minimal, warm, precise
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --black: #000000;
  --white: #ffffff;
  --warm-bg: #eae6dc;
  --warm-bg-alt: #f5f2ec;
  --accent: #ff5600;
  --accent-soft: #ff7a33;
  --accent-accessible: #c44000;
  --gray-100: #f7f7f5;
  --gray-200: #e8e8e4;
  --gray-400: #717171;
  --gray-600: #555;
  --gray-800: #222;

  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-width: 1200px;
  --section-pad: 160px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 48px;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logo-tech { color: var(--black); }
.logo-fire { color: var(--accent-accessible); font-weight: 600; }
.logo-ai { color: var(--gray-600); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}


/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 48px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--black);
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-line {
  display: block;
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 40px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 400;
}

/* ---- SECTIONS COMMON ---- */
.section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 64px;
}

/* ---- PROBLEMS ---- */
.problems {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
  padding: 40px 40px 48px;
}

.problem-number {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.problem-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 12px;
}

.problem-card > p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.problem-specs {
  display: flex;
  flex-direction: column;
}

.spec-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-800);
}

.spec-num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  min-width: 24px;
  flex-shrink: 0;
}

/* ---- CAPABILITIES ---- */
.capabilities {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.capability-featured.capability-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 48px 56px;
  margin-bottom: 24px;
}

.capability-featured h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 24px;
}

.capability-featured.capability-card > p {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 700px;
}

.capability-featured .spec-item {
  border-top-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.capability-featured .spec-num {
  color: var(--accent-soft);
  font-weight: 600;
}

.capability-featured .cap-number {
  color: rgba(255, 255, 255, 0.4);
}

.cap-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cap-number {
  font-size: 14px;
  color: var(--gray-400);
  letter-spacing: 2px;
}

.cap-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(255, 86, 0, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.capability-featured .cap-badge {
  background: rgba(255, 86, 0, 0.2);
}

/* Terminal mock */
.cap-visual {
  margin-bottom: 32px;
}

.terminal-mock {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-line {
  color: rgba(255, 255, 255, 0.6);
}

.t-dim { color: rgba(255, 255, 255, 0.3); }
.t-accent { color: var(--accent); }
.t-green { color: #28c840; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.capability-card {
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
  padding: 40px 40px 48px;
}

.capability-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 12px;
}

.capability-card > p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}


/* ---- SOCIAL PROOF BAR ---- */
.social-proof {
  padding: 48px 48px;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.social-proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.proof-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.integration-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.integration-logo {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: -0.3px;
}

.integration-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}

/* ---- PROBLEMS ENHANCEMENTS ---- */
.problems-intro {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 700px;
  margin-top: -40px;
  margin-bottom: 48px;
}

.data-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  padding: 40px;
  background: var(--black);
  border-radius: var(--radius-lg);
}

.data-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.data-number {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.data-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.data-source {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.problem-card-wide {
  grid-column: 1 / -1;
}

/* ---- PERSONAS ---- */
.personas {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.persona-card {
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.persona-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.persona-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  color: var(--black);
  margin-bottom: 12px;
  line-height: 1.3;
}

.persona-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.persona-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.persona-features span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255, 86, 0, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---- DIFFERENTIATOR ---- */
.differentiator {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.diff-intro {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 700px;
  margin-top: -40px;
  margin-bottom: 48px;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.diff-card {
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.diff-card-featured {
  background: var(--black);
  color: var(--white);
  grid-column: 1 / -1;
}

.diff-card-featured p {
  color: rgba(255, 255, 255, 0.8);
}

.diff-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
}

.diff-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- COMPARISON TABLE ---- */
.comparison-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.comp-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--black);
  color: var(--white);
}

.comp-header .comp-cell {
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.comp-header .comp-nico {
  color: var(--accent);
}

.comp-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-top: 1px solid var(--gray-200);
}

.comp-row:nth-child(even) {
  background: var(--gray-100);
}

.comp-cell {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 400;
}

.comp-feature {
  font-weight: 500;
  color: var(--black);
}

.comp-nico {
  color: var(--black);
}

.comp-others {
  color: var(--gray-400);
}

/* ---- ARCHITECTURE ---- */
.architecture {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.arch-number {
  font-family: var(--font-sans);
  font-size: 120px;
  font-weight: 200;
  color: var(--gray-200);
  position: absolute;
  top: 140px;
  right: 48px;
  line-height: 1;
  user-select: none;
}

.arch-description {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 64px;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.arch-item {
  background: var(--warm-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.arch-item-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.arch-item-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---- ZURICH ---- */
.zurich {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.zurich-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 300;
  font-style: italic;
}

.zurich-number {
  font-family: var(--font-sans);
  font-size: 120px;
  font-weight: 200;
  color: var(--gray-200);
  position: absolute;
  top: 140px;
  right: 48px;
  line-height: 1;
  user-select: none;
}

.zurich-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 700px;
}

/* ---- FINAL CTA ---- */
.final-cta {
  padding: var(--section-pad) 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 48px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 64px 48px 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.5fr;
  gap: 48px;
}

.footer-col .footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--black);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand .logo-tech,
.footer-brand .logo-fire,
.footer-brand .logo-ai {
  font-size: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray-400);
}

/* ---- WORD REVEAL ---- */
.word-reveal {
  display: inline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- HERO SCHEMATIC ---- */
.hero {
  position: relative;
}

.hero-schematic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.schematic-svg {
  width: 100%;
  height: 100%;
}

.hero-label,
.hero-title,
.hero-sub,
.hero-ctas,
.hero-stats {
  position: relative;
  z-index: 1;
}

/* ---- SVG ICON STYLES ---- */
.arch-icon svg,
.persona-icon svg,
.diff-icon svg {
  color: var(--accent);
}

.diff-card-featured .diff-icon svg {
  color: var(--accent-soft);
}

.persona-icon {
  margin-bottom: 12px;
  line-height: 1;
}

.arch-icon {
  margin-bottom: 16px;
  line-height: 1;
}

.diff-icon {
  margin-bottom: 16px;
  line-height: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-banner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 100px;
  }

  .nav {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .hero-schematic {
    display: none;
  }

  .hero-title {
    letter-spacing: -1.5px;
  }

  .hero-stats {
    gap: 32px;
  }

  .stat-number {
    font-size: 28px;
  }

  .social-proof {
    padding: 32px 24px;
  }

  .integration-strip {
    gap: 16px;
  }

  .problems,
  .capabilities,
  .architecture,
  .personas,
  .differentiator,
  .zurich,
  .final-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .problems-grid,
  .capabilities-grid,
  .persona-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .data-banner {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .data-number {
    font-size: 36px;
  }

  .arch-grid {
    grid-template-columns: 1fr;
  }

  .arch-number,
  .zurich-number {
    display: none;
  }

  .comp-header,
  .comp-row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .comp-cell {
    padding: 10px 12px;
    font-size: 12px;
  }

  .footer {
    padding: 48px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- GSAP ANIMATION PREP ---- */
.hero-label,
.hero-line,
.hero-sub,
.hero-ctas,
.stat,
.section-label,
.section-title,
.problem-card,
.capability-card,
.capability-featured,
.arch-item,
.arch-description,
.zurich-title,
.zurich-desc,
.final-cta-title,
.social-proof-inner,
.data-banner,
.data-stat,
.persona-card,
.diff-card,
.comparison-table {
  will-change: transform;
}
