/* ---------- Brand colours: change here ---------- */
:root {
  --ink: #0f172a;          /* near-black slate */
  --slate: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --accent: #14b8a6;       /* teal */
  --accent-2: #2dd4bf;
  --wa: #25d366;
  --wa-dark: #128c4a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 12px 20px; border: 1.5px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-wa { background: var(--wa); color: #06301a; box-shadow: 0 6px 18px rgba(37, 211, 102, .28); }
.btn-wa:hover { background: #2fe174; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.wa-ico { width: 20px; height: 20px; }
.btn-sm .wa-ico { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(15, 23, 42, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-size: 19px; font-weight: 800; letter-spacing: .06em; }
.brand-text small { font-size: 9.5px; font-weight: 600; letter-spacing: .32em; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--slate); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(45, 212, 191, .22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(100, 116, 139, .35), transparent 60%),
    linear-gradient(160deg, #1e293b, #0f172a 60%);
}
.hero::before { /* subtle grid */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow.dark { color: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
.hero h1 span { color: var(--accent-2); }
.lead { font-size: 18.5px; color: #cbd5e1; max-width: 560px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #94a3b8; font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--accent-2); font-weight: 800; margin-right: 7px; }

.term { background: rgba(2, 6, 23, .72); border: 1px solid rgba(148, 163, 184, .22); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(148, 163, 184, .16); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.term-bar i:first-child { background: #f87171; } .term-bar i:nth-child(2) { background: #fbbf24; } .term-bar i:nth-child(3) { background: #34d399; }
.term-bar span { margin-left: 8px; font-size: 12.5px; color: #94a3b8; font-family: ui-monospace, Consolas, monospace; }
.term pre { margin: 0; padding: 18px 20px 22px; font: 13.5px/1.9 ui-monospace, "Cascadia Code", Consolas, monospace; color: #e2e8f0; white-space: pre-wrap; }
.term b { color: var(--accent-2); font-weight: 600; }
.term em { color: #34d399; font-style: normal; }
.term small { color: #94a3b8; font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17.5px; margin: 14px 0 0; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 36px rgba(15, 23, 42, .1); }
.card-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #334155, #0f172a); margin-bottom: 18px; }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--slate); margin: 10px 0 18px; flex: 1; }
.card-link { color: var(--wa-dark); font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* Technologies */
.tech-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tech-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tech-group h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #f1f5f9; border: 1px solid var(--line); color: var(--slate); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--slate); margin: 8px 0 0; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why-list b { display: block; font-size: 18px; margin-bottom: 6px; }
.why-list b::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--accent-2); margin-bottom: 12px; }
.why-list span { color: #94a3b8; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--slate); }

/* Contact */
.contact { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.contact p { color: #cbd5e1; margin: 10px 0 0; font-size: 17.5px; max-width: 520px; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone { color: #cbd5e1; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.phone:hover { color: #fff; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; }
.brand.small .brand-text b { font-size: 15px; }
.brand.small .brand-text small { font-size: 8px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(18, 140, 74, .45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero-card { display: none; }
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .cards, .tech-groups, .why-list { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .nav .btn-sm { padding: 9px; border-radius: 50%; }
  .brand-text b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .wa-float { transition: none; }
}
