/* DIP-View V2 — "Precision Dark" production stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #3d2f5c;
  --deep: #120e1e;
  --deep-alt: #191430;
  --coral: #ec5161;
  --purple: #5a4884;
  --light-blue: #f6dbe1;
  --white: #ffffff;
  --ink-soft: #b9b3cc;
  --border: rgba(255,255,255,.10);
  --max-width: 1220px;
  --radius: 14px;
  --grad: linear-gradient(100deg, #ec5161 0%, #b1548a 45%, #5a4884 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: var(--deep);
  color: #e9e6f2;
  line-height: 1.6;
}
h1, h2, h3, .brand-font { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18,14,30,.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--white); }
.logo img { height: 58px; width: auto; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); border-radius: 2px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .86rem;
  background: var(--grad); color: var(--white); white-space: nowrap;
}

/* Eyebrow / section header */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--coral); display:inline-block; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header h2 { font-size: 2.1rem; color: var(--white); margin: 0 0 14px; line-height: 1.2; }
.section-header p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
section { padding: 110px 0; position: relative; }
.section-alt { background: var(--deep-alt); }

/* Hero */
.hero { padding-top: 90px; padding-bottom: 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 700px;
  background: radial-gradient(closest-side, rgba(236,81,97,.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { color: var(--coral); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px; display:block; }
.hero h1 {
  font-size: 3rem; line-height: 1.14; margin: 0 0 22px; color: var(--white); font-weight: 700;
}
.hero h1 .grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; margin-bottom: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 12px 30px rgba(236,81,97,.30); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--border); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media-frame { border-radius: 22px; padding: 2px; background: var(--grad); }
.hero-media-inner { background: var(--deep-alt); border-radius: 20px; padding: 20px; }
.hero-media img { border-radius: 12px; }

/* Event banner */
.event-strip {
  margin-top: 50px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.event-strip-text { font-size: .95rem; color: var(--ink-soft); }
.event-strip-text strong { color: var(--white); display:block; margin-bottom:2px; }
.event-strip .badge {
  background: var(--grad); color: var(--white); font-weight: 700; font-size: .82rem;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 50px; }
.stat-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; background: rgba(255,255,255,.03); }
.stat-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; font-weight: 600; color: var(--white); margin-top: 6px; font-size: .92rem; }
.stat-caption { display: block; color: var(--ink-soft); font-size: .8rem; margin-top: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.about-media img { border-radius: var(--radius); border: 1px solid var(--border); }

.brand-video-block {
  margin-top: 70px; padding-top: 60px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr .8fr; gap: 50px; align-items: center;
}
.brand-video-block h3 { color: var(--white); font-size: 1.5rem; margin: 6px 0 14px; }
.brand-video-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #000; max-width: 320px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.brand-video-frame video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }

.vision300-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: stretch; }
.vision300-text { display: flex; flex-direction: column; }
.vision300-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; margin: 16px 0 0; }
.vision300-inset { color: var(--ink-soft); max-width: 600px; margin: 40px 0 0; }
.vision300-subhead { color: var(--white); font-size: 1.15rem; margin: 44px 0 18px; }
.vision300-cta { margin-top: 30px; }
.vision300-media { display: flex; justify-content: center; align-items: flex-start; }
.vision300-media img { max-height: 640px; width: auto; margin: 0 auto; filter: drop-shadow(0 25px 40px rgba(0,0,0,.45)); }
.value-row { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.value-pill { border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-size: .85rem; color: var(--ink-soft); }

/* Team */
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.team-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 26px; text-align: center; background: rgba(255,255,255,.03); }
.team-card img { width: 176px; height: 176px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; border: 3px solid; border-image: var(--grad) 1; }
.team-card h3 { color: var(--white); margin: 0 0 4px; font-size: 1.05rem; }
.team-role { color: var(--coral); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.team-card p { color: var(--ink-soft); font-size: .88rem; margin-top: 14px; }

/* Engineered block */
.engineered-block { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 50px; }
.engineered-icons { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 26px; }
.eng-pill { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-size: .85rem; color: var(--white); }
.eng-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex-shrink:0; }
.engineered-block p { color: var(--ink-soft); max-width: 760px; }

/* Domains */
.domain-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.domain-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.03); }
.domain-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; }
.domain-card img { width: 100%; height: 100%; object-fit: cover; }
.domain-card-body { padding: 18px 18px 22px; }
.domain-card h3 { color: var(--white); font-size: .98rem; margin: 0 0 10px; }
.domain-card li { list-style: none; color: var(--ink-soft); font-size: .8rem; padding: 3px 0 3px 14px; position: relative; }
.domain-card li::before { content:""; position:absolute; left:0; top:10px; width:4px; height:4px; border-radius:50%; background: var(--coral); }

