/* ==== 3D WEB, AR & VR – CLEAN CSS (NO NAV/FOOTER) ==== */
:root {
  --primary: #1E3F5C;
  --primary-light: #37A2B5;
  --secondary: #1E3F5C;
  --secondary-dark: #0b233e;
  --accent: #00d4ff;
  --text-dark: #111827;
  --text-light: #f1f2f5;
  --text-muted: #64748b;
  --bg-light: #f5f8fb;
  --bg-white: #fff;
  --border: #e5e8ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all .3s ease;
  --nav-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

/* === Unified Typography (Lato for headings, Inter for content) === */
h1, h2, h3, h4, .line, .title {
  font-family: 'Lato', sans-serif !important;
  font-weight: 900 !important;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
}

h2, .line {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
}

p, .sub, .tag, .pill, li, button, input, textarea {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
}

.container,
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HERO */
.hero-block {
  padding: calc(var(--nav-h) + 40px) 20px 34px;
  text-align: center;
}

.hero-block h1 {
  color: var(--text-dark);
  margin-bottom: 12px;
}

.tag {
  max-width: 1100px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-weight: 600;
}

.ultra {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
}

.pill {
  font-weight: 700;
  color: #0b1320;
  position: relative;
}

.pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 10px 2px 0;
  background: #01101b;
  box-shadow: 0 0 0 3px #174060 inset;
}

.pill::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #153d5c, #07272c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
  opacity: .85;
}

.pill:hover::after {
  transform: scaleX(1);
}

/* ROWS */
.flow {
  padding: 40px 0;
}

.row {
  display: flex;
  align-items: stretch;           /* <-- stretch children, not center */
  gap: 40px;
  padding: 20px;
  margin: 20px auto;
  max-width: 1240px;
}

.row.right {
  flex-direction: row-reverse;
}

.media {
  flex: 1;
  width: 100%;                    /* <-- ensure model container has width */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

model-viewer.viewer {
  width: 100%;
  height: 480px;
  display: block;
  background: #f8fafc;
  border-radius: 16px;
  --poster-color: #f8fafc;
}

.copy {
  flex: 1;
  padding: 8px;
}

.line {
  margin-bottom: 12px;
}

.sub {
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.7;
}

.ar-launch-btn {
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  background: linear-gradient(180deg, #1E3F5C, #0b233e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.ar-launch-btn::after {
  content: "→";
}

.ar-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.sep {
  height: 1px;
  width: min(86vw, 1100px);
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, #dbe3ee, transparent);
  border: none;
}

/* INFO */
.section-info {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
  text-align: center;
}

.section-info h3 {
  margin-bottom: 10px;
}

.section-info p {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* FLOW MAP */
.flow-map {
  background: #fff;
  padding: 50px 0;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.flow-step {
  background: #fbfdff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff7fc;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.flow-step h4 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.95rem;
  color: #475569;
}

/* CTA */
.cta {
  text-align: center;
  margin: 80px 0;
}

.cta .title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 10px;
}

.cta .sub {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.cta-btn {
  padding: 16px 32px;
  background: var(--primary);
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  border: 1px solid var(--primary);
  transition: .3s;
}

.cta-btn:hover {
  background: #fff;
  color: var(--primary);
}

.view-ar-btn {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #1E3F5C;
  background: #ffffff;
  color: #1E3F5C;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-ar-btn:hover {
  background: #1E3F5C;
  color: #ffffff;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  .flow-rail {
    grid-template-columns: repeat(3, 1fr);
  }
  model-viewer.viewer {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .row,
  .row.right {
    flex-direction: column;
    align-items: stretch;          /* <-- keep full width on mobile */
  }

  model-viewer.viewer {
    height: 300px;
  }

  .flow-rail {
    grid-template-columns: 1fr;
  }

  .ar-launch-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-block {
    padding: calc(var(--nav-h) + 20px) 16px 24px;
  }
}

@media (max-width: 480px) {
  model-viewer.viewer {
    height: 260px;
  }

  .row {
    padding: 16px;
    gap: 24px;
  }
}