/* MetropolitanHost Studio — Design Tokens
   Extracted from Landing Page.html + Application UI.html.
   The single source of truth for the MetropolitanHost Studio visual language.
   Used by both the WordPress front-end theme and the builder UI overlay. */

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

:root {
  /* ── Backgrounds ───────────────────────────────────────────── */
  --bg-0: oklch(0.07 0.02 270);          /* deepest */
  --bg-1: oklch(0.10 0.02 270);          /* page */
  --bg-2: oklch(0.13 0.03 270);          /* surfaces */
  --bg-3: oklch(0.16 0.03 270);          /* raised */

  /* ── Ink (text) ────────────────────────────────────────────── */
  --ink-0: oklch(0.99 0.01 270);          /* primary */
  --ink-1: oklch(0.78 0.02 270);          /* secondary */
  --ink-2: oklch(0.58 0.02 270);          /* tertiary / muted */
  --ink-3: oklch(0.42 0.02 270);          /* disabled */

  /* ── Strokes / borders ─────────────────────────────────────── */
  --stroke-1: rgba(255,255,255,0.06);
  --stroke-2: rgba(255,255,255,0.10);
  --stroke-bright: rgba(255,255,255,0.18);

  /* ── Glass surfaces (for cards/panels on top of bg) ────────── */
  --glass-1: rgba(255,255,255,0.025);
  --glass-2: rgba(255,255,255,0.045);
  --glass-3: rgba(255,255,255,0.07);

  /* ── Brand colors (OKLCH so they tint cleanly) ─────────────── */
  --blue:        oklch(0.7 0.19 256);
  --blue-bright: oklch(0.78 0.18 256);
  --violet:      oklch(0.66 0.21 295);
  --cyan:        oklch(0.85 0.13 205);
  --green:       oklch(0.78 0.16 168);
  --teal:        oklch(0.65 0.18 196);
  --success:     oklch(0.78 0.17 158);
  --warning:     oklch(0.82 0.16 80);
  --danger:      oklch(0.7 0.19 22);

  /* ── Gradients ─────────────────────────────────────────────── */
  --grad-primary: linear-gradient(135deg, oklch(0.7 0.19 256), oklch(0.66 0.21 295));
  --grad-soft:    linear-gradient(180deg, oklch(0.7 0.19 256 / 0.08), oklch(0.66 0.21 295 / 0.04));
  --grad-cyan:    linear-gradient(135deg, oklch(0.85 0.13 205), oklch(0.7 0.19 256));
  --grad-success: linear-gradient(135deg, oklch(0.78 0.16 168), oklch(0.65 0.18 196));

  /* ── Radii ─────────────────────────────────────────────────── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* ── Shadows / glows ───────────────────────────────────────── */
  --shadow-sm: 0 4px 12px -4px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 30px -10px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.6);
  --shadow-glow-blue:   0 14px 50px -16px oklch(0.7 0.19 256 / 0.55), 0 0 0 6px oklch(0.7 0.19 256 / 0.06);
  --shadow-glow-cyan:   0 14px 50px -16px oklch(0.85 0.13 205 / 0.45), 0 0 0 6px oklch(0.85 0.13 205 / 0.06);
  --shadow-glow-violet: 0 14px 50px -16px oklch(0.66 0.21 295 / 0.55), 0 0 0 6px oklch(0.66 0.21 295 / 0.06);

  /* ── Typography ────────────────────────────────────────────── */
  --f-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ─────────────────────────────────────────────────────────────────
   Base resets + page background
   ───────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-1); color: var(--ink-0); font-family: var(--f-sans); }
body { font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--ink-0); text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }

.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, oklch(0.7 0.19 256 / 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 5%, oklch(0.66 0.21 295 / 0.18), transparent 60%),
    radial-gradient(1100px 600px at 50% 110%, oklch(0.85 0.13 205 / 0.10), transparent 60%),
    var(--bg-1);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent 80%);
}

/* ─────────────────────────────────────────────────────────────────
   Typography utilities
   ───────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: var(--ink-0); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }

.h-display { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.h-1       { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.h-2       { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.h-3       { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

.text-grad      { background: linear-gradient(180deg, var(--ink-0) 30%, oklch(0.78 0.02 270) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-blue { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-mono      { font-family: var(--f-mono); }

.kicker {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.kicker-grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ─────────────────────────────────────────────────────────────────
   Buttons
   ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: var(--glass-2); border: 1px solid var(--stroke-1); color: var(--ink-0);
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.btn:hover { background: var(--glass-3); border-color: var(--stroke-bright); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--glass-2); border-color: var(--stroke-1); }
.btn-primary {
  background: var(--grad-primary); border: 0; color: white;
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 60px -16px oklch(0.7 0.19 256 / 0.7), 0 0 0 6px oklch(0.7 0.19 256 / 0.1); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ─────────────────────────────────────────────────────────────────
   Icon helper
   ───────────────────────────────────────────────────────────────── */
.ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-lg { width: 20px; height: 20px; }

/* ─────────────────────────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 14px currentColor; }
  50%      { opacity: 0.6; box-shadow: 0 0 22px currentColor; }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes scan-move {
  0%   { top: -80px; }
  100% { top: 100%; }
}

/* ─────────────────────────────────────────────────────────────────
   Forms — keep usable in both surfaces
   ───────────────────────────────────────────────────────────────── */
input, textarea, select {
  font-family: inherit; color: var(--ink-0);
  background: rgba(0,0,0,0.3); border: 1px solid var(--stroke-2);
  border-radius: var(--r-md); padding: 10px 12px; font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: oklch(0.7 0.19 256 / 0.6);
  box-shadow: 0 0 0 4px oklch(0.7 0.19 256 / 0.1);
}
::placeholder { color: var(--ink-2); }

/* ─────────────────────────────────────────────────────────────────
   Utilities
   ───────────────────────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.center    { align-items: center; justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.muted     { color: var(--ink-2); }
.truncate  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
