/* ================================================================
   ELITEHOSTING.IN — Base Styles v1.0
   ================================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: rgba(0,212,255,0.25);
  color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface-1); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}
h1 { font-size: var(--text-hero); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; }
h6 { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { color: var(--text-secondary); line-height: 1.65; }
a { color: var(--electric); text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--text-primary); }
strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; color: var(--text-secondary); }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--electric);
  background: var(--electric-soft);
  padding: 2px 6px;
  border-radius: 4px;
}
pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  background: var(--color-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  overflow-x: auto;
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utility Classes ───────────────────────────────────────── */
.container { max-width: var(--max-w-xl); margin: 0 auto; padding: 0 var(--s6); }
.container-sm { max-width: var(--max-w-md); margin: 0 auto; padding: 0 var(--s5); }
.container-lg { max-width: var(--max-w-2xl); margin: 0 auto; padding: 0 var(--s6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-muted { color: var(--text-muted); }
.text-electric { color: var(--electric); }
.text-mint { color: var(--mint); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.font-mono { font-family: var(--font-mono); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--s1); }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.gap-5 { gap: var(--s5); }
.gap-6 { gap: var(--s6); }
.gap-8 { gap: var(--s8); }
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

/* ── Gradient text ─────────────────────────────────────────── */
.grad-electric { background: var(--grad-electric); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-mint     { background: var(--grad-mint);     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-fire     { background: var(--grad-fire);     -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-india    { background: var(--grad-india);    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-plasma   { background: var(--grad-plasma);   -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Section Spacing ───────────────────────────────────────── */
.section    { padding: var(--s20) 0; }
.section-lg { padding: var(--s24) 0; }
.section-sm { padding: var(--s12) 0; }
.section-header { text-align: center; margin-bottom: var(--s12); }
.section-header .eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric);
  margin-bottom: var(--s3);
  display: block;
}
.section-header h2 { margin-bottom: var(--s4); }
.section-header p {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s4); }
}

/* ── Divider ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: var(--s6) 0; }
.divider-text {
  display: flex; align-items: center; gap: var(--s3);
  color: var(--text-muted); font-size: var(--text-sm);
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
