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

:root {
  --red:   #542785;
  --black: #1a1a1a;
  --gray:  #ddd;
  --white: #ffffff;
  --text:  #444444;
  --bg:    #f5f5f5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* ── DOT NAV ── */
#dot-nav {
  position: fixed; right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; border: 1.5px solid #aaa;
  cursor: pointer;
  transition: background .25s, transform .25s, border-color .25s;
}
.dot.active { background: var(--red); border-color: var(--red); transform: scale(1.4); }

/* ── STICKY BOTTOM BAR ── */
#bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--gray);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.09);
}
.bar-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: #bbb;
}
.bar-center { display: flex; align-items: center; gap: 12px; }

.bar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--white);
  background: #542785; border: 2px solid #542785; border-radius: 6px;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 14px #54278566; white-space: nowrap;
}
.bar-cta:hover {
  background: #542785; border-color: #542785;
  transform: translateY(-1px); box-shadow: 0 6px 20px #54278566;
}
.bar-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

.bar-divider { width: 1px; height: 28px; background: var(--gray); }

.bar-nav { display: flex; }
.bar-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--black);
  border: 1px solid var(--gray);
  transition: background .2s, color .2s, border-color .2s;
}
.bar-nav a:first-child { border-radius: 6px 0 0 6px; }
.bar-nav a:last-child  { border-radius: 0 6px 6px 0; margin-left: -1px; }
.bar-nav a:hover { background: var(--red); color: #fff; border-color: var(--red); z-index: 1; }

/* ── HERO ── */
#hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #091828 0%, #0d2b4e 55%, #0a1f3a 100%);
}
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.hs1 {
  width: 600px; height: 600px; top: -160px; right: -60px;
  background: radial-gradient(circle, rgba(255,165,0,.12) 0%, transparent 70%);
}
.hs2 {
  width: 380px; height: 380px; bottom: -80px; right: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
}

.hero-left {
  position: relative; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 72px 56px 96px 72px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: rgba(255,255,255,.45); flex-shrink: 0;
}
.hero-eyebrow span {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.hero-headline {
  font-size: clamp(36px, 4.8vw, 70px); font-weight: 800;
  line-height: 1.06; letter-spacing: -.025em; color: #fff; margin-bottom: 40px;
}
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 7px;
}
.hero-meta .val {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.88); letter-spacing: .03em;
}

.hero-right {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: 60px; border-left: 1px solid rgba(255,255,255,.07);
}
.hero-right img {
  width: 100%; max-width: 400px; max-height: 360px;
  object-fit: cover; display: block; border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.hero-right .logo-fb {
  display: none; font-size: 32px; font-weight: 900;
  letter-spacing: .05em; color: #fff;
}
.hero-scroll {
  position: absolute; bottom: 32px; right: 72px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), transparent);
  animation: sp 2s ease-in-out infinite;
}
@keyframes sp {
  0%,100% { opacity:1; transform:scaleY(1); }
  50%     { opacity:.3; transform:scaleY(.55); }
}

/* ── SERVICES STRIP ── */
.services-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 72px; border-bottom: 1px solid var(--gray);
}
.stag {
  font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--gray); border-radius: 100px; color: #666;
}

/* ── SECTIONS ── */
.cs-sec { position: relative; border-bottom: 1px solid var(--gray); }

.two-col {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 80px; padding: 56px 72px; align-items: start;
}
.col-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--black); line-height: 1.7; padding-top: 3px;
}
.col-body {
  font-size: 15px; font-weight: 400; line-height: 2;
  color: var(--text); max-width: 720px;
}
.col-body p + p { margin-top: 18px; }

.red-bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 5px; background: var(--red); z-index: 5;
}

/* ── VISUAL BLOCKS ── */
.vis-block {
  position: relative; width: 100%;
  border-top: 1px solid var(--gray); overflow: hidden;
}

.single-img {
  width: 100%; display: block;
  object-fit: contain; background: #f4f4f4; max-height: 540px;
}