/* Applications */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.pill { border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; font-size: .85rem; color: var(--white); background: rgba(255,255,255,.03); }
.applications-banner { border-radius: var(--radius); padding: 34px 40px; background: var(--grad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--white); }
.applications-banner strong { display:block; font-size: 1.05rem; }
.applications-banner span { font-size: .9rem; opacity: .9; }

/* Applications hero */
.apps-hero { margin-bottom: 56px; }
.apps-hero-sub { color: var(--white); font-weight: 700; font-size: 1.15rem; margin: 16px 0 0; line-height: 1.4; opacity: .92; max-width: 700px; }
.apps-hero-desc { color: var(--ink-soft); font-size: 1rem; margin: 18px 0 0; max-width: 700px; }

/* Application cards */
.apps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-bottom: 40px; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.03); display: flex; flex-direction: column; height: 100%; }
.app-card-media { aspect-ratio: 21/9; overflow: hidden; }
.app-card-media img { width: 100%; height: 100%; object-fit: cover; }
.app-card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.app-icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px;
}
.app-card-body h3 { color: var(--white); font-size: 1.05rem; margin: 0 0 8px; }
.app-card-body > p { color: var(--ink-soft); font-size: .9rem; margin: 0 0 14px; }
.app-tags { color: var(--light-blue); font-size: .78rem; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.app-outcome {
  display: inline-block; background: rgba(236,81,97,.14); color: var(--coral);
  font-size: .78rem; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  align-self: flex-start; margin-top: auto;
}

/* Applications CTA banner */
.apps-cta-banner { gap: 24px; }
.apps-cta-icon {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.apps-cta-text { flex: 1; min-width: 240px; }
.apps-cta-btn {
  background: var(--white); color: var(--navy); padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.apps-cta-btn:hover { opacity: .92; }

/* Partners */
.legend-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 30px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; }
.map-wrap { max-width: 620px; margin: 0 auto 40px; }
.map-inner { position: relative; }
.map-inner img { width: 100%; display: block; filter: saturate(1.05); }

.map-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  border: 3px solid var(--deep-alt);
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 5px rgba(236,81,97,.22);
  font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.map-pin-num { pointer-events: none; }
.map-pin-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy); color: var(--white);
  font-size: .75rem; font-weight: 600; line-height: 1.4;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
}
.map-pin-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--navy);
}
.map-pin:hover .map-pin-tip, .map-pin:focus-visible .map-pin-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.partner-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.partner-tile {
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 20px;
  height: 96px; display:flex; align-items:center; justify-content:center;
  background: #f5f4f8; box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.partner-tile:hover { border-color: rgba(255,255,255,.25); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(0,0,0,.28); }
.partner-tile img { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }


/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; background: rgba(255,255,255,.03); }
.contact-item { margin-bottom: 22px; }
.contact-item strong { display:block; color: var(--coral); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-photo { margin-top: 20px; border-radius: 10px; overflow: hidden; }
.contact-photo img { height: 180px; width: 100%; object-fit: cover; }
.form-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display:block; font-size: .85rem; margin-bottom: 6px; color: var(--ink-soft); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--white); font-family: inherit; font-size: .95rem;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.news-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.03); }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-card img.news-img-contain { object-fit: contain; background: #0c0916; }
.news-card img.news-img-full { height: 310px; object-fit: contain; background: #0c0916; }

.news-carousel { position: relative; height: 180px; overflow: hidden; background: #0c0916; }
.news-carousel-track { display: flex; width: 400%; height: 100%; transition: transform .35s ease; }
.news-carousel-track img { width: 25%; height: 180px; object-fit: cover; flex-shrink: 0; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(18,14,30,.55); color: var(--white); font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.carousel-arrow:hover { background: rgba(18,14,30,.85); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 5; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-dot.active { background: var(--white); transform: scale(1.3); }
.news-body { padding: 22px 22px 26px; }
.news-body h3 { color: var(--white); font-size: 1rem; margin: 0 0 10px; }
.news-body p { color: var(--ink-soft); font-size: .86rem; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-nav { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-nav a { font-size: .85rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 8px 22px rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 70;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .vision300-grid, .brand-video-block { grid-template-columns: 1fr; }
  .vision300-media { margin-top: 20px; }
  .brand-video-frame { max-width: 280px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2,1fr); }
  .partner-grid { grid-template-columns: repeat(3,1fr); }
  .apps-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2,1fr); }
  .apps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  section { padding: 70px 0; }
}

/* Mobile nav panel */
.main-nav.open {
  display: block; position: absolute; top: 76px; left: 0; right: 0;
  background: var(--deep-alt); border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.main-nav.open ul { flex-direction: column; gap: 0; padding: 10px 28px; }
.main-nav.open li { border-bottom: 1px solid var(--border); }
.main-nav.open a { display: block; padding: 14px 0; }
