/* ============================================================
   TekyCode — Modern Website Stylesheet
   ============================================================ */
:root {
  --ink: #0a0e27;
  --ink-2: #101538;
  --ink-3: #1a2050;
  --primary: #4338ca;
  --primary-2: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --text: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --bg-soft: #f6f8fd;
  --white: #ffffff;
  --grad: linear-gradient(120deg, #4338ca, #6366f1 55%, #8b5cf6);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(16, 24, 64, 0.08);
  --shadow-lg: 0 24px 70px rgba(16, 24, 64, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; font-family: 'Inter', sans-serif;
  transition: all .3s ease; border: none; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(99, 102, 241, .45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--primary); transform: translateY(-3px); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation (light glass — navy logo friendly) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .35s ease; padding: 18px 0;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 14, 39, .07);
}
.nav.scrolled {
  background: rgba(255, 255, 255, .96);
  padding: 12px 0; box-shadow: 0 8px 30px rgba(16, 24, 64, .1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav-links a { color: #475569; font-size: 15px; font-weight: 500; transition: color .25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px;
  border-radius: 3px; background: var(--grad);
}
.nav-cta { padding: 11px 24px; font-size: 14px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; background: rgba(10,14,39,.06); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .3s; }

/* ---------- Page hero (inner pages — light, matches nav) ---------- */
.page-hero {
  position: relative; background: linear-gradient(180deg, #eef1fb 0%, #f8faff 70%, #ffffff 100%);
  color: var(--ink); padding: 190px 0 110px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(600px 380px at 5% 90%, rgba(139,92,246,.1), transparent 60%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(10,14,39,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,14,39,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}
.page-hero .orb { opacity: .16; }
.page-hero .container { position: relative; z-index: 2; }
.crumb { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); font-weight: 600; margin-bottom: 18px; }
.page-hero h1 { color: var(--ink); font-size: clamp(38px, 5.5vw, 62px); margin-bottom: 18px; }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 18px; }

/* ---------- Section scaffolding ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.kicker::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); }
.section-dark .kicker { color: #a5b4fc; }
.h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.section-dark .h2, .section-dark h3 { color: #fff; }
.lead { font-size: 17px; color: var(--muted); max-width: 640px; }
.section-dark .lead { color: rgba(255,255,255,.65); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all .35s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::after {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--grad); opacity: 0; transition: opacity .35s;
}
.card:hover::after { opacity: 1; }
.card h3 { font-size: 19px; margin: 20px 0 10px; }
.card p { font-size: 15px; color: var(--muted); }
.icon-badge {
  width: 54px; height: 54px; border-radius: 15px; background: var(--grad);
  display: grid; place-items: center; font-size: 24px; color: #fff;
  box-shadow: 0 10px 24px rgba(99,102,241,.35);
}

/* ---------- Services tabs (home) ---------- */
.svc-tabs {
  position: relative; display: flex; gap: 6px; padding: 6px;
  width: fit-content; margin: 0 auto 44px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(16, 24, 64, .07);
}
.svc-pill {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: var(--grad); box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
  transition: transform .45s cubic-bezier(.65, .05, .36, 1), width .45s cubic-bezier(.65, .05, .36, 1);
}
.svc-tab {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--muted); padding: 12px 26px; border-radius: 999px; transition: color .3s ease;
}
.svc-tab.active { color: #fff; }
.svc-tab:hover:not(.active) { color: var(--primary); }

.svc-panel { display: none; }
.svc-panel.active { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-item {
  position: relative; overflow: hidden; display: block; padding: 26px 22px 24px;
  background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .38s ease, box-shadow .38s ease;
}
.svc-item::before {
  content: ''; position: absolute; inset: 0; background: var(--grad);
  opacity: 0; transition: opacity .38s ease;
}
.svc-item > * { position: relative; z-index: 1; }
.svc-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .13), rgba(139, 92, 246, .13));
  font-size: 22px; margin-bottom: 15px; transition: transform .38s ease, background .38s ease;
}
.svc-item h3 { font-size: 16px; margin-bottom: 6px; transition: color .38s ease; }
.svc-item p { font-size: 13px; color: var(--muted); line-height: 1.55; transition: color .38s ease; }
.svc-go {
  position: absolute; top: 24px; right: 22px; font-size: 17px; color: #fff;
  opacity: 0; transform: translateX(-8px); transition: opacity .38s ease, transform .38s ease;
}
.svc-item:hover { transform: translateY(-7px); box-shadow: 0 22px 48px rgba(67, 56, 202, .3); }
.svc-item:hover::before { opacity: 1; }
.svc-item:hover .svc-ico { background: rgba(255, 255, 255, .2); transform: scale(1.08) rotate(-7deg); }
.svc-item:hover h3 { color: #fff; }
.svc-item:hover p { color: rgba(255, 255, 255, .82); }
.svc-item:hover .svc-go { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .svc-panel.active { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .svc-panel.active { grid-template-columns: 1fr; gap: 14px; }
  .svc-tabs { width: 100%; }
  .svc-tab { flex: 1; padding: 12px 10px; font-size: 13.5px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 36px 20px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat .num { font-family: 'Space Grotesk'; font-size: 44px; font-weight: 700; color: #fff; }
.stat .num i { font-style: normal; background: linear-gradient(90deg,#a5b4fc,#c4b5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 6px; }

/* ---------- Process timeline ---------- */
.process {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  position: relative; counter-reset: step;
}
/* the rail the nodes sit on */
.process::before {
  content: ''; position: absolute; z-index: 0;
  top: 30px; left: calc(100% / 14); right: calc(100% / 14); height: 2px;
  background: linear-gradient(90deg, #4338ca, #6366f1 50%, #a855f7);
  opacity: .3;
}
.step {
  position: relative; z-index: 1; text-align: center; padding: 0 12px;
  transition: transform .35s ease;
}
.step .n {
  width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px;
  box-shadow: 0 8px 22px rgba(67, 56, 202, .26);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* hue steps forward with the process — indigo to violet */
.step:nth-child(1) .n { background: #4338ca; }
.step:nth-child(2) .n { background: #4f46e5; }
.step:nth-child(3) .n { background: #5b52e8; }
.step:nth-child(4) .n { background: #6366f1; }
.step:nth-child(5) .n { background: #7c5cf0; }
.step:nth-child(6) .n { background: #8b5cf6; }
.step:nth-child(7) .n { background: #a855f7; }
.step:hover { transform: translateY(-6px); }
.step:hover .n { transform: scale(1.1); box-shadow: 0 14px 34px rgba(99, 102, 241, .45); }
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* tablet & mobile — the rail turns vertical */
@media (max-width: 1024px) {
  .process { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .process::before {
    top: 12px; bottom: 12px; left: 29px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, #4338ca, #6366f1 50%, #a855f7);
  }
  .step {
    display: grid; grid-template-columns: 60px 1fr; align-items: start;
    gap: 0 22px; text-align: left; padding: 0 0 34px;
  }
  .step:last-child { padding-bottom: 0; }
  .step .n { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
  .step h4 { grid-column: 2; grid-row: 1; align-self: center; }
  .step p { grid-column: 2; grid-row: 2; }
  .step:hover { transform: none; }
}

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink); transition: .3s;
}
.chip:hover { border-color: var(--primary-2); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .img-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.split .img-wrap:hover img { transform: scale(1.04); }
.img-tag {
  position: absolute; left: 18px; bottom: 18px; padding: 10px 18px; border-radius: 12px;
  background: rgba(10,14,39,.78); backdrop-filter: blur(8px); color: #fff;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}

/* ---------- Feature list ---------- */
.feature-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .tick {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #eef0ff;
  color: var(--primary); display: grid; place-items: center; font-size: 14px; font-weight: 800; margin-top: 3px;
}
.feature-row h4 { font-size: 17px; margin-bottom: 4px; }
.feature-row p { font-size: 14.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; background: var(--ink-2); padding: 74px 60px; text-align: center; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 15% 20%, rgba(99,102,241,.4), transparent 60%),
    radial-gradient(500px 300px at 85% 80%, rgba(139,92,246,.35), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.65); margin-bottom: 32px; max-width: 560px; margin-inline: auto; }

/* ---------- Values ---------- */
.value-num { font-family: 'Space Grotesk'; font-weight: 700; font-size: 14px; color: var(--primary-2); letter-spacing: .15em; }

/* ---------- Projects ---------- */
.project-card { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: .35s; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card .thumb { height: 250px; overflow: hidden; position: relative; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .thumb img { transform: scale(1.06); }
.project-card .tag {
  position: absolute; top: 16px; left: 16px; padding: 7px 16px; border-radius: 999px;
  background: rgba(10,14,39,.8); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.project-card .body { padding: 28px; }
.project-card h3 { font-size: 21px; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project-card .meta span { font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--bg-soft); color: var(--primary); }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: .3s; }
.quote-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.quote-card .stars { color: #f59e0b; letter-spacing: 3px; margin-bottom: 16px; }
.quote-card p { font-size: 15px; color: var(--text); margin-bottom: 22px; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: 'Space Grotesk'; }
.quote-card .who b { display: block; color: var(--ink); font-size: 15px; }
.quote-card .who small { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; gap: 20px; align-items: flex-start; transition: .3s; }
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.contact-card h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-card .val { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.contact-card .val a:hover { color: var(--primary); }

.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: 'Inter'; font-size: 15px; color: var(--ink); background: var(--bg-soft);
  transition: .25s; outline: none; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.map-frame { border: 0; width: 100%; height: 420px; border-radius: 24px; box-shadow: var(--shadow); filter: grayscale(.2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk'; font-size: 20px; font-weight: 600; color: rgba(255,255,255,.4); white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: '✦'; color: var(--primary-2); font-size: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Footer (light — navy logo friendly) ---------- */
footer { background: var(--bg-soft); color: var(--muted); padding: 80px 0 0; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.foot-grid h4 { color: var(--ink); font-size: 16px; margin-bottom: 20px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-grid a { font-size: 14.5px; transition: color .25s; }
.foot-grid a:hover { color: var(--primary); }
.foot-brand p { font-size: 14.5px; margin: 18px 0 24px; max-width: 300px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; background: #e9edf7;
  display: grid; place-items: center; font-size: 16px; transition: .3s; color: var(--ink);
}
.socials a:hover { background: var(--grad); color: #fff; transform: translateY(-4px); }
.foot-bottom { border-top: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--primary); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 70px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 54px 26px; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 110px 8% 40px;
    background: rgba(255,255,255,.98); flex-direction: column; align-items: flex-start; gap: 24px;
    transform: translateY(-100%); transition: transform .4s ease; z-index: -1;
    box-shadow: 0 20px 50px rgba(16,24,64,.15);
  }
  .nav-links.open { transform: none; }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  .page-hero { padding: 150px 0 80px; }
}

/* ============================================================
   v2 — Techy upgrade: logo, orbs, terminal, mono accents, GSAP
   ============================================================ */
.logo-img { height: 34px; width: auto; display: block; }
footer .logo-img { height: 30px; }
@media (max-width: 720px) { .logo-img { height: 28px; } }

.mono { font-family: 'JetBrains Mono', monospace; }

/* Glowing gradient orbs (GSAP-animated) */
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; will-change: transform; }
.orb-1 { width: 420px; height: 420px; background: #4338ca; top: -120px; right: 8%; }
.orb-2 { width: 340px; height: 340px; background: #8b5cf6; bottom: -80px; left: 4%; }
.orb-3 { width: 240px; height: 240px; background: #22d3ee; top: 40%; left: 42%; opacity: .25; }

/* Terminal window */
.terminal {
  background: rgba(8, 11, 32, .92); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.55);
  backdrop-filter: blur(10px); font-family: 'JetBrains Mono', monospace;
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.terminal-bar .dot-r, .terminal-bar .dot-y, .terminal-bar .dot-g { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .dot-r { background: #ff5f57; } .terminal-bar .dot-y { background: #febc2e; } .terminal-bar .dot-g { background: #28c840; }
.terminal-bar .title { margin-left: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.terminal-body { padding: 24px 22px 28px; font-size: 13.5px; line-height: 2.05; min-height: 330px; }
.terminal-body .ln { display: block; white-space: pre-wrap; color: #c7d0f0; }
.t-p { color: #34d399; } /* prompt */
.t-c { color: #6366f1; } /* command */
.t-k { color: #c084fc; } /* keyword */
.t-s { color: #fbbf24; } /* string */
.t-m { color: rgba(255,255,255,.45); } /* muted */
.t-ok { color: #34d399; }
.cursor { display: inline-block; width: 9px; height: 17px; background: #a5b4fc; vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Techy kicker prefix */
.kicker::after { content: '</>'; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: .55; }

/* Hero badge mono */
.hero-badge { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }

/* Card icon glow on hover */
.card:hover .icon-badge { box-shadow: 0 0 0 6px rgba(99,102,241,.14), 0 10px 30px rgba(99,102,241,.5); }

/* Split-text line wrappers for GSAP hero animation */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; will-change: transform; }

/* ---------- AI chat widget ---------- */
.tc-chat { position: fixed; right: 24px; bottom: 24px; z-index: 999; font-family: 'Inter', system-ui, sans-serif; }
.tc-chat-toggle {
  width: 64px; height: 64px; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--primary); font-size: 22px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 14px 34px rgba(67, 56, 202, .38);
  transition: transform .3s ease, box-shadow .3s ease;
  animation: tc-bob 3.4s ease-in-out infinite;
}
@keyframes tc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.tc-chat-toggle-open { display: block; width: 44px; height: 44px; }
.tc-chat-toggle:hover { transform: scale(1.07); box-shadow: 0 18px 42px rgba(99, 102, 241, .5); }
.tc-chat-toggle-close { display: none; }
.tc-chat.is-open .tc-chat-toggle-open { display: none; }
.tc-chat.is-open .tc-chat-toggle-close { display: block; font-size: 20px; }

/* An author-level `display` beats the browser's [hidden] rule, so the panel
   must be told explicitly to disappear when closed. */
.tc-chat-panel[hidden] { display: none; }
.tc-chat-panel {
  /* padding:0 defends against the global `section { padding: 96px 0 }` rule */
  position: absolute; right: 0; bottom: 76px; padding: 0; width: min(380px, calc(100vw - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 20px; box-shadow: 0 28px 70px rgba(16, 24, 64, .28);
  animation: tc-rise .28s cubic-bezier(.2, .8, .3, 1);
}
@keyframes tc-rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- the mascot ---- */
.tc-bot { width: 100%; height: 100%; display: block; overflow: visible; }
.tc-bot-eyes { transform-box: fill-box; transform-origin: center; animation: tc-wink 5s infinite; }
@keyframes tc-wink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }

.tc-chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--grad); color: #fff; }
.tc-chat-face { width: 46px; height: 46px; flex: none; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .17); }
.tc-chat-who strong { display: flex; align-items: center; gap: 7px; font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #fff; }
.tc-chat-head small { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.tc-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }

/* ---- message rows: the face sits beside what it says ---- */
.tc-row { display: flex; align-items: flex-end; gap: 8px; }
.tc-row-user { justify-content: flex-end; }
.tc-av { width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: 0 3px 10px rgba(67, 56, 202, .22); }
.tc-av .tc-bot-eyes { animation-duration: 6.5s; }

.tc-chat-log { flex: 1; min-height: 210px; max-height: 46vh; overflow-y: auto; padding: 18px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.tc-msg { max-width: 85%; padding: 11px 14px; border-radius: 15px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; animation: tc-pop .25s ease; }
@keyframes tc-pop { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.tc-msg-assistant { background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.tc-msg-user { background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }

.tc-typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.tc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); opacity: .4; animation: tc-blink 1.3s infinite; }
.tc-typing span:nth-child(2) { animation-delay: .18s; }
.tc-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes tc-blink { 0%, 60%, 100% { opacity: .28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.tc-chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px; background: var(--bg-soft); }
.tc-chat-chips:not(:empty) { padding-bottom: 14px; }
.tc-chip { border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; transition: .25s; }
.tc-chip:hover { background: var(--primary); color: #fff; border-color: transparent; }

.tc-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.tc-chat-input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 14px; color: var(--ink); outline: none; transition: border-color .25s; }
.tc-chat-input:focus { border-color: var(--primary-2); }
.tc-chat-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 17px; cursor: pointer; transition: transform .25s, opacity .25s; }
.tc-chat-send:hover:not(:disabled) { transform: scale(1.08); }
.tc-chat-input:disabled, .tc-chat-send:disabled { opacity: .55; cursor: not-allowed; }

.tc-chat-foot { background: #fff; padding: 0 14px 12px; }
.tc-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 14px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600;
  color: #128c4a; background: #eafaf0; border: 1px solid #b7ecca; border-radius: 12px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.tc-wa:hover { background: #25d366; border-color: #25d366; color: #fff; transform: translateY(-1px); }
.tc-wa svg { flex: none; }
/* Pulses when the AI can't help or the visitor asks for a person. */
.tc-chat.tc-needs-human .tc-wa { animation: tc-wa-pulse 1.5s ease 3; }
@keyframes tc-wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
  50%      { box-shadow: 0 0 0 7px rgba(37, 211, 102, .22); }
}
.tc-chat-note { padding: 9px 2px 0; font-size: 11px; line-height: 1.5; color: var(--muted); background: #fff; text-align: center; }
.tc-chat-note a { color: var(--primary); font-weight: 500; }

@media (max-width: 480px) {
  .tc-chat { right: 16px; bottom: 16px; }
  .tc-chat-panel { position: fixed; right: 12px; left: 12px; bottom: 88px; width: auto; }
  .tc-chat-log { max-height: 52vh; }
}

/* ---------- Services mega menu ---------- */
.has-mega { position: relative; }
.has-mega > a { display: inline-flex; align-items: center; gap: 5px; }
.chev { font-size: 10px; transition: transform .3s ease; }
.has-mega:hover > a .chev, .has-mega:focus-within > a .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, 10px);
  width: 620px; padding: 24px 26px 18px; border-radius: 18px; background: #fff;
  box-shadow: 0 26px 70px rgba(16, 24, 64, .18); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, transform .28s ease;
}
/* keeps the pointer from falling through the gap between tab and panel */
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.mega-col h5 {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 10px 10px;
}
.mega-col a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  font-size: 14px; color: var(--text); transition: background .2s ease, color .2s ease;
}
.mega-col a:hover { background: var(--bg-soft); color: var(--primary); }
.mega-ico { font-size: 15px; width: 20px; text-align: center; }
.mega-all {
  display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  text-align: center; font-size: 13.5px; font-weight: 600; color: var(--primary);
}
.mega-all:hover .arrow { transform: translateX(4px); }
.mega-all .arrow { display: inline-block; transition: transform .3s ease; }

/* ---------- Service sub-pages ---------- */
.svc-hero-ico {
  width: 68px; height: 68px; border-radius: 20px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 32px; margin-bottom: 22px;
  box-shadow: 0 16px 36px rgba(99, 102, 241, .35);
}
.svc-hero .crumb a { color: var(--primary); }
.svc-hero .crumb a:hover { text-decoration: underline; }
.svc-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.svc-lead p { font-size: 17px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.svc-tech h3 { font-size: 17px; margin-bottom: 18px; }
.container.narrow { width: min(820px, 92%); }

.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; transition: .3s; }
.svc-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-step .n {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  margin-bottom: 16px;
}
.svc-step h4 { font-size: 16px; margin-bottom: 8px; }
.svc-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

a.card { display: block; color: inherit; }
.svc-more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--primary); }
.svc-more .arrow { display: inline-block; transition: transform .3s ease; }
a.card:hover .svc-more .arrow { transform: translateX(5px); }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px; transition: border-color .25s ease;
}
.faq details[open] { border-color: var(--primary-2); }
.faq summary {
  cursor: pointer; list-style: none; font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--ink); display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform .25s ease; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.7; }

@media (max-width: 1024px) {
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .svc-steps { grid-template-columns: 1fr; }
  /* inside the mobile drawer the menu sits inline rather than floating */
  .mega {
    position: static; width: auto; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 4px 0 0; background: transparent;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .has-mega.open .mega { max-height: 900px; }
  .mega-cols { grid-template-columns: 1fr; gap: 6px; }
  .mega-col h5 { margin-top: 12px; }
  .mega-all { text-align: left; }
}

/* ---------- Social icons ---------- */
.socials a.soc { color: var(--ink); }
.socials a.soc svg { display: block; }
.socials a.soc:hover { color: #fff; transform: translateY(-4px); }
.socials a.soc-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888); }
.socials a.soc-facebook:hover  { background: #1877f2; }
.socials a.soc-linkedin:hover  { background: #0a66c2; }
.socials a.soc-x:hover         { background: #0a0e27; }
.socials a.soc-mail:hover      { background: var(--grad); }
/* Links that have not been set yet look present but do nothing. */
.socials a[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.socials a[aria-disabled="true"]:hover { background: #e9edf7; color: var(--ink); transform: none; }
