/* ============================================================
   TECH MINDS DESIGN SYSTEM — v1.0
   techminds.my | Growth. Technology. AI.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg:       #080A0E;
  --bg2:      #0D1018;
  --bg3:      #111420;
  --sf:       #141820;
  --sf2:      #1A1F2E;
  --sf3:      #20263A;

  /* Borders */
  --br:       rgba(255,255,255,0.07);
  --br2:      rgba(255,255,255,0.13);
  --br3:      rgba(255,255,255,0.22);

  /* Text */
  --tx:       #F2F4F8;
  --tx2:      #9AA3B8;
  --tx3:      #5C6478;
  --tx4:      #3A3F52;

  /* Accent — Pillar colours */
  --ac:       #4F7EFF;   /* P1 Growth Marketing  */
  --acd:      rgba(79,126,255,0.10);
  --acb:      rgba(79,126,255,0.25);
  --gn:       #00D4AA;   /* P2 Performance Ads   */
  --gnd:      rgba(0,212,170,0.08);
  --gnb:      rgba(0,212,170,0.22);
  --pu:       #A78BFA;   /* P3 Brand & Social    */
  --pud:      rgba(167,139,250,0.10);
  --pub:      rgba(167,139,250,0.25);
  --go:       #C9A84C;   /* P4 Digital Exp.      */
  --god:      rgba(201,168,76,0.10);
  --gob:      rgba(201,168,76,0.25);
  --rd:       #FF7F7F;   /* P5 AI Transformation */
  --rdd:      rgba(255,127,127,0.10);
  --rdb:      rgba(255,127,127,0.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-serif:   'DM Serif Display', serif;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill:999px;

  /* Motion */
  --ease-fast:    150ms ease-out;
  --ease-base:    200ms ease-out;
  --ease-mod:     300ms ease-in-out;
  --ease-reveal:  0.7s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; }
button { cursor:pointer; font-family: var(--font-body); }

/* ── NAVIGATION ── */
.site-nav {
  background: rgba(8,10,14,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--br);
  padding: 0 52px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--tx);
}
.nav-logo span { color: var(--ac); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--tx3);
  transition: color var(--ease-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--tx2); }
.nav-cta {
  background: var(--ac);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--ease-fast), transform var(--ease-fast);
}
.nav-cta:hover { background: #3D6AE8; transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: var(--r-md); font-family: var(--font-body); font-weight: 500; cursor: pointer; transition: all var(--ease-base); }
.btn-primary   { background: var(--ac);  color: #fff; padding: 14px 28px; font-size: 15px; }
.btn-primary:hover { background: #3D6AE8; transform: translateY(-2px); }
.btn-ghost     { background: transparent; color: var(--tx2); border: 1px solid var(--br2); padding: 14px 28px; font-size: 15px; }
.btn-ghost:hover { color: var(--tx); border-color: var(--br3); }
.btn-sm        { padding: 8px 18px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg        { padding: 16px 36px; font-size: 16px; border-radius: 11px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill); padding: 4px 13px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border: 1px solid; }
.badge-blue   { background: var(--acd); border-color: var(--acb); color: #7AABFF; }
.badge-green  { background: var(--gnd); border-color: var(--gnb); color: var(--gn); }
.badge-purple { background: var(--pud); border-color: var(--pub); color: var(--pu); }
.badge-gold   { background: var(--god); border-color: var(--gob); color: var(--go); }
.badge-red    { background: var(--rdd); border-color: var(--rdb); color: var(--rd); }
.badge-neutral{ background: var(--sf2); border-color: var(--br2); color: var(--tx3); }

/* ── CARDS ── */
.card { background: var(--sf); border: 1px solid var(--br); border-radius: var(--r-lg); padding: 28px; transition: border-color var(--ease-base); }
.card:hover { border-color: var(--br2); }
.card-elevated { background: var(--sf); border-color: var(--br2); }

/* ── SECTION HELPERS ── */
.section { padding: 96px 52px; }
.section-alt  { background: var(--bg2); }
.section-alt2 { background: var(--bg3); }
.section-border { border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
.section-label { font-size: 11px; color: var(--ac); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; color: var(--tx); margin-bottom: 18px; }
.section-sub   { font-size: 17px; color: var(--tx2); line-height: 1.7; font-weight: 300; max-width: 560px; }
.section-title em { font-style: normal; color: var(--ac); }

/* ── GRID SYSTEMS ── */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr;           gap: 16px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr;       gap: 16px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr);     gap: 1px;  }
.grid-bento { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--br); border: 1px solid var(--br); border-radius: var(--r-lg); overflow: hidden; }

/* ── METRIC CELLS ── */
.metric-cell { background: var(--bg); padding: 40px 36px; }
.metric-num  { font-family: var(--font-display); font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.metric-lbl  { font-size: 13px; color: var(--tx3); margin-top: 10px; line-height: 1.4; max-width: 160px; }

/* ── PROGRESS ── */
.progress-wrap { height: 4px; background: var(--sf2); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }

/* ── FORM ELEMENTS ── */
.field-label { font-size: 11px; color: var(--tx3); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; display: block; margin-bottom: 8px; }
.field-input, .field-select, .field-textarea {
  width: 100%;
  background: var(--sf2);
  border: 1px solid var(--br2);
  border-radius: var(--r-md);
  padding: 13px 16px;
  color: var(--tx);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--ease-fast);
  -webkit-appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: rgba(79,126,255,0.45); }
.field-input::placeholder, .field-textarea::placeholder { color: var(--tx4); }
.field-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--ease-reveal), transform var(--ease-reveal); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--br); padding: 56px 52px 40px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 48px; }
.footer-brand { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--tx); letter-spacing: -0.5px; margin-bottom: 14px; }
.footer-brand span { color: var(--ac); }
.footer-tagline { font-size: 13px; color: var(--tx3); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 11px; color: var(--tx3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--tx2); transition: color var(--ease-fast); }
.footer-col a:hover { color: var(--tx); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--br); }
.footer-copy { font-size: 13px; color: var(--tx3); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--tx3); }
.footer-legal a:hover { color: var(--tx2); }

/* ── HERO GRID PATTERN ── */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(79,126,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(79,126,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-accent-bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.bar-blue-green { background: linear-gradient(90deg, transparent, var(--ac) 30%, var(--gn) 70%, transparent); }

/* ── UTILITY ── */
.text-accent  { color: var(--ac); }
.text-green   { color: var(--gn); }
.text-purple  { color: var(--pu); }
.text-gold    { color: var(--go); }
.text-red     { color: var(--rd); }
.text-muted   { color: var(--tx2); }
.text-faint   { color: var(--tx3); }
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
