/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --accent: #30a985;
  --accent-glow: rgba(48, 169, 133, 0.35);
  --accent-soft: rgba(48, 169, 133, 0.10);
  --black: #000000;
  --dark-1: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #2d2d2d;
  --gray: #555555;
  --light-gray: #e0e0e0;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--dark-1);
  color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   SHARED ANIMATION
   ========================================================= */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(48, 169, 133, 0.06) 0%, transparent 60%),
              var(--dark-1);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--dark-4);
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--light-gray);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent-glow); }
  50%      { box-shadow: 0 0 18px var(--accent-glow), 0 0 32px var(--accent-glow); }
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.accent-text {
  color: var(--accent);
  position: relative;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Accent line */
.hero-accent-line {
  width: 48px;
  height: 3px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), rgba(48, 169, 133, 0.3));
  margin: 0 auto;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn i {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--light-gray);
  border: 1px solid var(--dark-4);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.scroll-indicator:hover {
  opacity: 0.7;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--dark-4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  border-radius: 100px;
  background: var(--accent);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0.3; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

/* =========================================================
   LINKS SECTION
   ========================================================= */
.links-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
  max-width: 440px;
  margin: 0 auto;
}

/* Grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--dark-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  /* Stagger animation */
  opacity: 0;
  transform: translateY(24px);
}

.link-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.link-card:hover {
  background: var(--dark-4);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(48, 169, 133, 0.08),
              0 0 0 1px rgba(48, 169, 133, 0.15);
}

.link-card:active {
  transform: translateY(-1px);
}

/* Icon wrapper */
.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--dark-4);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--light-gray);
  transition: background var(--transition),
              color var(--transition),
              box-shadow var(--transition);
}

.link-card:hover .card-icon-wrapper {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Card text */
.card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 400;
  margin-top: 2px;
}

/* Arrow */
.card-arrow {
  font-size: 0.85rem;
  color: var(--dark-4);
  transition: color var(--transition),
              transform var(--transition);
  flex-shrink: 0;
}

.link-card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  text-align: center;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--dark-4);
}

.footer-accent {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 16px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* =========================================================
   RESPONSIVE — LARGE DESKTOP (4 cols)
   ========================================================= */
@media (min-width: 960px) {
  .links-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .link-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 18px 24px;
    gap: 12px;
  }

  .card-icon-wrapper {
    width: 56px;
    height: 56px;
    font-size: 1.35rem;
    border-radius: 14px;
  }

  .card-arrow {
    display: none;
  }
}

/* Tablet — 2 cols (default grid already does this) */

/* Mobile — 1 col */
@media (max-width: 600px) {
  .links-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .links-section {
    padding: 60px 18px 80px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .link-card {
    padding: 16px 18px;
  }
}

/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .link-card {
    opacity: 1;
    transform: none;
    transition: background var(--transition-fast),
                border-color var(--transition-fast);
  }

  .badge-dot,
  .mouse-wheel {
    animation: none;
  }
}
