/* ============================================================
   7 Marketing — homepage rebuild
   Matched to the live design: dark/immersive, left-aligned,
   nebula glows, full-bleed tri-colour feature panels,
   arrow-link CTAs, light-cyan display headings.
   ============================================================ */

:root {
  --blue:      #2657FC;
  --blue-2:    #1b3fd0;
  --green:     #03D87D;
  --cyan:      #26DFFC;
  --cyan-soft: #a9e4f6;   /* light-cyan display headings */
  --black:     #050509;
  --panel:     #0a0a12;
  --purple:    #2a1650;
  --ink:       #14141c;
  --muted-d:   #9aa3b8;   /* muted on dark */
  --muted-l:   #5b6472;   /* muted on light */
  --light:     #eef4f6;
  --maxw:      1240px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: #fff;
  background: var(--black);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--cyan); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }
.mt-lg { margin-top: 34px; }
.mt-xl { margin-top: 72px; }

/* Headings — lighter Roboto weights to match the site */
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

.display {
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.05;
  max-width: 15ch;
  color: #fff;
}
.display.sm { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: none; }
.display.light { color: var(--cyan-soft); }

/* Eyebrow labels */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  font-size: .78rem;
  color: #fff;
  margin: 0 0 26px;
}
.eyebrow.dark { color: var(--ink); }

/* Arrow links (the site's real CTA style) */
.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 1.1rem; color: #fff; background: none; border: 0;
  padding: 0; cursor: pointer; font-family: inherit;
}
.arrow-link::after {
  content: "\2192"; font-size: 1.3em; transition: transform .2s ease;
}
.arrow-link:hover::after { transform: translateX(7px); }
.arrow-link-lg { font-size: 1.25rem; }
.arrow-link.sm { font-size: .95rem; color: var(--cyan); }
.arrow-link.as-button { color: #fff; }
.arrow-link.on-light { color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,9,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.brand img { width: auto; height: 46px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li > a {
  color: #e8ecf5; font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 15px; border-radius: 5px; display: flex; align-items: center; gap: 6px;
}
.main-nav a:hover { color: var(--cyan); }
.main-nav a.is-active { color: var(--cyan); }
.caret { margin-left: 2px; transition: transform .22s ease; }
.has-sub:hover > a .caret, .has-sub:focus-within > a .caret { transform: rotate(180deg); }
.has-sub:hover > a, .has-sub:focus-within > a { color: var(--cyan); }

.has-sub { position: relative; }
/* Vertical dropdown — override the top nav's horizontal flex */
.main-nav .submenu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  min-width: 268px; padding: 10px;
  background: #0d0d17; border: 1px solid rgba(255,255,255,.09); border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* little notch pointing up to "Services" */
.main-nav .submenu::before {
  content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px; background: #0d0d17;
  border-left: 1px solid rgba(255,255,255,.09); border-top: 1px solid rgba(255,255,255,.09);
  transform: rotate(45deg);
}
/* keep-alive hover bridge so the menu doesn't close in the 12px gap */
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .submenu li { width: 100%; }
.main-nav .submenu a {
  display: block; width: 100%; text-transform: none; letter-spacing: 0;
  color: #cbd2e4; font-size: .94rem; font-weight: 400; line-height: 1.2;
  padding: 12px 16px; border-radius: 9px; position: relative;
}
.main-nav .submenu a:hover {
  color: #fff; background: linear-gradient(90deg, rgba(38,223,252,.16), rgba(38,87,252,.12));
}
.main-nav .submenu a:hover::before {
  content: ""; position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--cyan);
}

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black);
  padding: 190px 0 175px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 52% 42%, rgba(38,120,255,.55), transparent 62%),
    radial-gradient(30% 45% at 68% 30%, rgba(150,60,240,.45), transparent 65%),
    radial-gradient(22% 34% at 60% 16%, rgba(240,60,140,.34), transparent 70%),
    radial-gradient(45% 60% at 46% 60%, rgba(38,223,252,.22), transparent 62%);
  filter: blur(8px);
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 300; color: var(--cyan-soft);
  margin: 0 0 2px; letter-spacing: .01em;
}
.hero-title {
  color: var(--cyan-soft);
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0 0 44px;
}

/* ---------- Feature panels (full-bleed tri-colour) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature-panel {
  padding: 66px 52px 72px; min-height: 420px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.feature-panel h3 { font-size: 1.85rem; font-weight: 500; margin: 22px 0 0; }
.feature-panel .rule { display: block; width: 46px; height: 3px; background: var(--cyan); margin: 20px 0 22px; }
.feature-panel p { margin: 0; font-size: 1rem; line-height: 1.7; }
.feature-icon { width: 60px; height: 60px; object-fit: contain; }

.panel-purple { background: linear-gradient(165deg, #241247 0%, #16092e 100%); }
.panel-purple p { color: #c9bfe6; }
.panel-blue   { background: linear-gradient(160deg, #2f6bff 0%, #1b45d6 60%, #12b9f0 130%); }
.panel-blue h3, .panel-blue p { color: #fff; }
.panel-blue .rule { background: #bfefff; }
.panel-light  { background: linear-gradient(160deg, #eef5f6 0%, #dfeef1 100%); }
.panel-light h3 { color: var(--ink); }
.panel-light p { color: var(--muted-l); }
.panel-light .rule { background: var(--blue); }

/* ---------- Who we are + stats ---------- */
.whoweare { background: var(--black); overflow: hidden; }
.whoweare-glow {
  position: absolute; right: -5%; bottom: -20%; width: 60%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 50% at 60% 50%, rgba(120,50,230,.4), transparent 65%),
              radial-gradient(40% 40% at 70% 60%, rgba(38,90,255,.32), transparent 68%);
  filter: blur(10px);
}
.whoweare.section { padding: 128px 0 136px; }
.whoweare .container { position: relative; z-index: 2; }
.whoweare .display {
  color: #fff; font-weight: 400;
  /* statement, not a hero heading — much smaller than .display default */
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.4; max-width: 26ch;
}
.whoweare .eyebrow.mt-xl { margin-top: 112px; }

