/* ──────────────────────────────────────────────────────────────
   MITEC website — LIGHT theme (self-contained, portable)
   A bright, premium, image-led system in the KLCC mould, carrying
   MITEC's display type + the vibrant gradient family as accents.
   Warm-paper canvas · near-black ink · black pill CTAs · gold accent.
   ────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300..700&family=Inter:opsz,wght@14..32,300..700&display=swap');

:root {
  /* Families */
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-feature-body: 'cv01', 'cv05', 'cv09', 'cv11', 'ss03', 'ss07';

  /* Light surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f5f1;        /* warm paper — alternating section ground */
  --bg-ink: #14130f;         /* near-black premium band / footer */
  --surface: #ffffff;
  --surface-soft: #f6f5f1;

  /* Ink */
  --ink: #16140f;            /* warm near-black */
  --ink-muted: #6c6a61;
  --ink-soft: #9a978d;
  --on-ink: #ffffff;         /* text on near-black surfaces */
  --on-ink-muted: #b6b2a6;

  /* Lines */
  --line: #e8e5dd;
  --line-strong: #d9d5ca;
  --line-on-ink: rgba(255,255,255,0.12);

  /* Accent — gold (songket warmth) + the brand blue for links */
  --accent: #b4892f;
  --accent-deep: #8f6a1f;
  --link: #0d6ad6;
  --success: #2f7d52;

  /* Brand gradient family (kept as vibrant feature accents) */
  --gradient-violet: radial-gradient(120% 120% at 20% 12%, #8a6cff 0%, #6a4cf5 45%, #4327c4 100%);
  --gradient-orange: radial-gradient(120% 120% at 22% 18%, #ffb25e 0%, #ff7a3d 48%, #e0491f 100%);
  --gradient-coral: radial-gradient(120% 120% at 78% 18%, #ff8aa0 0%, #ff5577 48%, #d62f5c 100%);
  --gradient-gold: radial-gradient(120% 120% at 25% 15%, #e9c87a 0%, #c79a3f 30%, #b4892f 60%, #7d5a18 100%);

  /* Radius */
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 22px; --radius-xxl: 32px; --radius-pill: 100px; --radius-full: 9999px;

  /* Spacing — fluid section rhythm, scales 320px → ultrawide */
  --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 20px;
  --space-xl: 30px; --space-xxl: 44px;
  --space-section: clamp(72px, 9vw, 152px);
  --space-block: clamp(40px, 5vw, 80px);
  /* Full-width container: wide cap, fluid gutters that hug the edge on phones */
  --container-max: 1680px;
  --container-gutter: clamp(20px, 4.5vw, 76px);

  /* Type scale — fluid, with higher ceilings for large displays */
  --type-display-xxl: clamp(44px, 8.4vw, 136px);
  --type-display-xl: clamp(38px, 6.4vw, 96px);
  --type-display-lg: clamp(31px, 4.8vw, 66px);
  --type-display-md: clamp(24px, 2.8vw, 36px);
  --type-headline: clamp(20px, 1.8vw, 24px);
  --type-subhead: clamp(19px, 1.7vw, 22px);
  --type-body-lg: clamp(17px, 1.3vw, 19px);
  --type-body: 16px;
  --type-body-sm: 14px;
  --type-caption: 13px;
  --type-micro: 12px;

  /* Elevation (soft, light-mode) */
  --shadow-sm: 0 1px 2px rgba(20,18,12,0.05), 0 2px 6px rgba(20,18,12,0.05);
  --shadow-md: 0 18px 44px -22px rgba(20,18,12,0.26);
  --shadow-lg: 0 36px 80px -36px rgba(20,18,12,0.34);
  --edge: inset 0 0 0 1px var(--line);
  --glow-violet: 0 30px 70px -28px rgba(106,76,245,0.40);
  --glow-orange: 0 30px 70px -28px rgba(255,122,61,0.38);
  --glow-gold: 0 30px 70px -28px rgba(180,137,47,0.40);

  --ring-focus: 0 0 0 1px rgba(13,106,214,0.55), 0 0 0 4px rgba(13,106,214,0.15);
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-feature-settings: var(--font-feature-body);
  font-size: var(--type-body); line-height: 1.5; letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: rgba(180,137,47,0.22); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* ── Type classes ─────────────────────────────────────────────── */
.t-display-xxl, .t-display-xl, .t-display-lg, .t-display-md {
  font-family: var(--font-display); font-weight: 500; color: var(--ink); text-wrap: balance;
}
.t-display-xxl { font-size: var(--type-display-xxl); line-height: 0.92; letter-spacing: -0.045em; }
.t-display-xl  { font-size: var(--type-display-xl);  line-height: 0.96; letter-spacing: -0.04em; }
.t-display-lg  { font-size: var(--type-display-lg);  line-height: 1.0;  letter-spacing: -0.035em; }
.t-display-md  { font-size: var(--type-display-md);  line-height: 1.12; letter-spacing: -0.02em; }
.t-headline { font-family: var(--font-body); font-feature-settings: var(--font-feature-body); font-size: var(--type-headline); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
.t-subhead  { font-family: var(--font-body); font-feature-settings: var(--font-feature-body); font-size: var(--type-subhead); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; }
.t-body-lg  { font-size: var(--type-body-lg); line-height: 1.5; }
.t-body     { font-size: var(--type-body); line-height: 1.55; }
