:root {
  --bg: #0b0b10;
  --panel: #111218;
  --card: #12131a;
  --line: #232633;
  --text: #e5e7eb;
  --muted: #9aa0aa;
  --accent1: #e11d70;
  --accent2: #a78bfa;
  --accent3: #5be3ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --section-y: 96px;
}
@media (min-width: 980px) {
  :root {
    --section-y: 128px;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.2);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2430;
  transition: height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.site-header .nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.2s;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  transition: font-size 0.2s;
}
.brand-name span {
  color: var(--accent1);
}
.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}
.nav-links a:hover {
  opacity: 1;
}
.nav-cta {
  display: flex;
  gap: 10px;
}
.site-header.shrink .nav {
  height: 60px;
}
.site-header.shrink {
  background: rgba(10, 10, 12, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.site-header.shrink .brand-name {
  font-size: 20px;
}
@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s background, 0.15s color, 0.15s border;
}
.nav-guest{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--accent1);
  color: #071218;
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(var(--ts, 1));
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-w-full{
  width: 100%;
}
.btn-primary:hover {
  --ts: 1.03;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -200% 0 auto 0;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(var(--shineX, -100%)) rotate(25deg);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.btn-ghost {
  background: transparent;
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: #e2e8f0;
}
.btn-ghost:hover {
  background: #151826;
}
.btn-disabled {
  background: #2a2c36;
  color: #8a93a3;
  border-color: #2a2c36;
  pointer-events: none;
}

/* Hero */
.hero {
  position: relative;
  padding: var(--section-y) 0;
  min-height: 100vh;
  background: url("assets/hero/hero_abstract.webp") center top / cover no-repeat;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a6adbb;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 18, 24, 0.6);
}
.hero-title {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero-title {
    font-size: 72px;
  }
}
.hero-title .accent {
  color: var(--accent1);
}
.lead {
  max-width: 820px;
  color: #b7bec9;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-bullets {
  display: flex;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #aab2bf;
  font-size: 13px;
  justify-content: center;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.52),
    rgba(0, 0, 0, 0.28) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Section */
.section {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type {
  border-top: none;
}
.section .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a6adbb;
}
.section-title {
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0.2rem 0;
  text-align: center;
}

.section-subtitle {
  color: #b7bec9;
  max-width: 720px;
}
.section .container > .section-title,
.section .container > .section-subtitle {
  margin-left: 0;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.block {
  display: block;
  text-align: center;
  margin-top: 14px;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 24px;
}
.feature-grid .card{
  backdrop-filter: blur(10px);
}
@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tone-1 {
  background: linear-gradient(
    135deg,
    rgba(225, 29, 112, 0.08),
    rgba(167, 139, 250, 0.05)
  );
}
.tone-2 {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.09),
    rgba(236, 72, 153, 0.05)
  );
}
.tone-3 {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.09),
    rgba(225, 29, 112, 0.05)
  );
}
.tone-4 {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.09),
    rgba(56, 189, 248, 0.05)
  );
}
.tone-5 {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.09),
    rgba(225, 29, 112, 0.05)
  );
}
.tone-6 {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.09),
    rgba(167, 139, 250, 0.05)
  );
}

/* Pricing */
.plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pricing .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 8px;
}
.pricing .price span {
  font-size: 28px;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: #dbe4f0;
  background: #0f1118;
}
.featured {
  border-color: rgba(225, 29, 112, 0.35);
  box-shadow: 0 8px 50px rgba(225, 29, 112, 0.18);
}
.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #b7bec9;
}
.pricing-toggle {
  display: inline-flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #0f1118;
  margin-top: 14px;
}
.pricing-toggle .toggle-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.pricing-toggle .toggle-btn.active {
  background: #171924;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 112, 0.45);
}
.pricing-toggle .save {
  font-size: 11px;
  color: #ffd9ea;
  margin-left: 6px;
}

/* Steps (Our Features) */
.steps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin-top: 24px;
}
@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-num {
  font-size: 42px;
  color: #7e8696;
}