.stats-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 84px 100px;
}
.stat-num { display: block; font-size: clamp(3.2rem, 6vw, 5.2rem); font-weight: 600; color: var(--cyan-soft); line-height: 1; letter-spacing: -.01em; }
.stat-label { display: block; margin-top: 22px; color: #fff; font-weight: 500; font-size: 1.05rem; }

/* ---------- Featured works (light, marquee heading, 2x2) ---------- */
.works { background: #f4f5f9; color: var(--ink); padding: 30px 0 96px; overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scrolling marquee heading */
.marquee { width: 100%; overflow: hidden; margin-bottom: 56px; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-group span {
  font-size: clamp(3.5rem, 12vw, 10.5rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
  color: #eef0f5; white-space: nowrap;
}
.marquee-group .dot { color: #e6e8ef; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.works-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  max-width: 1040px; margin: 0 auto;
}
.work-card {
  display: block; position: relative; border-radius: 6px; overflow: hidden;
  background: #e9ebf1; aspect-ratio: 5 / 4;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover img { transform: scale(1.04); }
.work-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px; color: #fff; font-weight: 600; font-size: 1.1rem;
  background: linear-gradient(transparent, rgba(5,5,12,.8));
  opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease;
}
.work-card:hover .work-overlay { opacity: 1; transform: translateY(0); }
.works .arrow-link { display: flex; justify-content: center; }

/* ---------- Testimonials (light) ---------- */
.testimonials {
  background: linear-gradient(120deg, #f4f8f9 0%, #eaf3f6 45%, #f6fbfc 100%);
  color: var(--ink);
}
.testimonials .display { color: var(--ink); margin-bottom: 54px; font-weight: 400; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.testimonial { margin: 0; position: relative; padding-top: 44px; }
.testimonial::before {
  content: "\201C"; position: absolute; top: -6px; left: 0;
  font-family: Georgia, serif; font-size: 4.4rem; line-height: 1; color: var(--ink);
}
.testimonial p { color: #3a4150; font-size: .98rem; margin: 0 0 22px; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink); font-size: .98rem; }

/* ---------- Blog ---------- */
.blog { background: var(--black); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 6px; }
.blog-card {
  display: flex; background: #0e0e18; border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; overflow: hidden; transition: transform .18s ease, border-color .18s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(38,223,252,.4); }
.blog-card img { width: 42%; object-fit: cover; background: #14141c; }
.blog-body { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.blog-body h3 { font-size: 1.2rem; font-weight: 500; color: #fff; line-height: 1.3; }

/* ---------- Contact CTA ---------- */
.cta { background: var(--black); overflow: hidden; }
.cta-glow {
  position: absolute; right: -8%; top: -10%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(45% 45% at 60% 45%, rgba(120,50,230,.42), transparent 65%),
              radial-gradient(38% 40% at 68% 55%, rgba(38,90,255,.3), transparent 68%);
  filter: blur(10px);
}
.cta .container { position: relative; z-index: 2; }
.cta .display { margin-bottom: 40px; }
.cta-form { max-width: 560px; display: grid; gap: 4px; }
.cta-form input, .cta-form textarea {
  width: 100%; padding: 16px 4px; background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.22);
  font-family: inherit; font-size: 1.05rem;
}
.cta-form textarea { resize: vertical; margin-bottom: 18px; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(255,255,255,.5); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-bottom-color: var(--cyan); }
.cta-form .as-button { margin-top: 20px; justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-d); border-top: 1px solid rgba(255,255,255,.05); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 44px; padding: 76px 32px 56px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 24px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-col a { color: var(--muted-d); font-size: .95rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-col p { font-size: .95rem; margin: 0 0 14px; color: var(--muted-d); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .fi { color: var(--cyan); font-size: 1.05rem; }
.footer-badge {
  margin-top: 24px; display: inline-block; padding: 10px 16px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: #cfe0ff; border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
}
.footer-region { color: #fff; font-weight: 500; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom p { margin: 0; font-size: .86rem; color: #7b8498; }
.footer-bottom a { font-size: .86rem; color: #7b8498; }
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; backdrop-filter: blur(6px);
}
.to-top:hover { background: var(--blue); border-color: var(--blue); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .features { grid-template-columns: 1fr; }
  .feature-panel { min-height: 0; padding: 54px 40px 56px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .nav-toggle-label { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }
  .main-nav {
    position: absolute; top: 88px; left: 0; right: 0;
    background: #0a0a12; max-height: 0; overflow: hidden; transition: max-height .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle:checked ~ .main-nav { max-height: 560px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; }
  .main-nav > ul > li > a { text-transform: none; letter-spacing: .02em; font-size: 1rem; }
  .main-nav .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    min-width: 0; background: rgba(255,255,255,.04); border: 0; border-radius: 8px;
    margin: 2px 0 6px 14px; padding: 4px; gap: 0;
  }
  .main-nav .submenu::before { display: none; }
  .has-sub:hover > a .caret, .has-sub:focus-within > a .caret { transform: none; }
  .stats-grid { gap: 40px; }
}

@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-card img { width: 100%; aspect-ratio: 16/9; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
