/* =============================================
   MindRoute Studios — main.css
   ============================================= */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --bg:        #080c14;
  --bg2:       #0d1421;
  --bg3:       #111827;
  --surface:   rgba(255,255,255,0.04);
  --surface2:  rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.15);
  --accent:    #00d4ff;
  --accent2:   #7c3aed;
  --accent3:   #f59e0b;
  --text:      #f0f4ff;
  --muted:     rgba(240,244,255,0.5);
  --muted2:    rgba(240,244,255,0.25);
  --grid:      rgba(0,212,255,0.04);
  --glow:      rgba(0,212,255,0.15);
  --nav-h:     64px;
  --max-w:     1100px;
  --radius:    12px;
  --radius-lg: 16px;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
hr { border: none; }

/* ---- BACKGROUND EFFECTS ---- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px;
}
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: fixed; border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: 0.12;
}
.orb1 { width: 600px; height: 600px; background: var(--accent);  top: -200px; right: -100px; }
.orb2 { width: 500px; height: 500px; background: var(--accent2); bottom: 20%; left: -150px; }
.orb3 { width: 400px; height: 400px; background: var(--accent3); bottom: -100px; right: 20%; opacity: 0.08; }

/* ---- ANIMATIONS ---- */
@keyframes pulse    { 0%,100%{ opacity:1; transform:scale(1) }  50%{ opacity:.5; transform:scale(.8) } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { 0%,100%{ opacity:1 }  50%{ opacity:.5 } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:none } }

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(8,12,20,0.85);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--accent); }
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: .875rem; font-weight: 500;
  transition: color .2s; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--border2); border-radius: 6px;
  padding: 6px 16px; font-size: .8rem !important;
  transition: all .2s !important;
}
.nav-cta:hover { background: var(--surface2) !important; color: var(--text) !important; }

/* hamburger — mobile only */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ---- SECTIONS ---- */
section { position: relative; z-index: 1; padding: 100px 5%; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.h-divider { height: 1px; background: var(--border); position: relative; z-index: 1; }

.section-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; color: var(--accent); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 1.5rem;
}
.section-sub {
  color: var(--muted); font-size: 1rem; max-width: 540px; line-height: 1.7;
}
.accent { color: var(--accent); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; padding: 120px 5% 80px;
  display: flex; align-items: center;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,.08); border: 1px solid rgba(0,212,255,.2);
  border-radius: 100px; padding: 6px 16px;
  font-size: .75rem; font-family: 'JetBrains Mono', monospace;
  color: var(--accent); margin-bottom: 2rem; letter-spacing: .05em;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 800;
  line-height: 1.0; letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 580px; line-height: 1.7; margin-bottom: 3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #000;
  border: none; border-radius: 8px; padding: 14px 28px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: all .2s; letter-spacing: .01em;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,212,255,.4); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 8px; padding: 14px 28px;
  font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: 'Space Grotesk', sans-serif;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 5rem;
  padding-top: 3rem; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; letter-spacing: .05em; }

/* ---- ABOUT ---- */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-top: 4rem;
}
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.tag {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 14px;
  font-size: .8rem; color: var(--muted); font-family: 'JetBrains Mono', monospace;
}
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.profile-initials {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: #fff; margin-bottom: 1.5rem;
}
.about-name { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.about-role { color: var(--accent); font-size: .85rem; margin-bottom: 1.5rem; }
.about-detail-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: .75rem; font-size: .875rem; }
.about-detail-icon { color: var(--accent); font-size: .8rem; margin-top: 2px; flex-shrink: 0; }
.about-detail-text { color: var(--muted); }
.card-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.mono-block { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--muted); line-height: 1.8; }
.mono-key { color: var(--accent); }

