/* ===== Icelium design tokens ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Surfaces — dark gray drifting into dark blue */
  --bg: #080b10;
  --bg-1: #0b0f16;
  --bg-2: #10151e;
  --panel: rgba(20, 26, 36, 0.72);
  --panel-solid: #141a24;
  --panel-2: #182130;
  --line: rgba(140, 170, 210, 0.1);
  --line-strong: rgba(140, 175, 220, 0.22);

  /* Ice blues */
  --ice-050: #eaf4ff;
  --ice-200: #a9d3ff;
  --ice-400: #57a6ff;
  --ice-500: #2f8bff;
  --ice-600: #1f6fe0;
  --ice-700: #17509f;
  --deep-blue: #0e2547;
  --deep-blue-2: #091a33;

  /* Text */
  --text: #e9eef6;
  --text-soft: #b9c4d4;
  --text-mute: #7d8a9d;

  /* Feedback */
  --ok: #3ddc97;
  --warn: #ffc056;
  --bad: #ff6b6b;

  /* Effects */
  --glow-ice: 0 0 0 1px rgba(87, 166, 255, 0.28), 0 18px 60px -18px rgba(47, 139, 255, 0.55);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --blur: saturate(150%) blur(18px);

  --grad-ice: linear-gradient(135deg, #7cc4ff 0%, #2f8bff 45%, #1b4fa8 100%);
  --grad-panel: linear-gradient(160deg, rgba(38, 52, 72, 0.72) 0%, rgba(15, 20, 29, 0.72) 100%);
  --grad-text: linear-gradient(105deg, #ffffff 0%, #cfe4ff 40%, #57a6ff 100%);

  --max: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient wash + fine noise, fixed behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(31, 111, 224, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 0%, rgba(87, 166, 255, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(23, 80, 159, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 45%, var(--bg) 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1rem; color: var(--text-soft); }

a {
  color: var(--ice-200);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--ice-050); }

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

::selection { background: rgba(47, 139, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ice-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #24405f, #16243a);
  border-radius: 10px;
  border: 2px solid var(--bg-1);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #2f8bff, #17509f); }