.img-row { display: grid; gap: 1px; background: #e8e8e8; }
.img-row.two   { grid-template-columns: 1fr 1fr; }
.img-row.three { grid-template-columns: 1fr 1fr 1fr; }

.img-row .img-cell {
  background: #fff; display: flex;
  align-items: center; justify-content: center;
  padding: 24px; min-height: 300px;
}
.img-row .img-cell img {
  width: 100%; height: auto; max-height: 380px;
  object-fit: contain; display: block;
}

.img-row.screens .img-cell {
  padding: 0; min-height: 480px;
  background: #f0f0f0; overflow: hidden;
}
.img-row.screens .img-cell img {
  width: 100%; height: 480px;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.img-row.screens .img-cell img:hover { transform: scale(1.03); }

/* ── CHALLENGE ROWS ── */
.ch-list { display: flex; flex-direction: column; }
.ch-row {
  display: flex; align-items: flex-start; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid #ebebeb;
}
.ch-row:last-child { border-bottom: none; padding-bottom: 0; }
.ch-num {
  font-size: 12px; font-weight: 700; color: var(--red);
  letter-spacing: .08em; min-width: 28px; padding-top: 1px;
}
.ch-txt { font-size: 15px; font-weight: 500; color: #333; line-height: 1.75; }

/* ── TECH STACK GRID ── */
.stack-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gray);
}
.stack-cell { padding: 40px 36px; border-right: 1px solid var(--gray); }
.stack-cell:last-child { border-right: none; }
.stack-title {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.stack-items { display: flex; flex-direction: column; gap: 9px; }
.stack-item {
  font-size: 13px; font-weight: 500; color: #444;
  display: flex; align-items: center; gap: 9px;
}
.stack-item::before {
  content: ''; display: block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--red); flex-shrink: 0;
}

/* ── APPROACH GRID ── */
.approach-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray);
}
.approach-cell { padding: 44px 36px; border-right: 1px solid var(--gray); }
.approach-cell:last-child { border-right: none; }
.approach-num {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--red); margin-bottom: 14px;
}
.approach-title {
  font-size: 14px; font-weight: 700;
  color: var(--black); margin-bottom: 12px; line-height: 1.4;
}
.approach-desc { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.8; }

/* ── RESPONSIVE DESIGN GRID ── */
.resp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray);
}
.resp-item { padding: 44px 36px; border-right: 1px solid var(--gray); }
.resp-item:last-child { border-right: none; }
.resp-icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--red); }
.resp-icon svg { width: 100%; height: 100%; }
.resp-label { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.resp-desc  { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.8; }

/* ── FEATURES LIST ── */
.features-list { border-top: 1px solid var(--gray); }
.feature-row {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--gray);
}
.feature-row:last-child { border-bottom: none; }
.feature-num {
  flex-shrink: 0; width: 100px; padding: 36px 40px;
  font-size: 28px; font-weight: 800; color: #ebebeb;
  letter-spacing: -.02em; border-right: 1px solid var(--gray);
  display: flex; align-items: center; justify-content: center;
}
.feature-content { padding: 36px 56px; }
.feature-title {
  font-size: 14px; font-weight: 700; color: var(--black);
  margin-bottom: 10px; letter-spacing: .02em;
}
.feature-desc { font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.85; }

/* ── METRICS ── */
.metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray);
}
.metric-cell { padding: 56px 48px; text-align: center; border-right: 1px solid var(--gray); }
.metric-cell:last-child { border-right: none; }
.metric-val {
  font-size: 64px; font-weight: 800; color: var(--red);
  letter-spacing: -.03em; line-height: 1; margin-bottom: 12px;
}
.metric-lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #999;
}

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.fi.show { opacity: 1; transform: translateY(0); }
.fi.d1 { transition-delay: .1s; }
.fi.d2 { transition-delay: .2s; }
.fi.d3 { transition-delay: .3s; }

/* ══════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════ */
@media (max-width: 1100px) {
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .stack-cell:nth-child(3) { border-right: none; }
  .stack-cell:nth-child(4) { border-top: 1px solid var(--gray); }
  .stack-cell:nth-child(5) { border-top: 1px solid var(--gray); border-right: none; }
}

