/* ============================================================
   MAITHRAA GLOBAL — MASTER DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --maithraa-blue: #018DD1;
  --maithraa-gold: #F3C909;
  --maithraa-silver: #F4FAFC;
  --maithraa-dark: #00080D;

  --blue-dim: rgba(1, 141, 209, 0.12);
  --blue-mid: rgba(1, 141, 209, 0.35);
  --gold-dim: rgba(243, 201, 9, 0.12);
  --gold-mid: rgba(243, 201, 9, 0.35);
  --dark-mid: rgba(0, 8, 13, 0.75);

  --surface-1: #00111A;
  --surface-2: #001824;
  --surface-3: #002030;
  --border: rgba(1, 141, 209, 0.18);
  --border-gold: rgba(243, 201, 9, 0.25);

  --text-primary: #F4FAFC;
  --text-secondary: rgba(244, 250, 252, 0.65);
  --text-muted: rgba(244, 250, 252, 0.38);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --shadow-blue: 0 0 40px rgba(1, 141, 209, 0.25);
  --shadow-gold: 0 0 40px rgba(243, 201, 9, 0.2);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.45);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--maithraa-dark);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--maithraa-dark); }
::-webkit-scrollbar-thumb { background: var(--maithraa-blue); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--blue-mid); color: #fff; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { color: var(--text-secondary); font-size: 1.05rem; }

a { color: var(--maithraa-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--maithraa-gold); }

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

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--maithraa-blue), #0066A8);
  color: #fff;
  box-shadow: 0 4px 24px rgba(1, 141, 209, 0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(1, 141, 209, 0.6);
  color: #fff;
}

.btn--gold {
  background: linear-gradient(135deg, var(--maithraa-gold), #C9A400);
  color: var(--maithraa-dark);
  box-shadow: 0 4px 24px rgba(243, 201, 9, 0.3);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(243, 201, 9, 0.5);
  color: var(--maithraa-dark);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--maithraa-blue);
  color: var(--maithraa-blue);
  background: var(--blue-dim);
}

.btn--sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn--lg { padding: 1.1rem 2.8rem; font-size: 1.05rem; }

/* ── CARDS ── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--maithraa-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}
.card:hover::before { opacity: 1; }

.card--gold:hover {
  border-color: var(--maithraa-gold);
  box-shadow: var(--shadow-gold);
}
.card--gold::before {
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid;
}

.badge--blue { border-color: var(--maithraa-blue); color: var(--maithraa-blue); background: var(--blue-dim); }
.badge--gold { border-color: var(--maithraa-gold); color: var(--maithraa-gold); background: var(--gold-dim); }
.badge--silver { border-color: var(--border); color: var(--text-secondary); background: var(--surface-2); }

/* ── SECTION SPACING ── */
.section { padding: clamp(4rem, 8vw, 8rem) 0; }
.section--sm { padding: clamp(2rem, 4vw, 4rem) 0; }

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maithraa-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: var(--maithraa-blue);
}

.section-heading { margin-bottom: 1.25rem; }
.section-sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 640px;
  line-height: 1.75;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── NOISE OVERLAY ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── GLOW ORBS ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb--blue { background: rgba(1, 141, 209, 0.15); }
.glow-orb--gold { background: rgba(243, 201, 9, 0.1); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(1, 141, 209, 0.3); }
  50%       { box-shadow: 0 0 50px rgba(1, 141, 209, 0.6); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeUp { animation: fadeUp 0.7s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.7s ease forwards; }
.float { animation: float 4s ease-in-out infinite; }

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ── SHIMMER TEXT ── */
.text-shimmer {
  background: linear-gradient(90deg, var(--maithraa-blue) 0%, var(--maithraa-gold) 40%, var(--maithraa-blue) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.text-gold { color: var(--maithraa-gold); }
.text-blue { color: var(--maithraa-blue); }
.text-muted { color: var(--text-muted); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--maithraa-blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ── STAT BLOCKS ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-unit { color: var(--maithraa-gold); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ── RESPONSIVE HELPERS ── */
.hide-mobile { @media (max-width: 768px) { display: none !important; } }
.hide-desktop { @media (min-width: 769px) { display: none !important; } }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
}
