@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --bg-alt: #ffffff;
  --ink: #0c1424;
  --muted: #4f5b6b;
  --accent: #6a3aee;
  --accent-strong: #5a34e6;
  --accent-warm: #ffb27a;
  --accent-cool: #7b9af5;
  --stroke: rgba(12, 20, 36, 0.12);
  --radius: 24px;
  --shadow: 0 30px 90px rgba(12, 20, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 90vw);
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(106, 58, 238, 0.08), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(255, 178, 122, 0.12), transparent 55%),
    radial-gradient(circle at 40% 90%, rgba(155, 180, 255, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(246, 244, 241, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 80px;
  height: 46px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  color: var(--muted);
}

.main-nav a {
  position: relative;
}

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

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-cool));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(106, 58, 238, 0.2);
}

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

.button.ghost {
  border-color: var(--stroke);
  color: var(--muted);
  background: transparent;
}

.testimonials .button.ghost,
.site-footer .button.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.hero {
  padding: 90px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 12px 0 20px;
}

.hero-copy h1 span {
  color: var(--accent-strong);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-metrics {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-metrics strong {
  font-size: 1.8rem;
  display: block;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.hero-card {
  width: min(320px, 80vw);
  border-radius: 22px;
  overflow: hidden;
  /* background: #fff; */
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.hero-card.secondary {
  position: absolute;
  right: -10px;
  top: 70px;
  width: 240px;
  animation-delay: -2s;
}

.hero-card.tertiary {
  position: absolute;
  left: -20px;
  bottom: -60px;
  width: 300px;
  animation-delay: -4s;
}

.hero-orbit {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px dashed rgba(106, 58, 238, 0.2);
  animation: spin 12s linear infinite;
}

.section {
  padding: 80px 0;
}

.connect {
  padding-top: 40px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.split-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.split-copy p strong {
  color: var(--accent-strong);
}

.split-media {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.split-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-card.small {
  width: min(260px, 70vw);
  margin-left: auto;
}

.muted {
  color: var(--muted);
}

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

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

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

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

.service-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(106, 58, 238, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  color: var(--accent-strong);
  font-weight: 600;
}

.highlight {
  background: linear-gradient(140deg, rgba(106, 58, 238, 0.06), transparent 60%);
}

.portfolio-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-button {
  border: 1px solid var(--stroke);
  background: var(--bg-alt);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab-button.is-active {
  background: var(--accent-strong);
  color: #fff;
  border-color: transparent;
}

.tab-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.portfolio-grid.is-hidden {
  display: none;
}

.portfolio-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(12, 20, 36, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.portfolio-card span {
  display: block;
  padding: 14px 16px 20px;
  font-weight: 600;
  text-align: center;
}

.portfolio-card:hover {
  transform: translateY(-6px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--stroke);
}

.feature-card h3 {
  margin-top: 0;
}

.testimonials {
  background: #0c1424;
  color: #f5f7fb;
}

.testimonials .section-header p {
  color: rgba(245, 247, 251, 0.7);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.testimonial-track {
  position: relative;
  min-height: 260px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: rgba(255, 255, 255, 0.06);
  padding: 32px;
  border-radius: var(--radius);
}

.testimonial-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.slider-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.cta {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid rgba(106, 58, 238, 0.12);
  border-bottom: 1px solid rgba(106, 58, 238, 0.12);
  color: #2a1b46;
  text-align: center;
}

.cta h3 {
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 12px;
}

.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card div {
  padding: 0 18px 20px;
}

.blog-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.blog-card a {
  color: var(--accent-strong);
  font-weight: 600;
}

.site-footer {
  background: #0c1424;
  color: #f5f7fb;
  padding: 60px 0 30px;
}

.blog-hero {
  padding: 80px 0 40px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 18px 40px rgba(12, 20, 36, 0.08);
  max-width: 520px;
}

.blog-search input {
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  background: transparent;
}

.blog-search span {
  color: var(--muted);
}

.blog-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
}

.blog-count {
  font-weight: 600;
  color: var(--accent-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(106, 58, 238, 0.2);
  color: var(--accent-strong);
  font-size: 0.85rem;
}

.tag.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: start;
}

.site-footer img {
  width: 56px;
}

.site-footer a {
  color: rgba(245, 247, 251, 0.8);
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 247, 251, 0.6);
}

.article {
  display: grid;
  gap: 28px;
}

.article-hero {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 24px;
}

.article-body ul {
  padding-left: 20px;
  color: var(--muted);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 80px 20px auto;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
  }

  body[data-nav-open="true"] .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  body[data-nav-open="true"] .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body[data-nav-open="true"] .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 60px;
  }

  .hero-card.secondary,
  .hero-card.tertiary,
  .hero-orbit {
    display: none;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    justify-self: center;
  }
}
