/* ===== BASE ===== */
:root {
  --bg: #0a0d12;
  --panel: #111620;
  --panel-2: #161c28;
  --text: #eaf0fb;
  --muted: #8a97b0;
  --brand: #4a90d9;
  --brand-glow: rgba(74, 144, 217, 0.25);
  --accent: #00c9ff;
  --accent-soft: rgba(0, 201, 255, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(74, 144, 217, 0.4);
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 900px 500px at 5% -5%, rgba(74, 144, 217, 0.18), transparent 55%),
    radial-gradient(ellipse 600px 400px at 105% 15%, rgba(0, 201, 255, 0.10), transparent 55%),
    radial-gradient(ellipse 800px 600px at 60% 100%, rgba(26, 26, 46, 0.6), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 32px;
  flex: 1 0 auto;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 200px at 10% -30%, rgba(74, 144, 217, 0.14), transparent 55%),
    radial-gradient(400px 200px at 110% -20%, rgba(0, 201, 255, 0.08), transparent 55%);
  pointer-events: none;
}

/* Avatar */
.avatar {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(74, 144, 217, 0.3);
  display: block;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, rgba(74,144,217,0.5), rgba(0,201,255,0.2), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* Title */
.title {
  position: relative;
  z-index: 2;
  width: 100%;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}
.title h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 560px;
  margin: 0 auto 14px;
  font-weight: 300;
}
.brand-link {
  color: var(--brand);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.brand-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Chips */
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.chip {
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid rgba(74, 144, 217, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #a8c8f0;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Buttons */
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--text);
  width: 100%;
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--border-hover);
  background: rgba(74, 144, 217, 0.06);
  color: var(--text);
}
.btn-brand {
  background: linear-gradient(135deg, rgba(74,144,217,0.2), rgba(0,201,255,0.1));
  border-color: rgba(74, 144, 217, 0.4);
  color: #a8d4f8;
  font-weight: 500;
}
.btn-brand:hover {
  background: linear-gradient(135deg, rgba(74,144,217,0.3), rgba(0,201,255,0.18));
  border-color: var(--brand);
  color: #c8e4ff;
}
.btn-lg {
  padding: 11px 22px;
  font-size: 0.9rem;
  width: auto;
}
.icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg { width: 16px; height: 16px; }

/* ===== SECTIONS ===== */
section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
  margin-top: 16px;
  animation: fadeUp 0.6s ease both;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.section-desc {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  font-weight: 300;
}

/* About */
.about-section { animation-delay: 0.1s; }
.about-text {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  font-weight: 300;
  line-height: 1.7;
}
.about-text strong {
  color: var(--text);
  font-weight: 500;
}
.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  flex: 1;
  min-width: 100px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.3;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.4s ease;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  color: var(--text);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(74, 144, 217, 0.04);
  color: var(--text);
}
.card-top {
  margin-bottom: 8px;
}
.card-tag {
  font-size: 0.68rem;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.card strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  margin-bottom: 6px;
  color: var(--text);
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.55;
}
.card-stack {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-stack span {
  background: rgba(74, 144, 217, 0.08);
  border: 1px solid rgba(74, 144, 217, 0.15);
  color: #89b8e8;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 400;
}

/* FastDeploy CTA section */
.fastdeploy-section {
  background: linear-gradient(135deg, rgba(74,144,217,0.12), rgba(0,201,255,0.06));
  border-color: rgba(74, 144, 217, 0.25);
  animation-delay: 0.2s;
}
.fd-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.fd-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.fd-text .muted {
  font-size: 0.82rem;
}

/* ===== FOOTER ===== */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.6);
  backdrop-filter: blur(8px);
  padding: 18px 16px 28px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  color: #5a6580;
  font-size: 0.78rem;
}
.footer-inner a {
  color: #5a6580;
}
.footer-inner a:hover { color: var(--brand); }
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   TABLET 600px+
   =========================== */
@media (min-width: 600px) {
  .wrap { padding: 36px 24px 40px; }
  .links { justify-content: flex-start; }
  .btn { width: auto; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .fd-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===========================
   DESKTOP 840px+
   =========================== */
@media (min-width: 840px) {
  header {
    display: grid;
    grid-template-columns: 120px 1fr;
    text-align: left;
    align-items: center;
    gap: 28px;
  }
  .name-row { justify-content: flex-start; }
  .subtitle { margin: 0 0 14px; }
  .badges { justify-content: flex-start; }
  .links { flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
