/* =========================================================
   TroopTechSolutions Pro — site styles
   Palette pulled from the logo: deep navy + electric blue
   ========================================================= */
:root {
  --navy-900: #050d1f;
  --navy-800: #0a1a3a;
  --navy-700: #0f2552;
  --blue-600: #0b4fb3;
  --blue-500: #1466e0;
  --blue-400: #2f8cff;
  --blue-300: #6fb3ff;
  --blue-100: #e6f0ff;
  --ink: #0b1630;
  --muted: #56627a;
  --line: #dbe3f0;
  --bg: #ffffff;
  --bg-tint: #f4f7fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 26, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 26, 58, 0.16);
  --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff; box-shadow: 0 8px 20px rgba(20, 102, 224, .35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(20, 102, 224, .45); }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-500); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--blue-300); background: rgba(47,140,255,.12); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: .8rem; color: var(--blue-500); margin-bottom: .75em;
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10,26,58,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-800); }
.brand-mark { width: 64px; height: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-text .accent { color: var(--blue-600); }
.brand-pro {
  font-size: .68rem; letter-spacing: .3em; color: var(--blue-600);
  border: 1.5px solid var(--blue-400); border-radius: 4px; padding: 1px 4px 1px 7px; margin-left: 4px;
  vertical-align: middle;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .96rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue-400); transform: scaleX(0); transition: transform .2s;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47,140,255,.18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(11,79,179,.10), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-tint));
  padding: 72px 0 88px;
}
.pixels {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; color: var(--navy-800); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--navy-700); font-weight: 500; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--blue-500); stroke-width: 2.6; }

.hero-visual { position: relative; }
.logo-card {
  position: relative; background: #fff; border-radius: 24px; padding: 36px 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.logo-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: 26px; z-index: -1;
  background: linear-gradient(135deg, var(--blue-400), transparent 40%, transparent 60%, var(--blue-600));
  filter: blur(18px); opacity: .55;
}

/* ---------- Strip ---------- */
.strip { background: var(--navy-800); color: #fff; }
.strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-inner div { padding: 22px 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.strip-inner div:last-child { border-right: 0; }
.strip strong { display: block; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .02em; }
.strip span { font-size: .85rem; color: var(--blue-300); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(47,140,255,.20), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #dfe8fb;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--blue-300); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:not(.eyebrow) { color: #aebcd9; }

/* ---------- Services ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip {
  font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy-700); transition: all .2s;
}
.chip:hover { border-color: var(--blue-400); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4d5f2; }
.service-card.hidden { display: none; }
.service-card h3 { font-size: 1.2rem; color: var(--navy-800); margin-top: 16px; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card li { position: relative; padding-left: 18px; margin: 7px 0; color: var(--muted); font-size: .95rem; }
.service-card li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px;
  background: var(--blue-400); border-radius: 1.5px;
}
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), #fff); color: var(--blue-600);
  border: 1px solid #cfe0fb;
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Packages ---------- */
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.package {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px; padding: 32px 26px;
  transition: transform .2s, border-color .2s, background .2s;
}
.package:hover { transform: translateY(-4px); border-color: rgba(111,179,255,.45); }
.package h3 { font-size: 1.35rem; margin-bottom: .2em; display: flex; align-items: center; gap: 10px; }
.package h3::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--tier); box-shadow: 0 0 12px var(--tier); }
.tier-bronze { --tier: #c9834a; }
.tier-silver { --tier: #c3ccd9; }
.tier-gold { --tier: #f2c14e; }
.tier-platinum { --tier: #8fd3ff; }
.price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: #fff; margin: .2em 0 0; line-height: 1; }
.price .currency { font-size: 1.4rem; vertical-align: super; margin-right: 2px; color: var(--blue-300); }
.tagline { color: #aebcd9; font-size: .95rem; margin: .6em 0 1.2em; }
.package ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.package li { display: flex; gap: 10px; margin: 10px 0; font-size: .95rem; color: #dfe8fb; }
.package li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(47,140,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fb3ff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.package strong { color: #fff; }
.package.featured {
  background: linear-gradient(180deg, rgba(47,140,255,.18), rgba(47,140,255,.05));
  border-color: var(--blue-400);
  box-shadow: 0 20px 50px rgba(20,102,224,.3);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.badge-alt { background: #fff; color: var(--navy-800); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: #fff;
  position: relative; overflow: hidden;
}
.price-tile::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-600));
}
.price-tile .label { font-weight: 600; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4em; }
.price-tile .value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy-800); margin-bottom: .3em; line-height: 1.1; }
.price-tile .value small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-tile p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }

.referral {
  margin-top: 32px; display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, var(--blue-100), #fff);
  border: 1px solid #cfe0fb; border-radius: 20px; padding: 28px 32px;
}
.referral h3 { color: var(--navy-800); font-size: 1.3rem; margin-bottom: .25em; }
.referral p { color: var(--muted); margin: 0; }
.referral > div:nth-child(2) { flex: 1; }
.referral-icon { flex: 0 0 60px; height: 60px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; }

/* ---------- Who ---------- */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.who-card h3 { margin-top: 16px; font-size: 1.2rem; color: var(--navy-800); }
.who-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; position: relative; }
.steps li { text-align: center; padding: 0 10px; position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: calc(50% + 40px); right: calc(-50% + 40px);
  border-top: 2px dashed #c4d5f2;
}
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(20,102,224,.3);
}
.steps h3 { font-size: 1.15rem; color: var(--navy-800); }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy-800);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue-500); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.contact-copy > p { color: #aebcd9; font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,140,255,.15); color: var(--blue-300); flex: 0 0 44px; }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list small { display: block; color: #8fa0c4; font-size: .82rem; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.contact-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: .75em .9em;
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-tint);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(47,140,255,.15);
}
.contact-form .invalid { border-color: #d64545; }
.contact-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; color: var(--muted); }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c03030; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #8fa0c4; padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 64px; background: #fff; border-radius: 10px; padding: 6px; }
.footer-name { color: #fff; font-family: var(--font-head); font-weight: 700; margin: 0; font-size: 1.1rem; }
.footer-tag { margin: 0; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #c6d3ef; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .package { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .packages-grid, .pricing-grid, .who-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { row-gap: 32px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(10,26,58,.1);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; }
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .strip-inner { grid-template-columns: repeat(3, 1fr); }
  .strip-inner div:nth-child(3) { border-right: 0; }
  .strip-inner div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.08); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li::after { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-text { font-size: 1rem; }
  .brand-mark { width: 52px; }
  .packages-grid, .pricing-grid, .who-grid, .steps { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner div { border-right: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .strip-inner div:nth-child(-n+2) { border-top: 0; }
  .strip-inner div:last-child { grid-column: 1 / -1; }
  .referral { flex-direction: column; text-align: center; padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .brand-pro { display: none; }
}

/* Services grid call-to-action card */
.service-card.cta-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: transparent; color: #aebcd9;
}
.service-card.cta-card h3 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.service-card.cta-card p { margin-bottom: 1.4em; }

/* Hero phone link */
.hero-call { display: inline-flex; align-items: center; gap: 8px; margin: -8px 0 22px; font-weight: 600; color: var(--navy-700); }
.hero-call span { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.hero-call svg { width: 18px; height: 18px; color: var(--blue-500); }
.footer-tag a { color: #c6d3ef; }
.footer-tag a:hover { color: #fff; }
