/* ===================================================================
   Weblithic — theme derived from logo (electric blue -> cyan on navy)
   =================================================================== */
:root {
  --navy-900: #061431;
  --navy-800: #0a1f4d;
  --navy-700: #10285e;
  --blue: #0078f0;
  --blue-600: #0a84ff;
  --blue-400: #3ba0ff;
  --cyan: #00d4e0;
  --cyan-400: #22d3ee;
  --grad: linear-gradient(135deg, #0a84ff 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(10,132,255,.12), rgba(34,211,238,.12));

  --ink: #0d1b34;
  --muted: #5b6b86;
  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-alt: #f4f8ff;
  --white: #ffffff;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(10,40,94,.06);
  --shadow: 0 12px 40px rgba(10,40,94,.10);
  --shadow-lg: 0 24px 60px rgba(10,40,94,.16);
  --container: 1160px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-alt: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-alt);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(10,132,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10,132,255,.45); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-block; font-family: var(--font); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  background: var(--grad-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow-light { color: #bfe6ff; background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand-logo { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 30px; list-style: none; }
.nav-list a { font-family: var(--font); font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad); transition: width .25s; }
.nav-list a:hover { color: var(--blue); }
.nav-list a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px; padding: 0 22px;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobile-nav.open { max-height: 460px; padding: 12px 22px 24px; }
.mobile-nav a { font-family: var(--font); font-weight: 600; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: 0; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(10,132,255,.16), transparent 60%),
    radial-gradient(55% 55% at 90% 20%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(180deg, #f4f9ff, #ffffff);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
.hero-sub { font-size: 1.12rem; color: var(--muted); margin: 20px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.badge-dot { font-size: .9rem; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.badge-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.hero-visual { position: relative; min-height: 320px; }
.glass-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #cfe4ff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.code-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-dots span:nth-child(2){ background:#febc2e; } .code-dots span:nth-child(3){ background:#28c840; }
.glass-card pre { font-family: 'Courier New', monospace; font-size: .92rem; line-height: 1.7; color: #7fd7ff; white-space: pre-wrap; }
.stat-chip {
  position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 14px;
  padding: 12px 16px; display: flex; flex-direction: column; border: 1px solid var(--line);
}
.stat-chip strong { font-family: var(--font); font-size: 1.3rem; color: var(--blue); }
.stat-chip span { font-size: .78rem; color: var(--muted); }
.stat-chip.float-b { right: -10px; top: 8px; }
.stat-chip.float-c { left: -14px; bottom: 10px; }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 5s ease-in-out infinite .4s; }
.float-c { animation: floaty 7s ease-in-out infinite .8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* ---------- Stats bar ---------- */
.stats { background: var(--navy-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 44px 22px; text-align: center; }
.stat-num { font-family: var(--font); font-weight: 800; font-size: clamp(2rem,4vw,2.8rem); display: block; }
.stat-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: #9fb4d6; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); transition: transform .28s, box-shadow .28s, border-color .28s;
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:var(--grad); transform: scaleX(0); transform-origin:left; transition: transform .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: #fff; background: var(--grad); margin-bottom: 18px;
  font-family: var(--font);
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.project {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project-media img { transform: scale(1.06); }
.project-body { padding: 24px 26px 28px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: var(--grad-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.project-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips span { font-size: .78rem; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); padding: 4px 12px; border-radius: 999px; }
.link-arrow { font-family: var(--font); font-weight: 600; color: var(--blue); }
.link-arrow:hover { color: var(--cyan); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step-num { font-family: var(--font); font-weight: 800; font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.about-logo { max-width: 210px; margin: 0 auto 24px; }
.about-facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about-facts li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about-facts li:last-child { border-bottom: 0; }
.about-facts span { color: var(--muted); font-size: .9rem; }
.about-facts strong { font-family: var(--font); font-size: .95rem; text-align: right; }
.about-content h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill { font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--blue); border: 1px solid var(--blue-400); padding: 8px 16px; border-radius: 999px; }

/* ---------- Tech ---------- */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin: 0 auto; }
.tech-grid span {
  font-family: var(--font); font-weight: 600; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 12px 22px; border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: transform .2s, color .2s, border-color .2s;
}
.tech-grid span:hover { transform: translateY(-4px); color: var(--blue); border-color: var(--blue-400); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; }
.testi::before { content: "\201C"; font-family: Georgia, serif; font-size: 4rem; color: var(--blue-400); opacity: .3; position: absolute; top: 6px; right: 20px; line-height: 1; }
.testi p { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; }
.testi footer { display: flex; flex-direction: column; }
.testi footer strong { font-family: var(--font); }
.testi footer span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { font-family: var(--font); font-weight: 600; font-size: 1.05rem; padding: 18px 30px 18px 0; cursor: pointer; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: transform .25s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.contact-info > p { color: #9fb4d6; margin-bottom: 30px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-ico { font-size: 1.3rem; width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); border-radius: 12px; }
.contact-list strong { display: block; font-family: var(--font); margin-bottom: 2px; }
.contact-list div { color: #cfe0f7; font-size: .96rem; }
.contact-list a { color: #cfe0f7; }
.contact-list a:hover { color: #fff; }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-alt); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(10,132,255,.15); }
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: .95rem; font-weight: 500; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb4d6; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-word { font-family: var(--font); font-weight: 800; font-size: 1.7rem; color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .95rem; max-width: 320px; }
.footer-brand .gst { margin-top: 16px; font-size: .9rem; }
.footer-brand .gst strong { color: #cfe0f7; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: .94rem; margin-bottom: 10px; color: #9fb4d6; transition: color .2s; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 22px 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 10px 26px rgba(10,132,255,.4); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-card { max-width: 460px; }
}
@media (max-width: 760px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .section { padding: 62px 0; }
  .hero { padding: 46px 0 70px; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-chip.float-b, .stat-chip.float-c { position: static; margin: 12px 0 0; display: inline-flex; }
  .hero-visual { min-height: auto; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
