:root {
  --bg: #f4f7fb;
  --bg-2: #eef3fb;
  --text: #0b1120;
  --text-muted: #56607a;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.12);
  --accent: #1f8bff;
  --accent-2: #14b8a6;
  --accent-3: #f97316;
  --radius: 18px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Sora", Arial, sans-serif;
  letter-spacing: -0.02em;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 2;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: -20% -10% 0 -10%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(31, 139, 255, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(20, 184, 166, 0.14),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(249, 115, 22, 0.12),
      transparent 50%
    );
  filter: blur(10px);
  animation: gradientShift 30s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(11, 17, 32, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(11, 17, 32, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridMove 24s linear infinite;
  mask-image: radial-gradient(circle at top, black 40%, transparent 75%);
}

.bg-beams {
  position: absolute;
  inset: -20% -10% 0 -10%;
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 60px,
    transparent 120px
  );
  opacity: 0.6;
  transform: translateZ(0);
}

.bg-shapes .shape {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
}

.bg-shapes .s1 {
  top: 10%;
  left: -5%;
  background: radial-gradient(circle, rgba(31, 139, 255, 0.35), transparent);
}

.bg-shapes .s2 {
  top: 30%;
  right: -8%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent);
}

.bg-shapes .s3 {
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  animation: particleFloat linear infinite;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(244, 247, 251, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.logo {
  font-family: "Space Grotesk", "Sora", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

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

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

[hidden] {
  display: none !important;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #fff;
  box-shadow: 0 10px 20px rgba(31, 139, 255, 0.25);
}

.btn.ghost {
  background: transparent;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:hover::after {
  opacity: 1;
}

.user-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 80px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 3.5vw, 3.6rem);
  margin: 16px 0 18px;
}

.lead {
  color: var(--text-muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.meta-value {
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border 0.25s ease;
}

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

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

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chip {
  background: rgba(31, 139, 255, 0.12);
  color: var(--accent);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.rating {
  background: rgba(15, 23, 42, 0.06);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
}

.stack-item span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 50%;
  border: 1px solid var(--border);
  font-weight: 600;
}

.section-title {
  margin-bottom: 32px;
  max-width: 640px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 12px 0 12px;
}

.section-title p {
  color: var(--text-muted);
}

.section-title.spaced {
  margin-top: 64px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.card:hover .icon {
  transform: rotate(-6deg) scale(1.05);
}

.details ul {
  margin-top: 16px;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.details ul li::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent-2);
}

.visual {
  height: 140px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #a5c4ff, #6ee7d1);
  position: relative;
  overflow: hidden;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 12px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );
}

.v1 {
  background: linear-gradient(135deg, #8bb6ff, #7be7cc);
}

.v2 {
  background: linear-gradient(135deg, #6fc3ff, #f9b38e);
}

.v3 {
  background: linear-gradient(135deg, #78b7ff, #8ce3ff);
}

.v4 {
  background: linear-gradient(135deg, #7fd8c9, #88a7ff);
}

.v5 {
  background: linear-gradient(135deg, #9cc7ff, #f6b06b);
}

.v6 {
  background: linear-gradient(135deg, #ffb88f, #ff8fb1);
}

.v7 {
  background: linear-gradient(135deg, #82d0ff, #7fe8c6);
}

.v8 {
  background: linear-gradient(135deg, #9fd7ff, #ffd39a);
}

.blog-card .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.proof {
  margin-top: 90px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial .brand {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.testimonial .person {
  margin-top: 16px;
  display: block;
  font-weight: 600;
}

.cta {
  margin: 100px 0 60px;
}

.cta-card {
  background: linear-gradient(135deg, #eaf2ff, #e9fbf6);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-muted);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 2;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
}

.page-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-actions {
  display: flex;
  gap: 12px;
}

.page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.post-link {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-link span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.post-visual {
  height: 200px;
  margin-bottom: 20px;
}

.content-card h2 {
  margin: 20px 0 12px;
  font-size: 1.4rem;
}

.content-card p + p {
  margin-top: 12px;
}

.content-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text-muted);
}

.side-card {
  background: linear-gradient(135deg, #eff5ff, #ecfaf6);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.side-card h3 {
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 12px;
  background: rgba(31, 139, 255, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.proximity {
  position: relative;
  --px: 50%;
  --py: 50%;
}

.proximity::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--px) var(--py),
    rgba(31, 139, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

@keyframes gradientShift {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(4%, 2%, 0) scale(1.05);
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 160px 160px, 160px 160px;
  }
}

@keyframes particleFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .meta {
    flex-direction: column;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .page-content {
    grid-template-columns: 1fr;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 100px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 16px 20px;
  }

  .nav-actions {
    display: none;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
