:root {
  --bg: #f6f4ee;
  --bg-soft: #f0efe9;
  --surface: #ffffff;
  --surface-alt: #fdfaf3;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #2a5bd7;
  --accent-warm: #f59e0b;
  --border: rgba(31, 36, 48, 0.08);
  --shadow-soft: 0 28px 60px rgba(31, 36, 48, 0.1);
  --shadow-card: 0 20px 45px rgba(31, 36, 48, 0.08);
  font-size: 16px;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
}

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

body {
  font-family: 'Space Grotesk', 'PingFang SC', sans-serif;
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(138, 171, 255, 0.18), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(242, 201, 76, 0.15), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

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

button,
a.primary,
a.ghost,
.cta-button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:active,
a.primary:active,
a.ghost:active,
.cta-button:active {
  transform: translateY(1px);
}

.primary {
  color: #fff;
  background: linear-gradient(120deg, #2a5bd7, #6278ff, #9c96ff);
  box-shadow: 0 20px 40px rgba(65, 96, 214, 0.3);
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(31, 36, 48, 0.15);
}

.block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 2.5rem clamp(1.5rem, 6vw, 6rem) 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(42, 91, 215, 0.25);
}

.logo p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-actions {
  display: flex;
  gap: 0.7rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

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

.hero-content {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-text h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero-desc {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-desc.secondary {
  font-size: 1rem;
  color: #4a526e;
  margin-top: -0.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem 0 1.2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-badges span {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.floating-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.floating-panels article {
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.floating-panels .label {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.floating-panels .value {
  margin: 0.4rem 0 0;
  font-size: 1.9rem;
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.seo-highlight {
  margin: 0 clamp(1.5rem, 6vw, 6rem);
  padding: 1.8rem 2.4rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(42, 91, 215, 0.08), rgba(76, 210, 211, 0.08));
  border: 1px solid rgba(31, 36, 48, 0.08);
  box-shadow: var(--shadow-card);
}

.seo-highlight h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.seo-highlight p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.seo-tags span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(42, 91, 215, 0.12);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-card {
  width: 100%;
  padding: 2.5rem;
  border-radius: 32px;
  background: linear-gradient(165deg, #ffffff 0%, #f8f7f3 60%, #f1f4ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 40px 80px rgba(20, 29, 56, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(105, 152, 255, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: -35%;
  left: -25%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 214, 165, 0.25), transparent 65%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  color: #111731;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card-desc {
  margin: 0.7rem 0 0;
  color: #1f2642;
  line-height: 1.6;
  font-size: 1.02rem;
}

.card-emphasis {
  margin: 1.2rem 0 0.4rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(58, 82, 204, 0.08), rgba(15, 23, 42, 0.03));
  border: 1px solid rgba(58, 82, 204, 0.15);
}

.card-title.subtle {
  letter-spacing: 0.08em;
  color: #5b6284;
  font-size: 0.85rem;
  margin: 0;
}

.card-emphasis-value {
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.card-highlight {
  margin: 1rem 0 0;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(32, 52, 136, 0.16), rgba(79, 118, 255, 0.12));
  color: #142463;
  font-weight: 700;
  line-height: 1.4;
}

.card-benefits {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.card-checklist {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-checklist li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 600;
  color: #19203f;
}

.card-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f3fd1, #7b5bff);
  box-shadow: 0 4px 12px rgba(31, 63, 209, 0.3);
}

.card-benefits small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.card-note {
  margin: 0.45rem 0 0;
  color: #1c2650;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 600;
}

.support-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  width: max-content;
}

.support-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(34, 158, 217, 0.5));
}

.support-float:hover {
  transform: translateY(-2px) scale(1.05);
}

.support-float img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
}

.support-toast {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  padding: 12px 18px;
  border-radius: 24px;
  background: #229ED9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.support-toast::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.support-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.support-toast::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #229ED9 transparent transparent transparent;
}

@media (max-width: 640px) {
  .support-widget {
    right: 1rem;
    bottom: 1rem;
  }
}

.stats {
  margin: 3rem clamp(1.5rem, 6vw, 6rem) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats div {
  border-radius: 22px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stats h3 {
  margin: 0;
  font-size: 2.2rem;
}

.stats p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.logo-strip {
  padding: 3rem clamp(1.5rem, 6vw, 6rem) 1rem;
  color: var(--muted);
}

.logo-strip p {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
}

.logo-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-weight: 600;
  color: var(--text);
}

.section {
  padding: 4rem clamp(1.5rem, 6vw, 6rem);
}

.section.accent {
  background: var(--bg-soft);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.section-header p {
  color: var(--muted);
  line-height: 1.7;
}

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

.card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
}

.card p, .card ul {
  color: var(--muted);
  line-height: 1.6;
}

.card ul {
  padding-left: 1.1rem;
}

.feature-grid, .scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.feature, .scenario-grid article {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

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

.pricing-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.price {
  margin: 0.4rem 0 1.2rem;
  font-size: 3.1rem;
}

.price span {
  font-size: 1.4rem;
  vertical-align: super;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-note {
  color: var(--muted);
  line-height: 1.6;
}

.pricing-note a {
  color: var(--accent);
  font-weight: 600;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-list li {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-card);
}

.security-list span {
  color: var(--muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  color: var(--text);
}

.faq-content {
  display: none;
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  line-height: 1.5;
}

.faq-item.active .faq-content {
  display: block;
}

.faq-item.active button span:last-child {
  transform: rotate(45deg);
}

.cta {
  margin: 4rem clamp(1.5rem, 6vw, 6rem);
  padding: 3rem;
  border-radius: 32px;
  border: 1px solid rgba(31, 36, 48, 0.08);
  background: linear-gradient(135deg, rgba(208, 220, 255, 0.7), rgba(255, 244, 220, 0.8));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 35px rgba(77, 113, 255, 0.25);
}

.cta-button .cta-arrow {
  font-size: 1.2rem;
}

.cta-outline {
  border: 1px solid rgba(22, 36, 87, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 30px rgba(19, 40, 89, 0.12);
}

.footer {
  padding: 2rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 1000px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    justify-content: center;
    display: none;
  }

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

  .nav-links {
    flex-direction: column;
    text-align: center;
  }

  .nav-actions {
    flex-direction: column;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .hero-visual {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .cta {
    margin: 3rem 1.2rem;
    padding: 2.2rem;
  }
}