/* ---- VISION ---- */
.vision-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 4rem; }
.vision-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: all .3s;
}
.vision-card:hover { border-color: var(--border2); background: var(--surface2); transform: translateY(-4px); }
.vision-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.25rem;
}
.vision-icon.c1 { background: rgba(0,212,255,.1); }
.vision-icon.c2 { background: rgba(124,58,237,.1); }
.vision-icon.c3 { background: rgba(245,158,11,.1); }
.vision-card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; }
.vision-card p  { color: var(--muted); font-size: .875rem; line-height: 1.7; }
.pipeline-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.pipeline-label { font-size: .75rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.pipeline-label.accent { color: var(--accent); }
.pipeline-phases { display: flex; flex: 1; min-width: 200px; }
.phase { flex: 1; height: 6px; position: relative; }
.phase::after { content: ''; position: absolute; inset: 0; background: var(--border); }
.phase.done::after   { background: var(--accent); }
.phase.active::after { background: linear-gradient(90deg, var(--accent), var(--accent2)); animation: shimmer 2s infinite; }
.phase:first-child::after { border-radius: 3px 0 0 3px; }
.phase:last-child::after  { border-radius: 0 3px 3px 0; }

/* ---- PRODUCTS ---- */
.products-section { background: var(--bg2); }
.products-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.products-header-sub { color: var(--muted); font-size: .875rem; max-width: 300px; text-align: right; }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--border2); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.product-banner {
  height: 180px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-banner.astro        { background: linear-gradient(135deg, #0a0a1a, #1a0a2e, #0d1a3a); }
.product-banner.agent        { background: linear-gradient(135deg, #0a1a0a, #0d2e1a, #0a1a2e); }
.product-banner.digital-twin { background: linear-gradient(135deg, #1a0a0a, #2e1a0a, #1a1a0a); }
.banner-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.banner-icon { font-size: 3.5rem; opacity: .9; position: relative; z-index: 1; }
.banner-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: spin 20s linear infinite;
}
.ring1 { width:120px; height:120px; border-color: rgba(150,100,255,.3); }
.ring2 { width:80px;  height:80px;  border-color: rgba(0,212,255,.3);   animation-duration: 12s; animation-direction: reverse; }
.ring3 { width:140px; height:140px; border-color: rgba(0,212,100,.2);   }
.ring4 { width:90px;  height:90px;  border-color: rgba(0,212,100,.3);   animation-duration: 15s; animation-direction: reverse; }
.ring5 { width:130px; height:130px; border-color: rgba(245,158,11,.2);  }
.ring6 { width:85px;  height:85px;  border-color: rgba(245,158,11,.3);  animation-duration: 18s; animation-direction: reverse; }

.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-family: 'JetBrains Mono', monospace;
  border-radius: 100px; padding: 3px 10px; margin-bottom: 1rem; letter-spacing: .05em;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-live  { background: rgba(0,212,100,.1); color: #00d464; border: 1px solid rgba(0,212,100,.2); }
.status-build { background: rgba(245,158,11,.1); color: var(--accent3); border: 1px solid rgba(245,158,11,.2); }
.status-pipe  { background: rgba(255,255,255,.05); color: var(--muted); border: 1px solid var(--border); }
.product-title   { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.product-tagline { color: var(--muted); font-size: .82rem; line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.product-tech    { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tech-pill {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 9px;
  font-size: .72rem; color: var(--muted2); font-family: 'JetBrains Mono', monospace;
}
.product-link { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: .82rem; font-weight: 500; margin-top: auto; }
.product-card:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform .2s; }

/* ---- CONTACT ---- */
.contact-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 4rem; text-align: center;
  position: relative; overflow: hidden; margin-top: 4rem;
}
.contact-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,.06), transparent 70%);
}
.contact-box h2 { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.contact-box p  { color: var(--muted); max-width: 480px; margin: 0 auto 2.5rem; position: relative; }
.contact-links  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px 20px;
  color: var(--muted); font-size: .875rem; transition: all .2s;
}
.contact-link:hover { color: var(--text); border-color: var(--accent); }

/* ---- FOOTER ---- */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .8rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ---- SCROLL ANIMATION ---- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .products-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid     { grid-template-columns: 1fr; gap: 3rem; }
  .vision-cards   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 70px 5%; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .contact-box { padding: 2.5rem 1.5rem; }
  .contact-box h2 { font-size: 1.75rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(8,12,20,.98); border-bottom: 1px solid var(--border); padding: 1.5rem 5%; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .products-header { flex-direction: column; }
  .products-header-sub { text-align: left; }
}