/* Reviews slider */
.reviews-slider {
  overflow: hidden;
}
.reviews-slider .track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
}
.reviews-slider .review {
  min-width: 100%;
}
@media (min-width: 900px) {
  .reviews-slider .review {
    min-width: calc(33.333% - 12px);
  }
}
.review .avatar {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  filter: grayscale(1);
}
.review .quote {
  color: #e5e7eb;
}
.review .author {
  color: #9aa0aa;
  font-size: 14px;
  margin-top: 8px;
}

/* Gradient border + glow on hover for Feature & Pricing cards */
.feature-grid .card,
.pricing.card {
  position: relative;
  overflow: hidden;
}
.feature-grid .card::before,
.pricing.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 112, 0.55),
    rgba(180, 111, 237, 0.35),
    rgba(91, 227, 255, 0.35)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-grid .card:hover::before,
.pricing.card:hover::before {
  opacity: 1;
}
.feature-grid .card:hover,
.pricing.card:hover {
  box-shadow: 0 18px 70px rgba(225, 29, 112, 0.18);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  margin-top: 40px;
  background: #0a0b10;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 18px;
  opacity: 0.8;
}
.footer-links a:hover {
  opacity: 1;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
}
.modal.show {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal-dialog {
  position: relative;
  margin: 10vh auto 0;
  background: #0f1118;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(92vw, 440px);
  padding: 22px;
  z-index: 1;
  color: #e5e7eb;
}
.modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  background: #0f1118;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
  border: 1px solid var(--line);
  color: #e5e7eb;
}
.auth-form {
  display: grid;
  gap: 8px;
}
.auth-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #0b0c12;
  color: #e5e7eb;
}
.auth-switch {
  text-align: center;
  margin-top: 12px;
  color: #9aa0aa;
}
.auth-switch a {
  color: var(--accent1);
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

/* User profile in nav */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-email {
  color: #cbd5e1;
  font-size: 14px;
}
.btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

/* Social links */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a1b23;
  border: 1px solid var(--line);
  color: #9aa0aa;
  transition: all 0.2s ease;
  margin-left: 8px;
}
.social-link:hover {
  background: #2a2c36;
  color: #e5e7eb;
  border-color: var(--accent1);
}

/* Download modal */
.download-content {
  display: grid;
  gap: 24px;
}
.download-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.setup-guides {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.setup-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}
.setup-toggle:hover {
  background: #1a1b23;
}
.setup-toggle .arrow {
  transition: transform 0.3s ease;
}
.setup-toggle.active .arrow {
  transform: rotate(180deg);
}
.setup-content {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.setup-content.active {
  max-height: 500px;
}
.setup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.setup-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  color: #9aa0aa;
  cursor: pointer;
  transition: all 0.2s ease;
}
.setup-tab.active {
  background: #1a1b23;
  color: #e5e7eb;
  border-color: var(--accent1);
}
.setup-panel {
  display: none;
}
.setup-panel.active {
  display: block;
}
.setup-panel h4 {
  margin: 0 0 12px 0;
  color: #e5e7eb;
}
.setup-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #b7bec9;
}
.setup-panel li {
  margin-bottom: 8px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Progress + Back to top */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: #e11d70;
  z-index: 60;
  box-shadow: 0 0 12px rgba(225, 29, 112, 0.65);
}
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0f1118;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Features: abstract flower background with smooth transitions to hero and pricing */
#features {
  position: relative;
  overflow: hidden;
}
#features::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -60px;
  height: 120%;
  background: linear-gradient(
      to top,
      rgba(11, 11, 16, 0) 40%,
      rgba(11, 11, 16, 1) 100%
    ),
    url("assets/backgrounds/features_worldmap.webp");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  z-index: 0;
  opacity: 0.98;
}
#features > .container {
  position: relative;
  z-index: 1;
}
#features::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 16, 0),
    rgba(11, 11, 16, 1) 80%
  );
}

/* Hero: no overlay/dimming */
.hero-has-bg {
  background: url("assets/hero/hero_abstract.webp") center top/cover no-repeat !important;
  position: relative;
}
.hero-has-bg::before,
.hero-has-bg::after {
  content: none !important;
  background: none !important;
}
