/* 7Code Design System
   Type: DM Sans (display + bold), Inter (body)
   Accent: cyan teal #06B6D4 → #0C9CB5
   Ink: #0F172A (navy), #475569 (slate)
*/
:root {
  --ink: #0F172A;
  --ink-2: #1E2939;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --bg-cyan-50: #ECFEFF;
  --bg-cyan-100: #D8F7F9;

  --cyan-300: #4DDFEA;
  --cyan-400: #2EBFD0;
  --cyan-500: #06B6D4;       /* primary */
  --cyan-600: #0C9CB5;
  --cyan-700: #0E7C90;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container: 1280px;
  --gutter: 80px;

  --font-display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.03);
  --shadow: 0 8px 24px -8px rgba(15,23,42,.08), 0 2px 6px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 48px -16px rgba(15,23,42,.16), 0 8px 16px -8px rgba(15,23,42,.06);
  --shadow-cyan: 0 16px 40px -12px rgba(6,182,212,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }
input, textarea { font: inherit; color: inherit; }

/* ──────────────────────────────────────────────────────────────────
   Layout primitives
   ────────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-600);
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content; max-width: 100%;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.3; }
p { margin: 0; color: var(--slate-700); }

.section-head { display: grid; gap: 16px; max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { justify-content: center; justify-self: center; }
.section-head p { color: var(--slate-500); font-size: 17px; }
.section-head--left { text-align: left; margin-left: 0; margin-right: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }

/* ──────────────────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow { width: 18px; height: 18px; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(15,23,42,.4); }
.btn--primary:hover { background: var(--cyan-500); box-shadow: var(--shadow-cyan); }

.btn--cyan { background: var(--cyan-500); color: #fff; box-shadow: var(--shadow-cyan); }
.btn--cyan:hover { background: var(--cyan-600); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--slate-200); }
.btn--ghost:hover { border-color: var(--ink); background: var(--slate-50); }

.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.btn-link:hover { color: var(--cyan-600); border-color: var(--cyan-500); }
.btn-link .arrow { width: 16px; height: 16px; transition: transform .18s ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ──────────────────────────────────────────────────────────────────
   Nav
   ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled { border-color: var(--slate-200); background: rgba(255,255,255,.9); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--ink); }
.brand svg { height: 28px; width: auto; color: var(--ink); }
.brand:hover svg { color: var(--cyan-500); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 15px;
  color: var(--slate-700);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--slate-50); }
.nav-link.is-active { color: var(--ink); background: var(--slate-100); }
.nav-link .caret { width: 14px; height: 14px; opacity: .55; transition: transform .18s ease; }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Mega menu */
.megamenu {
  position: absolute; left: 50%; top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-6px);
  width: min(880px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.megamenu.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mm-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  transition: background .15s ease;
  align-items: start;
}
.mm-item:hover { background: var(--bg-cyan-50); }
.mm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-cyan-50); color: var(--cyan-600);
  display: grid; place-items: center;
}
.mm-icon svg { width: 20px; height: 20px; }
.mm-title { display: block; font-weight: 600; color: var(--ink); font-size: 15px; }
.mm-desc { display: block; font-size: 13px; color: var(--slate-500); margin-top: 3px; }

/* Services mega menu — full-width panel */
.svc-mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0 auto;
  max-width: 1180px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(15,23,42,.18);
  padding: 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.svc-mega.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.svc-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-mega-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--slate-50);
  border: 1px solid transparent;
  transition: all .18s ease;
  text-decoration: none;
  color: inherit;
}
.svc-mega-card:hover { background: #fff; border-color: var(--cyan-500); box-shadow: 0 12px 24px -12px rgba(6,182,212,.25); }
.svc-mega-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-cyan-50); color: var(--cyan-600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.svc-mega-icon svg { width: 20px; height: 20px; }
.svc-mega-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.svc-mega-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.svc-mega-list li { font-size: 14px; color: var(--slate-500); }
.svc-mega-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.svc-mega-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.svc-mega-card:hover .svc-mega-link { color: var(--cyan-600); }
.svc-mega-card:hover .svc-mega-link svg { transform: translateX(3px); }
.svc-mega-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 8px 4px;
  border-top: 1px solid var(--slate-100);
  margin-top: 16px;
  font-size: 14px; color: var(--slate-500);
}
.svc-mega-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.svc-mega-cta:hover { color: var(--cyan-600); }
.svc-mega-cta svg { width: 16px; height: 16px; }

