/* ============================================================
   TECHCELER — base.css
   Variables · Reset · Typography · Glassmorphism · Layout
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,600&family=DM+Mono:wght@400;500;700&display=swap");

:root {
  /* Brand */
  --purple: #7b5ea7;
  --pink: #ff4d8b;
  --gradient: linear-gradient(135deg, #7b5ea7 0%, #ff4d8b 100%);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(123, 94, 167, 0.15) 0%,
    rgba(255, 77, 139, 0.15) 100%
  );

  /* Text */
  --text-primary: #3d3a4a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Backgrounds */
  --bg-page: #f0f3f8;
  --bg-card: #ffffff;
  --bg-card2: #f8fafc;
  --bg-dark: #1b2a3b;
  --bg-darker: #0d2137;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(123, 94, 167, 0.15);
  --glass-blur: blur(20px);

  /* Borders */
  --border: #e2e8f0;
  --border2: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(123, 94, 167, 0.15);
  --shadow-hover: 0 24px 64px rgba(123, 94, 167, 0.25);

  /* Fonts */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-serif: "Crimson Pro", serif;
  --font-mono: "DM Mono", monospace;

  /* Layout */
  --maxw: 1200px;
  --maxw-wide: 1320px;
  --nav-h: 76px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* gradient text utility */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.container-wide {
  max-width: var(--maxw-wide);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-sm {
  padding-block: clamp(48px, 6vw, 80px);
}

.text-center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.gradient-text {
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  flex: none;
}

.eyebrow.no-line::before {
  display: none;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---------- Glassmorphism ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(123, 94, 167, 0.12);
}

.glass-dark {
  background: rgba(27, 42, 59, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

/* On dark sections, use a lighter translucent glass */
.glass-on-dark {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

/* ---------- Dark section helper ---------- */
.bg-dark {
  background: var(--bg-dark);
  color: #fff;
}
.bg-darker {
  background: var(--bg-darker);
  color: #fff;
}
.bg-page {
  background: var(--bg-page);
}
.bg-white {
  background: #fff;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-darker h1,
.bg-darker h2,
.bg-darker h3,
.bg-darker h4,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: #fff;
}

.bg-dark p,
.bg-darker p,
.on-dark p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 2000;
  background: #fff;
  color: var(--purple);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  left: 8px;
}

.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;
}

/* ---------- Decorative gradient mesh ---------- */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Reveal anything that animates in so content is never hidden */
  [data-reveal],
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Mobile glass perf ---------- */
@media (max-width: 768px) {
  .glass-card,
  .glass-dark,
  .glass-on-dark {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  body {
    font-size: 16px;
  }
}
