/* =============================================================
   TECH AVENUE — STYLES
   Design tokens in :root. Change text/services in js/data.js.
   ============================================================= */

:root {
  --bg:       #14161b;
  --bg-2:     #1a1d24;
  --panel:    #20242c;
  --panel-2:  #262b34;
  --line:     #2f3540;
  --text:     #eef1f6;
  --muted:    #a4adbb;
  --accent:   #33a1d6;
  --accent-2: #4b5bd6;
  --radius:   16px;
  --wrap:     1160px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: "Space Grotesk","Inter",sans-serif; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

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

/* Accessibility: visible focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20,22,27,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand-logo { height: 40px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .18s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta { color: var(--text); border: 1px solid var(--line); padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: border-color .18s, background .18s; }
.nav-cta:hover { border-color: var(--accent); background: rgba(51,161,214,.1); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-block; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 12px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, border-color .2s, background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 26px -10px rgba(51,161,214,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(51,161,214,.75); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.text-link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; }
.hero-sm { padding: 76px 0 56px; }
.hero-glow { position: absolute; top: -180px; left: 50%; transform: translateX(-50%); width: 940px; height: 540px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(51,161,214,.22), transparent 70%), radial-gradient(closest-side, rgba(75,91,214,.16), transparent 70%); filter: blur(6px); }
.hero-inner { position: relative; text-align: center; max-width: 860px; }
.kicker { display: inline-block; color: var(--accent); font-weight: 600; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
.hero-sm h1 { font-size: clamp(32px, 4.6vw, 52px); }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.1vw, 20px); margin: 24px auto 34px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-title { font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 14px; }
.section-more { margin-top: 34px; }

/* Showcase image */
.section-showcase { padding: 40px 0 24px; }
.showcase { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); box-shadow: 0 40px 90px -50px rgba(51,161,214,.55), 0 20px 50px -30px rgba(0,0,0,.8); }
.showcase::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% -10%, rgba(51,161,214,.12), transparent 60%); }
.showcase img { display: block; width: 100%; height: auto; }
.showcase figcaption { padding: 14px 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); text-align: center; }

/* Credential banner (photo + badge) */
.banner { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); min-height: 340px; display: flex; align-items: center; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,17,21,.94) 0%, rgba(15,17,21,.82) 45%, rgba(20,26,40,.62) 100%); }
.banner-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 44px 48px; flex-wrap: wrap; }
.banner-badge { width: 148px; height: 148px; flex: 0 0 auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }
.banner-copy { flex: 1 1 320px; }
.banner-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.banner-copy p { color: var(--muted); font-size: 17px; margin: 12px 0 18px; max-width: 520px; }
.banner-items { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.banner-items li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); }
.banner-items svg { width: 18px; height: 18px; color: var(--accent); }

/* Footer badge */
.foot-badge { width: 96px; height: 96px; margin-top: 20px; opacity: .95; }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; margin-top: 40px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.trust-strip span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }
.trust-strip svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

/* Intro band */
.section-intro { padding: 72px 0; }
.intro-wrap { max-width: 820px; }
.intro-wrap h2 { font-size: clamp(26px, 3.4vw, 40px); }
.intro-wrap p { color: var(--muted); font-size: clamp(17px, 2vw, 21px); margin-top: 18px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 20px; }
.cards-grid { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .18s var(--ease), border-color .18s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px -18px rgba(0,0,0,.7); }
.card h3 { font-size: 18px; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(51,161,214,.12); color: var(--accent); border: 1px solid rgba(51,161,214,.28); }
.card-icon svg { width: 23px; height: 23px; }

/* ---------- Service groups ---------- */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.group { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.group-head h2 { font-size: 24px; }
.group-head p { color: var(--muted); margin: 10px 0 14px; }
.group-list { list-style: none; margin-top: 22px; display: grid; gap: 16px; }
.group-list li { display: flex; gap: 14px; }
.li-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(51,161,214,.1); color: var(--accent); border: 1px solid rgba(51,161,214,.24); }
.li-icon svg { width: 20px; height: 20px; }
.group-list strong { display: block; font-size: 15.5px; }
.group-list span { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step-n { font-family: "Space Grotesk"; font-size: 34px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.4px var(--accent); display: block; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: start; }
.split-copy p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.split-list { list-style: none; display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.split-list svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none; padding: 18px 0; font-family: "Space Grotesk"; font-weight: 500; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--accent); transition: transform .2s var(--ease); }
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-item p { color: var(--muted); font-size: 15.5px; padding: 0 0 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, rgba(51,161,214,.14), rgba(75,91,214,.14)); border: 1px solid var(--line); border-radius: 22px; padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: var(--muted); font-size: 18px; margin: 14px auto 28px; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .18s var(--ease), border-color .18s; }
a.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.contact-card h3 { font-size: 20px; margin-top: 6px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card .text-link { margin-top: auto; }
.contact-static { cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-brand .footer-logo { height: 36px; border-radius: 6px; margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 420px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--text); font-size: 15px; opacity: .85; transition: opacity .15s, color .15s; }
.foot-col a:hover { opacity: 1; color: var(--accent); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-legal p { color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .groups { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
  .nav.open { max-height: 420px; }
  .nav-link, .nav-cta { padding: 16px 24px; border-top: 1px solid var(--line); border-radius: 0; }
  .nav-cta { border-left: 0; border-right: 0; }
  .cards-grid, .steps-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover, a.contact-card:hover { transform: none; }
}
