@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ── INTRO OVERLAY ── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f8f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  overflow: hidden;
}

#intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-arc {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.intro-arc-2 {
  position: absolute;
  bottom: -160px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.intro-word {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.03em;
  text-align: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
  user-select: none;
  position: relative;
  z-index: 2;
}

.intro-word.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.intro-word.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.intro-num {
  position: absolute;
  bottom: 40px;
  right: 48px;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.12em;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f9fafb;
  --bg-card: #ffffff;
  --bg-header: rgba(249, 250, 251, 0.88);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-bg: #eff6ff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 48px rgba(37, 99, 235, 0.10), 0 4px 16px rgba(0, 0, 0, 0.06);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(124, 58, 237, 0.04) 0%, transparent 55%);
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-logo .dot {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* ── HUB HERO ── */
.hub-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 2.5rem 48px;
  text-align: center;
}

.hub-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--accent-bg);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hub-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hub-title .dot {
  color: var(--accent);
}

.hub-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
}

/* ── SERVICES ── */
.services-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 2.5rem 80px;
  width: 100%;
  flex: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.18);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-icon {
  font-size: 1.9rem;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.service-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-live {
  background: #dcfce7;
  color: #16a34a;
}

.service-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.service-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

.service-arrow {
  width: 32px;
  height: 32px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.service-card:hover .service-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ── LIKE BUTTON ── */
.like-section {
  padding: 20px 2.5rem 40px;
}

.like-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
}

.like-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  background: #fff5f5;
  color: #ef4444;
}

.like-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.like-btn.liked {
  background: #fff5f5;
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  cursor: default;
}

.like-btn:disabled {
  opacity: 0.85;
}

.like-heart {
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
}

.like-heart.pop {
  animation: heart-pop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes heart-pop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.7);
  }

  60% {
    transform: scale(0.85);
  }

  100% {
    transform: scale(1);
  }
}

.like-label {
  font-size: 0.88rem;
}

.like-count-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.like-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
}

.like-count-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.like-hint {
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── VISITOR STATS ── */
.stats-section {
  padding: 0 2.5rem 60px;
}

.stats-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: fit-content;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── FOOTER ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 2.5rem;
  background: var(--bg-card);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  header {
    padding: 0 1.5rem;
  }

  .hub-hero {
    padding: 60px 1.5rem 36px;
  }

  .services-section {
    padding: 0 1.5rem 64px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .like-section {
    padding: 20px 1.5rem 40px;
  }

  .stats-section {
    padding: 0 1.5rem 48px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}