/* ============================================================
   Techsys.my — public site stylesheet
   Palette drawn from the brand mark:
   navy #081735 · ink #0e2a5c · blue #1e7cf5 · cyan #00b4ff
   ============================================================ */

:root {
  --navy:  #081735;
  --ink:   #0e2a5c;
  --blue:  #1e7cf5;
  --cyan:  #00b4ff;
  --paper: #f5f8fd;
  --line:  #dbe6f5;
  --text:  #2b3a55;
  --muted: #61738f;
  --radius: 14px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; margin-top: 32px; }

/* ---------- Signature: pixel drift (from the logo's square cluster) ---------- */
.pixel-drift {
  position: absolute;
  top: 34px; right: 6%;
  width: 12px; height: 12px;
  background: var(--cyan);
  opacity: 0.9;
  pointer-events: none;
  box-shadow:
    26px -14px 0 -1px #1e7cf5,
    54px -30px 0 -3px #00b4ff,
    80px -12px 0 -4px #123c8a,
    18px  16px 0 -3px #1e7cf5,
    48px   6px 0 -5px #00b4ff,
    -20px -22px 0 -4px #1e7cf5,
    -44px  -6px 0 -6px #00b4ff,
    104px -34px 0 -5px #1e7cf5;
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  .pixel-drift { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 124, 245, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,124,245,0.45); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); padding: 9px 20px; }
.btn-outline:hover { background: var(--blue); color: #fff; }

.link-arrow { font-weight: 600; font-family: var(--font-display); }
.link-arrow::after { content: ' \2192'; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem; color: #fff;
}
.brand em { font-style: normal; color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: rgba(255,255,255,0.82);
  font-weight: 500; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.active { color: var(--cyan); }
.site-nav .nav-portal { color: var(--cyan); border-color: var(--cyan); }
.site-nav .nav-portal:hover { background: var(--cyan); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0,180,255,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 55%, #0d2a63);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding: 88px 24px 96px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline, .footer-tagline {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.hero-tagline i, .footer-tagline i, .page-hero .lead i { color: var(--cyan); font-style: normal; }
.hero .lead { color: rgba(255,255,255,0.78); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art img {
  width: 78%; margin: 0 auto;
  filter: drop-shadow(0 24px 44px rgba(0, 140, 255, 0.35));
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 55%, #0d2a63);
  color: #fff;
  padding: 70px 0 64px;
  overflow: hidden;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,0.78); }

/* ---------- Sections & cards ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 42px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card-grid.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.service-card { position: relative; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,42,92,0.12); }
.service-card.large { padding: 34px; }

/* ---------- Feature (eRPH) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.feature-grid h2 { margin-bottom: 14px; }
.feature-grid > div > p { color: var(--muted); margin-bottom: 20px; }
.check-list { margin-bottom: 28px; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  border-radius: 3px;
}
.feature-panel {
  background: linear-gradient(160deg, var(--navy), #0d2a63);
  border-radius: var(--radius);
  padding: 34px;
  color: #fff;
}
.panel-chip {
  display: inline-block;
  background: rgba(0,180,255,0.15);
  color: var(--cyan);
  border: 1px solid rgba(0,180,255,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 24px;
}
.panel-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel-stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  background: linear-gradient(100deg, var(--cyan), #7fd4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel-stat-row span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  border-radius: var(--radius);
  color: #fff;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; }

/* ---------- Services page ---------- */
.pricing-note { max-width: 760px; }
.pricing-note > p { color: var(--muted); margin-bottom: 28px; }
.process-steps { margin: 0 0 30px 0; padding-left: 0; counter-reset: step; list-style: none; }
.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 58px;
}
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  font-size: 1.2rem;
}
.process-steps li::after {
  content: '';
  position: absolute; left: 14px; top: 34px; bottom: 4px;
  width: 2px; background: var(--line);
}
.process-steps li:last-child::after { display: none; }
.process-steps strong { display: block; font-family: var(--font-display); color: var(--ink); }
.process-steps span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Case study ---------- */
.case-study { margin-bottom: 56px; }
.case-head h2 { margin: 14px 0 18px; }
.case-overview { color: var(--muted); max-width: 820px; margin-bottom: 34px; }
.case-features { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; }
.about-copy p { margin-bottom: 18px; font-size: 1.05rem; }
.about-aside { display: grid; gap: 18px; align-content: start; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-form { padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.cf-turnstile { margin: 4px 0 20px; }

.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.95rem; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-success { background: #e7f8ef; border: 1px solid #9adcba; color: #135f38; }
.alert-error   { background: #fdeeee; border: 1px solid #f0b4b4; color: #8a2323; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; }
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 60;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 42%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 26px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 32px 26px; }
}
