/* PixelHub Landing - Vercel-inspired monochrome with glow */

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

:root {
  --black: #171717;
  --white: #ffffff;
  --gray-900: #222222;
  --gray-600: #4d4d4d;
  --gray-500: #666666;
  --gray-400: #808080;
  --gray-200: #ebebeb;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --accent: #0072f5;
  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px,
                 rgba(0, 0, 0, 0.04) 0px 2px 4px,
                 var(--gray-50) 0px 0px 0px 1px;
  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px,
                       rgba(0, 0, 0, 0.08) 0px 8px 16px,
                       rgba(0, 0, 0, 0.04) 0px 16px 32px,
                       var(--gray-50) 0px 0px 0px 1px;
  --radius: 12px;
}

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

body {
  font-family: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Header ====== */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  box-shadow: var(--shadow-border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo-icon {
  font-size: 22px;
  line-height: 1;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 114, 245, 0.06) 0%,
    rgba(0, 114, 245, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -3.2px;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--black);
}

.tagline {
  font-size: 20px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

/* ====== Products ====== */
.products {
  padding: 0 0 140px;
}

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

.section-intro h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.44px;
  line-height: 1.15;
  margin-bottom: 0;
  color: var(--black);
}

/* ====== Cards ====== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 114, 245, 0.3));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card article {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  transition: background 0.2s ease, color 0.2s ease;
}

.card:hover .card-icon {
  background: rgba(0, 114, 245, 0.08);
  color: var(--accent);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.96px;
  line-height: 1.2;
}

.card p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.card-domain {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.card-arrow {
  font-family: "Geist Sans", sans-serif;
  font-size: 20px;
  color: var(--gray-200);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

/* ====== Footer ====== */
footer {
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
  padding: 40px 0;
}

.footer-inner {
  text-align: center;
}

footer p {
  font-size: 14px;
  color: var(--gray-400);
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.02em;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 80px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: -1.76px;
  }

  .tagline {
    font-size: 18px;
  }

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

  .products {
    padding: 0 0 100px;
  }

  .section-intro h2 {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .card {
    padding: 32px 28px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 72px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -1.44px;
  }

  .tagline {
    font-size: 16px;
  }
}

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

.hero-inner {
  animation: fadeInUp 0.6s ease-out;
}

.section-intro {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.card:nth-child(1) {
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.card:nth-child(2) {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
