/* ========== Raayak.site — Dark / Modern UI ========== */
:root {
  --bg: #0b1220;
  --bg-2: #0d162b;
  --card: #111c31;
  --border: #17233f;
  --text: #cfd8e3;
  --muted: #9aa7b5;
  --brand1: #1f6feb;
  --brand2: #00bfa6;
  --focus: #7dd3fc;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", Ubuntu, Cantarell, "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(1200px 800px at 10% 0%, #0f1a2e 0%, var(--bg) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(5, 10, 20, 0.5);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand .logo { width: 36px; height: 36px; display: block; }
.brand-text { font-weight: 600; font-size: 18px; letter-spacing: 0.2px; }
nav a { margin-left: 18px; color: #cfe9ff; transition: opacity .2s ease; }
nav a:hover { opacity: .85; }

/* Layout */
.container { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.hero h1 { font-size: clamp(28px, 3.2vw, 44px); margin: 6px 0 8px; }
.hero p { margin-top: 4px; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px; margin: 18px 0 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  transform: translateY(6px);
  opacity: 0;
  animation: cardIn 600ms ease forwards;
}
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p  { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* Buttons */
button#cta {
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  color: #fff; border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(31,111,235,.25);
  transition: transform .12s ease, filter .15s ease, box-shadow .2s ease;
}
button#cta:hover { filter: brightness(1.08); }
button#cta:active { transform: translateY(1px) scale(.99); }
.muted { color: var(--muted); }

/* Footer */
.site-footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 40px;
  color: #a9b7c7;
}

/* Animations */
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

@media (max-width: 520px) {
  .brand-text { display: none; }
  nav a { margin-left: 12px; }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb; --bg-2: #edf2fb; --card: #ffffff; --border: #e2e8f0;
    --text: #0b1220; --muted: #4a5568;
  }
  nav a { color: #2456c5; }
}
