/* ============================================================
   Loominost — Design Tokens + Base
   ============================================================ */

:root {
  /* Palette — Hyonix-style blue + black on near-white */
  --bg: #F5F7FA;              /* cool near-white */
  --bg-2: #EAEFF5;            /* panel tint */
  --bg-3: #DCE4EE;            /* card tint */
  --ink: #0A1220;             /* near-black with blue cast */
  --ink-2: #2A3544;           /* secondary text */
  --ink-3: #5A6778;           /* tertiary / meta */
  --line: #D6DEE8;            /* hairlines */
  --line-2: #BFCAD8;          /* stronger hairlines */

  --accent: #2563EB;          /* Hyonix-style blue */
  --accent-ink: #1D4ED8;      /* deeper blue for text */
  --accent-wash: #DBEAFE;     /* pale blue fill */
  --accent-glow: #60A5FA;     /* light blue glow */

  --ok: #2F7D5B;
  --warn: #B45309;
  --err: #B91C1C;

  /* Type — Hyonix-style geometric sans throughout */
  --font-serif: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1240px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-sm: 6px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--accent); color: #fff; }

/* Italic <em> in headings → render as plain bold accent (Hyonix-style) */
em { font-style: normal; font-weight: 600; }

/* ---------- Type scale ---------- */

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(44px, 6.2vw, 88px);
}
.display em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.h-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  transform: translateY(-1px);
}

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 160ms var(--ease);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn .arrow { transition: transform 160ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ---------- Utilities ---------- */

.hide { display: none !important; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: rgba(255,255,255,0.5);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47,125,91,0.15);
}

/* ---------- Grainy background texture ---------- */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.06), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(96,165,250,0.08), transparent 50%);
  mix-blend-mode: multiply;
}

/* ---------- Scroll reveal on hover (simple) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 600ms var(--ease) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
