/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0a0f1a;
  color: #e8ecf0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --navy:    #1b5a7a;
  --navy-dk: #0f3a50;
  --teal:    #2e8ba3;
  --fire:    #ff6b35;
  --fire-dk: #e8521a;
  --ember:   #ff9d5c;
  --white:   #ffffff;
  --light:   #e8ecf0;
  --muted:   #8a9bb0;
  --dark:    #0a0f1a;
  --card-bg: #111827;
  --border:  #1e2d3d;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.7; }
a  { color: var(--teal); text-decoration: none; }

.accent { color: var(--fire); text-shadow: 0 0 40px rgba(255,107,53,0.4); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header h2 { color: var(--white); margin-bottom: 12px; }
.section-header.light h2 { color: var(--white); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary { background: var(--fire); color: var(--white); }
.btn-primary:hover { background: var(--fire-dk); color: var(--white); }
.btn-ghost { background: transparent; color: var(--light); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.9rem; padding: 8px 12px; border-radius: 4px; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--fire) !important; color: var(--white) !important; font-weight: 600 !important; padding: 8px 18px !important; border-radius: 6px; }
.nav-cta:hover { background: var(--fire-dk) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--light); border-radius: 2px; transition: 0.3s; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(27,90,122,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 30% at 10% 80%, rgba(255,107,53,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 30% 30% at 85% 15%, rgba(255,107,53,0.08) 0%, transparent 50%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231b5a7a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; text-align: left; }
.hero-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ember); margin-bottom: 20px; }
.hero-headline { color: var(--white); margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--fire), transparent); }

/* ── Services ──────────────────────────────────────────────────────────────── */
.services { padding: 100px 0; background: var(--dark); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--fire); transform: translateY(-3px); box-shadow: 0 4px 24px rgba(255,107,53,0.12); }
.service-icon {
  width: 44px; height: 44px;
  background: rgba(27, 90, 122, 0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--teal);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { color: var(--white); margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; }

/* ── About ─────────────────────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1520 0%, #0a0f1a 100%);
  border-top: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content .section-tag { display: block; }
.about-content h2 { color: var(--white); margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; }
.about-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.about-visual { display: flex; flex-direction: column; gap: 20px; }
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex; gap: 18px; align-items: flex-start;
}
.about-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(27, 90, 122, 0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.about-card-icon svg { width: 20px; height: 20px; }
.about-card h4 { color: var(--white); margin-bottom: 6px; }
.about-card p { font-size: 0.88rem; }

/* ── Contact / Chat ────────────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--navy-dk);
  border-top: 1px solid rgba(27,90,122,0.4);
}
.contact .section-header { text-align: center; }
.chat-container { max-width: 680px; margin: 0 auto; }
.chat-window {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.chat-messages {
  padding: 24px;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-msg { display: flex; gap: 12px; align-items: flex-start; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.chat-avatar img { width: 22px; height: 22px; object-fit: contain; }
.chat-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--light);
  max-width: 420px;
  line-height: 1.55;
}
.chat-msg.user .chat-bubble {
  background: var(--navy);
  border-color: var(--navy);
  border-radius: 12px 12px 2px 12px;
  color: var(--white);
}
.chat-bubble.typing { color: var(--muted); font-style: italic; }
.chat-bubble p { color: inherit; margin: 0 0 4px; line-height: 1.55; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble br { display: block; content: ''; margin: 2px 0; }
.chat-bubble ol, .chat-bubble ul {
  margin: 6px 0 6px 0;
  padding-left: 20px;
  color: inherit;
}
.chat-bubble li {
  line-height: 1.6;
  margin-bottom: 3px;
  color: inherit;
}
.chat-bubble strong { font-weight: 700; color: var(--white); }
.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
  background: #0d1520;
}
#chatInput {
  flex: 1; border: none; background: transparent;
  padding: 16px 20px;
  color: var(--white); font-size: 0.92rem; font-family: inherit;
  outline: none;
}
#chatInput::placeholder { color: var(--muted); }
#chatSend {
  padding: 0 20px;
  background: none; border: none; cursor: pointer;
  color: var(--teal); transition: color 0.2s;
}
#chatSend:hover { color: var(--white); }
#chatSend svg { width: 20px; height: 20px; }
.contact-alt { text-align: center; margin-top: 24px; font-size: 0.88rem; color: var(--muted); }
.contact-alt a { color: var(--teal); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: #060a10;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 28px; height: 28px; object-fit: contain; }
.footer-brand span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: #3a4a5a; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Market Sectors ─────────────────────────────────────────────────────────── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sector-card {
  background: var(--navy-dk);
  border: 1px solid var(--navy);
  border-radius: 10px;
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.sector-card:hover { border-color: var(--fire); transform: translateY(-3px); box-shadow: 0 4px 24px rgba(255,107,53,0.12); }
.sector-icon {
  width: 38px; height: 38px;
  background: rgba(27, 90, 122, 0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--teal);
}
.sector-icon svg { width: 18px; height: 18px; }
.sector-card h4 { color: var(--white); margin-bottom: 8px; font-size: 0.95rem; }
.sector-card p { font-size: 0.85rem; }
@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sectors-grid { grid-template-columns: 1fr; } }

/* ── FORGE word — fire color ────────────────────────────────────────────────── */
.nav-forge { color: var(--fire); }
.footer-forge { color: var(--fire); }

/* ── Forge sparks canvas ────────────────────────────────────────────────────── */
#forge-canvas { opacity: 0.9; }
.hero-bg { display: none; }  /* hide original CSS bg — canvas replaces it */
.hero-inner { position: relative; z-index: 2; }
.hero-scroll { z-index: 2; }

/* ── Forge atmosphere bleeds through sections ───── */
.services  { background: rgba(10,15,26,0.88); }
.about     { background: rgba(8,12,20,0.90); }
.contact   { background: rgba(15,58,80,0.85); }
body       { background: #080c14; }

/* ── Video Background ───────────────────────────────────────────────────────── */
#forge-video-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
#forge-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.35) saturate(1.2);
}
#forge-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,10,16,0.3) 0%,
    rgba(6,10,16,0.15) 40%,
    rgba(6,10,16,0.5) 70%,
    rgba(6,10,16,0.88) 100%
  );
}
/* Remove canvas bg since we now have real video */
#forge-canvas { display: none; }
body { background: #060a10; }

/* ── About — Redesigned ─────────────────────────────────────────────────────── */
.about-intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.about-intro h2 { color: var(--white); margin-bottom: 16px; }
.about-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.75; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--fire); transform: translateY(-3px); }
.pillar-icon {
  width: 42px; height: 42px;
  background: rgba(255,107,53,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--fire);
}
.pillar-icon svg { width: 20px; height: 20px; }
.pillar h4 { color: var(--white); margin-bottom: 8px; font-size: 0.95rem; }
.pillar p { font-size: 0.87rem; line-height: 1.6; }

@media (max-width: 900px) { .about-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .about-pillars { grid-template-columns: 1fr; } }
