/* Goats Development — aligned with Fashion Store design system */
:root {
  --primary: #db2777;
  --primary-dark: #be185d;
  --primary-light: #fbcfe8;
  --primary-muted: #fdf2f8;
  --secondary: #0f0f0f;
  --accent: #d97706;
  --accent-light: #fde68a;
  --surface: #ffffff;
  --surface-dark: #1a1a1a;
  --surface-card: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-muted: rgba(250, 250, 250, 0.72);
  --text-dim: rgba(250, 250, 250, 0.5);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(219, 39, 119, 0.35);
  --shadow-glow: 0 0 0 1px rgba(219, 39, 119, 0.2), 0 20px 48px -12px rgba(219, 39, 119, 0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 999px;
  --transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-main: 'Outfit', system-ui, sans-serif;
  --nav-height: 72px;
  --focus-ring: 0 0 0 3px rgba(219, 39, 119, 0.35), 0 0 0 1px var(--primary);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--secondary);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .bg-mesh { animation: none; }
}

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a1020 0%, var(--secondary) 45%, #0a0a0a 100%);
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.page-bg__orb--1 {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  background: rgba(219, 39, 119, 0.4);
  top: -12%;
  right: -8%;
}

.page-bg__orb--2 {
  width: min(400px, 60vw);
  height: min(400px, 60vw);
  background: rgba(217, 119, 6, 0.22);
  bottom: 10%;
  left: -10%;
}

.bg-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 75%);
  animation: meshDrift 24s linear infinite;
}

@keyframes meshDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(15, 15, 15, 0.96);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo__text span {
  color: var(--primary-light);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  padding: 20px 24px 28px;
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .nav-cta {
  margin-top: 12px;
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-bottom: 36px;
  padding: 24px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
  font-variant-numeric: tabular-nums;
  display: block;
}

.hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Hero showcase card */
.hero-showcase {
  position: relative;
}

.showcase-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.showcase-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.showcase-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.showcase-card__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.showcase-card__sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.showcase-card__code {
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #86efac;
  overflow-x: auto;
}

.showcase-card__code .comment {
  color: var(--text-dim);
}

.showcase-card__code .keyword {
  color: var(--primary-light);
}

/* Sections shared */
.section {
  padding: 88px 24px;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(219, 39, 119, 0.06) 50%, transparent);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.reveal {
  opacity: 1;
  transform: translateY(20px);
  transition: transform 0.55s var(--ease-out);
}

.reveal.is-visible {
  transform: translateY(0);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.25), rgba(219, 39, 119, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-light);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.member-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.member-card__media {
  position: relative;
  height: 280px;
  background: linear-gradient(160deg, rgba(219, 39, 119, 0.25), rgba(15, 15, 15, 0.9));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.member-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary) 0%, transparent 55%);
  pointer-events: none;
}

.member-card__img {
  position: relative;
  z-index: 1;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

.member-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.member-card__role {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.member-card__role::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

.member-card__bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.skills-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skill-tag {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--text);
}

.member-card__social {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* CTA */
.cta-band {
  padding: 64px 24px;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.2), rgba(190, 24, 93, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.footer__grid {
  max-width: 1200px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 280px;
}

.footer__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--primary-light);
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer__bottom a {
  color: var(--text-muted);
}

.footer__bottom a:hover {
  color: var(--primary-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .hero__content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-stats,
  .hero-actions {
    justify-content: center;
  }

  .hero-showcase {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  .nav-links,
  .navbar .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .service-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .member-card__body {
    text-align: center;
    align-items: center;
  }

  .skills-list,
  .member-card__social,
  .footer__grid .logo {
    justify-content: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__brand p {
    margin: 16px auto 20px;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    gap: 20px;
    padding: 20px;
    justify-content: center;
  }

  .section {
    padding: 64px 20px;
  }
}
