:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.08);
  --pink: #ff5fae;
  --violet: #7e6dff;
  --cyan: #39c2ff;
  --teal: #47d7c3;
  --shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.84);
  border-bottom: 1px solid rgba(17,24,39,0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 82px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,247,251,0.96));
  padding: 0;
  border: 1px solid rgba(17,24,39,0.05);
  box-shadow: 0 12px 26px rgba(17,24,39,0.08);
  filter: saturate(1.03) contrast(1.02);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

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

.nav-links a,
.nav-cta,
.btn { text-decoration: none; }

.nav-links > a,
.nav-item > a {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

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

.nav-item {
  position: relative;
}

.nav-cta-mobile {
  display: none !important;
}

.nav-cta-desktop {
  display: inline-flex;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-item > a::after {
  content: '';
  width: 7px;
  height: 7px;
  display: inline-block;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.8;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-item.is-open > a::after,
.nav-item:hover > a::after {
  transform: rotate(225deg) translateY(-1px);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 20px 50px rgba(17,24,39,0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  transition-delay: 0s;
}

.dropdown-menu a {
  color: var(--text);
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: var(--surface-soft);
}

.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.12s;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.nav-cta:hover,
.btn:hover { transform: translateY(-1px); }

.nav-cta:hover {
  box-shadow: 0 18px 34px rgba(126,109,255,0.24);
}

.nav-cta {
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
  border: 1px solid rgba(126,109,255,0.16);
  box-shadow: 0 14px 28px rgba(126,109,255,0.18);
}

.hero {
  padding: 34px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: start;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(126,109,255,0.08);
  color: #5849c7;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-copy h2,
.about-box h2,
.cta-box h2 {
  margin: 18px 0 0;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 10ch;
}

.hero-text,
.section-copy p,
.feature-card p,
.about-text p,
.cta-box p {
  color: var(--muted);
  line-height: 1.75;
}

.about-text p {
  text-align: justify;
}

.hero-text {
  max-width: 54ch;
  margin-top: 14px;
  font-size: 0.98rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  padding: 14px 22px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--violet), var(--cyan));
  color: white;
  box-shadow: 0 16px 34px rgba(126,109,255,0.18);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(17,24,39,0.08);
  background: #fff;
}

.hero-panel,
.feature-card,
.about-box,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 24px;
  padding: 18px;
}

.panel-card {
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(17,24,39,0.06);
}

.panel-label {
  color: #6f61dd;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-card h3 {
  margin: 12px 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.panel-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.panel-list span {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(17,24,39,0.05);
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.65));
}

.section-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: start;
}

.section-grid.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.section-copy h2,
.about-box h2,
.cta-box h2 {
  font-size: clamp(2.2rem, 4.3vw, 3.7rem);
}

.about-box h2 {
  max-width: 11ch;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-card {
  padding: 28px;
  border-radius: 24px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.accent-card {
  background: linear-gradient(135deg, rgba(255,95,174,0.06), rgba(57,194,255,0.08));
}

.about-box,
.cta-box {
  padding: 34px;
  border-radius: 28px;
}

.about-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
}

.cta-section {
  padding-bottom: 96px;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(242,247,255,0.98));
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(17,24,39,0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 18px 40px rgba(17,24,39,0.08);
  }

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

  .nav-item,
  .nav-links > a {
    width: 100%;
  }

  .nav-item > a,
  .nav-links > a {
    justify-content: space-between;
    padding: 12px 4px;
  }

  .dropdown-menu {
    position: static;
    min-width: auto;
    margin-top: 6px;
    padding: 8px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid rgba(17,24,39,0.05);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: none;
    transition: none;
  }

  .has-dropdown.is-open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 10px 12px;
  }

  .nav-cta-mobile {
    display: inline-flex !important;
    margin-top: 4px;
    width: 100%;
    color: var(--muted);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 12px 4px;
    justify-content: flex-start;
    border-radius: 0;
    font-weight: 500;
  }

  .nav-cta-mobile:hover {
    color: var(--text);
    background: transparent;
  }

  .hero,
  .section {
    padding-top: 56px;
  }

  .hero-grid,
  .section-grid,
  .section-grid.reverse,
  .about-box,
  .cta-box { grid-template-columns: 1fr; }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 8vw, 3.6rem);
  }

  .hero-panel {
    padding: 16px;
  }
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0a0f16;
  color: rgba(255,255,255,0.88);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
  padding: 24px 0 28px;
  align-items: center;
}

.footer-left p {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  font-size: 0.94rem;
}

.footer-left p:first-child {
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a,
.footer-socials a {
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-links a {
  position: relative;
  letter-spacing: 0.01em;
}

.footer-links a:not(:last-child)::after {
  content: '•';
  margin-left: 18px;
  color: rgba(255,255,255,0.28);
}

.footer-links a:hover,
.footer-socials a:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.footer-socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: transparent;
}

.footer-socials svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero {
    padding: 20px 0 32px;
  }
  .hero h1 { max-width: none; }
  .hero-text {
    font-size: 0.96rem;
  }
  .hero-actions,
  .cta-actions { flex-direction: column; }
  .btn,
  .nav-cta { width: 100%; }
  .section {
    padding: 64px 0;
  }
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .footer-right {
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .footer-links a:not(:last-child)::after {
    display: none;
  }
  .footer-socials {
    justify-content: flex-start;
  }
}
