/* TechBay — techbay.lk
   No external fonts or CDNs: the site must load inside mainland China. */
:root {
  --navy: #03214f;
  --navy-2: #0a2d63;
  --navy-deep: #021836;
  --teal: #29c3bd;
  --teal-ink: #0f7f7a;
  --gold: #fec820;
  --ink: #142033;
  --muted: #5b6878;
  --line: #e2e7ee;
  --paper: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1160px;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 17px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav .brand img { height: 30px; width: auto; }
.nav ul { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav ul a:hover { color: var(--navy); }
.nav ul a.btn-navy, .nav ul a.btn-navy:hover { color: var(--white); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 22px; border-radius: 99px; transition: transform .15s, background .15s, box-shadow .15s; border: 0; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--teal); color: var(--navy-deep); }
.btn-wa:hover { background: #3ad3cd; transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(41,195,189,.6); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 88px 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: 14px; color: rgba(255,255,255,.7); }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgba(41,195,189,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%2329c3bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* exploded phone illustration */
.phone-art { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 4/5; }
.phone-art svg { width: 100%; height: 100%; overflow: visible; }
.phone-art .layer { transform-box: fill-box; transform-origin: center; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.phone-art .l2 { animation-delay: .12s; } .phone-art .l3 { animation-delay: .24s; } .phone-art .lbl { animation: fade .6s .9s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 70px; }
.sec { padding-block: 104px; }
.sec.alt { background: var(--paper); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head .eyebrow { color: var(--teal-ink); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 14px; color: var(--navy); }
.sec-head p { color: var(--muted); font-size: 18px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cat:hover { border-color: #c5d0de; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(3,33,79,.35); }
.cat.main { grid-column: span 2; background: var(--navy); color: var(--white); border-color: var(--navy); }
.cat .ico { width: 48px; height: 48px; border-radius: 12px; background: #e9f8f7; display: grid; place-items: center; margin-bottom: 22px; }
.cat.main .ico { background: rgba(41,195,189,.16); }
.cat .ico svg { width: 26px; height: 26px; }
.cat h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; letter-spacing: -.01em; }
.cat.main h3 { color: var(--white); font-size: 24px; }
.cat p { color: var(--muted); font-size: 15.5px; }
.cat.main p { color: rgba(255,255,255,.74); }
.cat .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.cat .tags span { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.cat .ask { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 600; color: var(--teal-ink); text-decoration: none; }
.cat.main .ask { color: var(--teal); }
.cat .ask:hover { text-decoration: underline; }

/* grades */
.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.grade { padding: 26px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.grade:last-child { border-right: 0; }
.grade .rank { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.grade h3 { font-size: 19px; color: var(--navy); margin: 6px 0 2px; }
.grade .zh { font-family: var(--zh); font-size: 14px; color: var(--muted); }
.grade p { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.meter { display: flex; gap: 4px; margin-top: 18px; }
.meter i { height: 6px; flex: 1; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--teal); }
.grade.best .meter i.on { background: var(--gold); }
.grade .best-for { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink); font-weight: 600; }
.grade-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -2px; left: 0; padding-top: 14px; border-top: 2px solid var(--teal); width: 44px; font-size: 13px; font-weight: 700; color: var(--teal-ink); letter-spacing: .08em; }
.step h3 { font-size: 19px; color: var(--navy); margin: 14px 0 8px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* promise */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.promise ul { list-style: none; display: grid; gap: 4px; }
.promise li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.promise li:last-child { border-bottom: 0; }
.promise li .n { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.promise li .n svg { width: 20px; height: 20px; }
.promise li h3 { font-size: 17px; color: var(--navy); }
.promise li p { font-size: 15px; color: var(--muted); margin-top: 2px; }

/* partner band */
.partner { background: var(--navy); color: var(--white); border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.partner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(41,195,189,.28), transparent 70%); }
.partner h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0; }
.partner p { color: rgba(255,255,255,.76); }
.partner ul { list-style: none; margin-top: 20px; display: grid; gap: 8px; font-size: 15.5px; color: rgba(255,255,255,.86); }
.partner ul li::before { content: "→ "; color: var(--gold); font-weight: 700; }
.partner .box { position: relative; z-index: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.partner label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin: 0 0 6px; }
.partner input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(2,24,54,.6); color: var(--white); margin-bottom: 14px; }
.partner input::placeholder { color: rgba(255,255,255,.4); }
.partner input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.partner .box .btn { width: 100%; justify-content: center; margin-top: 4px; }
.partner .small { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 12px; text-align: center; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: block; transition: border-color .2s; background: var(--white); }
a.cc:hover { border-color: var(--teal); }
.cc .k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cc .v { font-size: 17px; font-weight: 600; color: var(--navy); margin-top: 8px; word-break: break-all; }
.cc .h { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 40px; flex-wrap: wrap; }
footer img { height: 26px; width: auto; }
footer .stripe { display: flex; height: 6px; }
footer .stripe i { display: block; }
footer a { text-decoration: none; } footer a:hover { color: var(--white); }

/* floating WhatsApp */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0,0,0,.4); transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .phone-art * { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 64px 72px; }
  .phone-art { width: min(320px, 80%); }
  .cats { grid-template-columns: 1fr 1fr; }
  .grades { grid-template-columns: 1fr 1fr; }
  .grade { border-bottom: 1px solid var(--line); }
  .steps, .contact-grid { grid-template-columns: 1fr 1fr; }
  .promise, .partner { grid-template-columns: 1fr; }
  .partner { padding: 40px 28px; }
  .nav ul li.hide-m { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .sec { padding-block: 72px; }
  .cats, .grades, .steps, .contact-grid { grid-template-columns: 1fr; }
  .cat.main { grid-column: auto; }
  .grade { border-right: 0; }
  .nav ul { gap: 14px; }
  .nav .btn { display: none; }
}
