/* ==========================================================================
   techweben — Apple-Inspired Modern Design System
   Aesthetic: Minimalist, Light White, Deep Black Typography, Apple Blue Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Apple-Style Color Palette */
  --bg-page: #FFFFFF;
  --bg-subtle: #F5F5F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFC;
  --bg-elevated: #F5F5F7;
  --bg-nav: rgba(255, 255, 255, 0.85);

  /* Typography Colors */
  --ink-primary: #1D1D1F;      /* Apple Black / Graphite */
  --ink-secondary: #515154;    /* Neutral Dark Gray */
  --ink-muted: #86868B;        /* Apple Muted Gray */
  --ink-faint: #A1A1A6;
  --ink-inverse: #FFFFFF;

  /* Accent Colors (Apple Iconic Blue & Neutral Accents) */
  --apple-blue: #0071E3;
  --apple-blue-hover: #0077ED;
  --apple-blue-subtle: rgba(0, 113, 227, 0.08);
  --apple-blue-border: rgba(0, 113, 227, 0.25);
  
  --accent-emerald: #34C759;
  --accent-gray: #E8E8ED;
  --accent-cyan: #0071E3;      /* Maps to iconic Apple Blue */
  --accent-purple: #5856D6;    /* Apple Purple */
  --bg-surface-elevated: #F5F5F7;

  /* Glassmorphism Design Tokens */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-subtle: rgba(255, 255, 255, 0.52);
  --glass-bg-elevated: rgba(255, 255, 255, 0.88);
  --glass-bg-card: rgba(255, 255, 255, 0.76);
  --glass-border: 1px solid rgba(255, 255, 255, 0.85);
  --glass-border-subtle: 1px solid rgba(0, 0, 0, 0.07);
  --glass-blur: blur(24px) saturate(190%);
  --glass-blur-sm: blur(14px) saturate(160%);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  --glass-shadow-hover: 0 16px 40px -4px rgba(0, 113, 227, 0.12), inset 0 1px 2px 0 rgba(255, 255, 255, 1);

  /* Borders & Dividers */
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.2);

  /* Typography Stack */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing Tokens */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1240px;
  --max-width-narrow: 820px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions & Animation */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s var(--ease-apple);

  /* Apple-Style Soft Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.09);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #F8F9FD;
  background-image: 
    radial-gradient(at 10% 12%, rgba(0, 113, 227, 0.07) 0px, transparent 45%),
    radial-gradient(at 88% 18%, rgba(88, 86, 214, 0.07) 0px, transparent 48%),
    radial-gradient(at 50% 50%, rgba(0, 199, 190, 0.04) 0px, transparent 55%),
    radial-gradient(at 85% 82%, rgba(0, 113, 227, 0.06) 0px, transparent 45%),
    radial-gradient(at 15% 88%, rgba(88, 86, 214, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--ink-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--ink-primary);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

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

/* Section Spacing */
.section {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  position: relative;
}

.section-sm {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

/* Apple-Style Eyebrow / Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--ink-primary);
}

.section-lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header.center .section-lede {
  margin-left: auto;
  margin-right: auto;
}
