/* ============================================================
   Osdo Cloud — Colors & Type Foundations
   eHost.com.tr WHMCS template — ported from claude.ai/design bundle
   All fonts shipped locally (no CDN).
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/Sora-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* -------- Brand color -------- */
  --brand-900: #0d2a17;
  --brand-800: #154222;
  --brand-700: #1d5a30;
  --brand-600: #2a7a44;
  --brand-100: #e6efe9;
  --brand-50:  #f1f6f3;

  /* -------- Neutrals (border-first system) -------- */
  --bg:        #f9fafb;
  --surface:   #ffffff;
  --surface-2: #f3f4f6;
  --border:    #e5e7eb;
  --border-strong: #d1d5db;
  --divider:   #f1f3f5;

  /* -------- Text -------- */
  --fg-1: #111827;
  --fg-2: #4b5563;
  --fg-3: #6b7280;
  --fg-4: #9ca3af;
  --fg-on-brand: #ffffff;

  /* -------- Semantic / status -------- */
  --success: #22c55e;
  --error:   #ef4444;
  --warning: #f9ab00;
  --info:    #3b82f6;

  --success-bg: #ecfdf5;
  --error-bg:   #fef2f2;
  --warning-bg: #fffbeb;
  --info-bg:    #eff6ff;

  /* -------- Semantic foreground (text on banners/badges) -------- */
  --success-fg:    #15803d;
  --error-fg:      #991b1b;
  --error-fg-soft: #7f1d1d;
  --warning-fg:    #78350f;
  --info-fg:       #1e3a8a;
  --success-border: #a7f3d0;
  --error-border:   #fecaca;
  --warning-border: #fde68a;
  --info-border:    #bfdbfe;

  /* -------- Type families -------- */
  --font-display: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-wordmark:'Sora', system-ui, sans-serif;

  /* -------- Type scale -------- */
  --h1-size: 28px; --h1-weight: 700; --h1-leading: 1.2;
  --h2-size: 22px; --h2-weight: 600; --h2-leading: 1.25;
  --h3-size: 18px; --h3-weight: 600; --h3-leading: 1.3;
  --h4-size: 15px; --h4-weight: 600; --h4-leading: 1.35;
  --body-size:  14px; --body-leading: 1.5;
  --small-size: 13px;
  --xs-size:    12px; --xs-tracking: 0.02em;
  --code-size:  13px;

  /* -------- Radii -------- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* -------- Spacing scale -------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* -------- Elevation: borders, not shadows -------- */
  --elev-0: none;
  --elev-1: 0 0 0 1px var(--border);
  --elev-float: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.08);

  /* -------- Layout tokens -------- */
  --sidebar-w: 256px;
  --topbar-h:  56px;
  --content-max: 1280px;
}

/* ============================================================
   Semantic resets
   ============================================================ */

html, body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg-1); margin: 0; }
h1 { font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: var(--h1-leading); letter-spacing: -0.01em; }
h2 { font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: var(--h2-leading); letter-spacing: -0.005em; }
h3 { font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: var(--h3-leading); }
h4 { font-size: var(--h4-size); font-weight: var(--h4-weight); line-height: var(--h4-leading); }

p { margin: 0; color: var(--fg-2); }
small { font-size: var(--small-size); color: var(--fg-3); }
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: var(--code-size);
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" on, "zero" on; }
.label-eyebrow {
  font-family: var(--font-body);
  font-size: var(--xs-size);
  letter-spacing: var(--xs-tracking);
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 600;
}
