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

:root {
  /* Void — near-black with slight warm tint */
  --void: #03030a;
  --void-2: #060610;
  --surface: #0b0b18;
  --panel: #0f0f1e;
  --panel-2: #131325;
  --panel-3: #17172c;
  --border: #1c1c35;
  --border-2: #252545;
  --border-3: #30305a;

  /* Brand — electric violet */
  --v: #6d5ef5;        /* primary */
  --v2: #8b7cff;       /* lighter */
  --v3: #a99dff;       /* lightest */
  --vd: rgba(109,94,245,0.08);   /* dim bg */
  --vd2: rgba(109,94,245,0.15);  /* mid dim */
  --vg: rgba(109,94,245,0.35);   /* glow */
  --vg2: rgba(109,94,245,0.15);  /* soft glow */

  /* Accent — electric green */
  --g: #00e676;
  --gd: rgba(0,230,118,0.08);
  --gg: rgba(0,230,118,0.25);

  /* Status */
  --amber: #ffb020;
  --red: #ff3d5a;
  --blue: #3d9dff;

  /* Text hierarchy */
  --t1: #f0eeff;   /* headings */
  --t2: #b8b3e0;   /* body */
  --t3: #6e6a9a;   /* muted */
  --t4: #3d3a60;   /* very muted */

  /* Type */
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--void);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
::selection { background: var(--vd2); color: var(--t1); }
:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }

/* Layout */
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap-sm { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 28px; }
.wrap-xs { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 28px; }

/* Reveal */
.r { opacity: 0; transform: translateY(24px); transition: opacity 0.65s cubic-bezier(.16,1,.3,1), transform 0.65s cubic-bezier(.16,1,.3,1); }
.r.in { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.1s; }
.r-d2 { transition-delay: 0.2s; }
.r-d3 { transition-delay: 0.3s; }

/* Typography scale */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v2);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  border-radius: 10px; cursor: pointer; transition: all 0.18s;
  border: none; letter-spacing: -0.1px; white-space: nowrap;
}
.btn-lg { font-size: 15px; font-weight: 700; border-radius: 11px; }
.btn-primary {
  background: var(--v);
  color: #fff;
  padding: 11px 22px;
  box-shadow: 0 2px 20px var(--vg2), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: var(--v2); box-shadow: 0 4px 32px var(--vg); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 14px 30px; }
.btn-outline {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border-2);
  padding: 11px 22px;
}
.btn-outline:hover { border-color: var(--border-3); color: var(--t1); }
.btn-outline.btn-lg { padding: 14px 30px; }
.btn-ghost { background: none; color: var(--t3); padding: 10px 16px; }
.btn-ghost:hover { color: var(--t1); }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Divider */
hr { border: none; border-top: 1px solid var(--border); }

/* Section spacing */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* Section header */
.s-head { margin-bottom: 56px; }
.s-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--t1);
  margin-top: 12px;
}
.s-sub { font-size: 16px; color: var(--t3); margin-top: 14px; line-height: 1.7; max-width: 520px; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .s-head { margin-bottom: 40px; }
}