.nav-mobile-toggle { display: none; }
.nav-mobile { display: none; }

/* Mobile nav */
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-pill);
    background: var(--slate-100); color: var(--ink);
  }
  .nav-mobile-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
  .nav-mobile {
    display: block;
    position: fixed; inset: 84px 0 0 0;
    background: #fff;
    transform: translateY(-100%);
    transition: transform .25s ease;
    padding: 32px 24px;
    z-index: 49;
    border-top: 1px solid var(--slate-200);
    overflow-y: auto;
  }
  .nav-mobile.is-open { transform: translateY(0); }
  .nav-mobile a {
    display: block; padding: 18px 0;
    font-family: var(--font-display); font-weight: 600; font-size: 22px;
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-mobile .btn {
    margin-top: 24px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    height: 52px; padding: 0 22px;
    font-size: 16px; border-bottom: none;
  }
  .nav-mobile-group { border-bottom: 1px solid var(--slate-100); }
  .nav-mobile-group-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 18px 0;
    font-family: var(--font-display); font-weight: 600; font-size: 22px;
    background: none; border: none; color: var(--ink); cursor: pointer;
    text-align: left;
  }
  .nav-mobile-group-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
  .nav-mobile-group-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav-mobile-sub { display: none; padding: 0 0 16px 16px; }
  .nav-mobile-sub.is-open { display: block; }
  .nav-mobile-sub a {
    font-size: 16px; font-weight: 500; padding: 10px 0;
    border-bottom: none; color: var(--slate-600);
  }
  .nav-mobile-sub a:hover { color: var(--ink); }
  .nav-mobile-group .nav-mobile-group-btn + .nav-mobile-sub { border-bottom: none; }
}

/* ──────────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #fff; padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cyan-300); margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: rgba(255,255,255,.7); font-size: 15px; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: 15px; max-width: 320px; margin-top: 18px; }
.footer-brand .brand svg { color: #fff; height: 32px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5); font-size: 13px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  transition: all .15s ease;
}
.footer-social a:hover { background: var(--cyan-500); border-color: var(--cyan-500); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────
   Cards / atoms used across pages
   ────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  width: max-content; max-width: 100%;
  justify-self: start;
  height: 28px; padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-cyan-50); color: var(--cyan-700);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--bg-cyan-100);
}
.tag--ink { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.12); }
.tag-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--slate-300); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-cyan-50); color: var(--cyan-600);
  margin-bottom: 16px;
}
.icon-tile svg { width: 22px; height: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Marquee */
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 80px; width: max-content; animation: scrollx 30s linear infinite; }
.marquee-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--slate-400); letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Form */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6,182,212,.15);
}
.field--error input, .field--error textarea { border-color: #DC2626; }
.field-error { color: #DC2626; font-size: 12px; }

/* Tweaks panel base */
.tweak-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 320px; max-width: calc(100vw - 48px); max-height: 70vh;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  font-family: var(--font-body);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tweak-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  background: var(--ink); color: #fff;
}
.tweak-panel-body { padding: 20px; overflow-y: auto; }
.tweak-panel-close {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center;
}
.tweak-row { margin-bottom: 18px; }
.tweak-row label { font-size: 12px; font-weight: 600; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 8px; }
.tweak-options { display: grid; gap: 6px; }
.tweak-option {
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--slate-50); border: 1px solid var(--slate-200);
  font-size: 14px; font-weight: 500; text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.tweak-option:hover { border-color: var(--slate-300); }
.tweak-option.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Page transitions */
.page { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Responsive helpers */
@media (max-width: 960px) {
  .section { padding: 64px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
