:root {
  --bg: #08090b;
  --bg-alt: #0f1114;
  --card: #15171b;
  --border: #23262b;
  --text: #f5f6f7;
  --text-dim: #9a9fa6;
  --accent: #2f6fff;       /* electric blue */
  --accent-2: #5b8cff;
  --accent-dim: #1c3f99;
  --pop: #d7ff3d;          /* punchy lime — used for high-energy accents */
  --pop-dim: #91b81f;
  --tier-bronze: #b08d57;
  --tier-silver: #9aa5b1;
  --tier-gold: #2f6fff;
  --radius: 12px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }

.eyebrow {
  color: var(--accent-2); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(8,9,11,0.88);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo img { height: 34px; width: auto; }
.logo { font-weight: 800; letter-spacing: 0.04em; font-size: 19px; }
.logo span { color: var(--accent-2); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--text-dim); font-size: 14px; font-weight: 600; transition: color .15s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; min-width: 190px; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
/* Invisible bridge over the gap so the pointer never truly leaves the hoverable area
   while moving from the nav link down into the dropdown. */
.dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.dropdown a:hover { background: var(--bg-alt); color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .15s, opacity .15s, background .15s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent-2); }
.hero-sub { color: var(--text-dim); font-size: 18px; max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; }
.strip-inner { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; text-align: center; }
.strip-inner strong { display: block; font-size: 30px; color: var(--accent-2); font-weight: 800; }
.strip-inner span { display: block; font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---------- Card grid (services / areas) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .15s, transform .15s;
}
.info-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.info-card .num { color: var(--accent-2); font-weight: 800; font-size: 13px; margin-bottom: 14px; letter-spacing: 0.08em; }
.info-card h3 { font-size: 18px; margin-bottom: 10px; }
.info-card p { color: var(--text-dim); font-size: 14px; }
.info-card ul { margin-top: 12px; padding-left: 18px; color: var(--text-dim); font-size: 14px; }
.info-card li { margin-bottom: 4px; }

/* ---------- Timeline (process steps) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 780px; margin: 0 auto; }
.timeline-step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-step:last-child { border-bottom: none; }
.timeline-step .week { color: var(--accent-2); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 4px; }
.timeline-step h3 { font-size: 18px; margin-bottom: 8px; }
.timeline-step ul { padding-left: 18px; color: var(--text-dim); font-size: 14px; }
.timeline-step li { margin-bottom: 4px; }

/* ---------- Pricing ---------- */
.pricing-group { margin-bottom: 72px; }
.pricing-group:last-child { margin-bottom: 0; }
.pricing-group-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.pricing-group-head h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 10px; }
.pricing-group-head p { color: var(--text-dim); font-size: 15px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pricing-card .tier-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); margin-bottom: 10px; }
.pricing-card .price { font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.pricing-card .price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.pricing-card ul { list-style: none; margin-bottom: 24px; flex-grow: 1; }
.pricing-card li { color: var(--text-dim); font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.pricing-card li:last-child { border-bottom: none; }

.pricing-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 60px; flex-wrap: wrap; }
.pricing-tabs a {
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
  padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 13px; transition: all .15s;
}
.pricing-tabs a:hover { color: var(--text); border-color: var(--accent-dim); }

/* ---------- Case study ---------- */
.case-study { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; background: var(--card); }
.case-media { width: 100%; aspect-ratio: 16/7; object-fit: cover; background: linear-gradient(135deg, #14203f, #0a0d16); }
.case-media.placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.case-body { padding: 36px; }
.case-body .eyebrow { margin-bottom: 8px; }
.case-body h3 { font-size: 26px; margin-bottom: 18px; }
.case-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 22px 0; }
@media (max-width: 760px) { .case-cols { grid-template-columns: 1fr; } }
.case-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); margin-bottom: 10px; }
.case-cols p, .case-cols li { color: var(--text-dim); font-size: 14px; }
.case-cols ul { padding-left: 18px; }
.case-cols li { margin-bottom: 6px; }
.case-results { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; }
.case-results div strong { display: block; color: var(--accent-2); font-size: 20px; }
.case-results div span { color: var(--text-dim); font-size: 13px; }
.case-quote { border-left: 3px solid var(--accent); padding-left: 18px; margin-top: 22px; color: var(--text-dim); font-style: italic; font-size: 15px; }

/* ---------- FAQ / Accordion ---------- */
.faq-item { max-width: 720px; margin: 0 auto; border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; padding: 22px 0;
  cursor: pointer; font-weight: 700; font-size: 16px;
}
.faq-q .icon { color: var(--accent-2); font-size: 20px; transition: transform .2s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--text-dim); font-size: 14px; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 22px; }

/* ---------- Form ---------- */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-card input, .form-card textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 13px 14px; color: var(--text); font-size: 14px; font-family: inherit; margin-bottom: 16px;
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 18px; }
.contact-info p { color: var(--text-dim); margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; }
.contact-detail:last-child { border-bottom: 1px solid var(--border); }
.contact-detail .tag { color: var(--accent-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; width: 90px; flex-shrink: 0; }

/* ---------- Video section ---------- */
.video-section { padding: 96px 0; text-align: center; }
.video-section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.video-section p { color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; }
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-frame video { width: 100%; display: block; }

/* ---------- Portfolio preview strip (home) ---------- */
.portfolio-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .portfolio-strip { grid-template-columns: 1fr; } }
.portfolio-tile {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card);
}
.portfolio-tile img, .portfolio-tile .placeholder {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.portfolio-tile .placeholder {
  display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #14203f, #0a0d16);
  color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
}
.portfolio-tile-body { padding: 20px; }
.portfolio-tile-body h4 { font-size: 16px; margin-bottom: 6px; }
.portfolio-tile-body p { color: var(--text-dim); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); margin-bottom: 16px; }
.footer-grid .logo img { height: 30px; margin-bottom: 14px; }
.footer-grid p { color: var(--text-dim); font-size: 14px; }
.footer-links a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; }
.footer-links a:hover { color: var(--text); }
.footer-sub input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-size: 14px; margin-bottom: 10px; font-family: inherit;
}
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 160; }

  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    background: var(--bg); border-left: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: stretch;
    padding: 100px 28px 32px; gap: 2px;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.16,.8,.3,1);
    z-index: 150; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .main-nav.open { transform: translateX(0); }

  .main-nav a { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 16px; white-space: normal; }

  .has-dropdown .dropdown {
    display: block; position: static; border: none; padding: 2px 0 6px 14px; background: none;
    margin-top: 0; box-shadow: none;
  }
  .has-dropdown .dropdown a { padding: 11px 0; border-bottom: none; font-size: 14px; color: var(--text-dim); }

  .nav-cta { margin-top: 8px; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(4,5,7,0.6); backdrop-filter: blur(2px);
    z-index: 140; opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}
body.nav-locked { overflow: hidden; }