@media (max-width: 900px) {
  /* Hero */
  #hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .hero-right { display: none; }
  .hero-left { padding: 64px 28px 100px; }
  .hero-scroll { right: 28px; }

  /* Strip */
  .services-strip { padding: 20px 24px; gap: 8px; }

  /* Two-col layout */
  .two-col { grid-template-columns: 1fr; gap: 16px; padding: 36px 24px; }

  /* Grids */
  .stack-grid     { grid-template-columns: 1fr 1fr; }
  .stack-cell     { border-right: none; border-bottom: 1px solid var(--gray); padding: 28px 24px; }
  .stack-cell:last-child { border-bottom: none; }

  .approach-grid  { grid-template-columns: 1fr 1fr; }
  .approach-cell  { border-right: none; border-bottom: 1px solid var(--gray); padding: 32px 24px; }
  .approach-cell:last-child  { border-bottom: none; }
  .approach-cell:nth-child(odd) { border-right: 1px solid var(--gray); }

  .resp-grid      { grid-template-columns: 1fr 1fr; }
  .resp-item      { border-right: none; border-bottom: 1px solid var(--gray); padding: 32px 24px; }
  .resp-item:last-child { border-bottom: none; }
  .resp-item:nth-child(odd) { border-right: 1px solid var(--gray); }

  /* Metrics */
  .metrics-row    { grid-template-columns: 1fr; }
  .metric-cell    { border-right: none; border-bottom: 1px solid var(--gray); padding: 40px 24px; }
  .metric-cell:last-child { border-bottom: none; }
  .metric-val     { font-size: 48px; }

  /* Images */
  .img-row.three  { grid-template-columns: 1fr 1fr; }
  .img-row.screens .img-cell { min-height: 320px; }
  .img-row.screens .img-cell img { height: 320px; }

  /* Features */
  .feature-num    { width: 56px; padding: 24px 16px; font-size: 18px; }
  .feature-content { padding: 24px 20px; }

  /* Bottom bar */
  #bottom-bar { padding: 0 16px; }
  .bar-label  { display: none; }
  .bar-center { gap: 8px; }
  .bar-cta    { padding: 9px 14px; font-size: 9px; }
  .bar-divider { display: none; }
  .bar-nav a  { padding: 9px 12px; font-size: 9px; }

  /* Dot nav */
  #dot-nav { display: none; }
}

@media (max-width: 640px) {
  /* Hero */
  .hero-left { padding: 48px 20px 90px; }
  .hero-meta { gap: 24px; }

  /* Strip */
  .services-strip { padding: 16px 20px; }

  /* Two-col */
  .two-col { padding: 28px 20px; gap: 14px; }

  /* Grids — single column */
  .approach-grid  { grid-template-columns: 1fr; }
  .approach-cell  { border-right: none !important; padding: 28px 20px; }
  .approach-cell:last-child { border-bottom: none; }

  .resp-grid      { grid-template-columns: 1fr; }
  .resp-item      { border-right: none !important; padding: 28px 20px; }
  .resp-item:last-child { border-bottom: none; }

  /* Images */
  .img-row.two,
  .img-row.three  { grid-template-columns: 1fr; }
  .img-row .img-cell { min-height: 200px; padding: 16px; }
  .img-row.screens .img-cell { min-height: 260px; }
  .img-row.screens .img-cell img { height: 260px; }

  /* Features */
  .feature-num    { width: 48px; padding: 20px 12px; font-size: 16px; }
  .feature-content { padding: 20px 16px; }
  .feature-title  { font-size: 13px; }
  .feature-desc   { font-size: 13px; }

  /* Metrics */
  .metric-val     { font-size: 44px; }
}

@media (max-width: 420px) {
  .hero-headline  { font-size: 32px; }
  .bar-cta        { padding: 8px 10px; font-size: 8px; letter-spacing: .08em; }
  .bar-nav a      { padding: 8px 10px; font-size: 8px; }
}
