/* ─── RESET & FONTS ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #fff;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

/* ─── VARIABLES ─── */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #EEF2FF;
  --accent: #06B6D4;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ─── */
.btn-primary-sm {
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary-sm:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-hero {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}

.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}

.btn-ghost-hero {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 10px;
  transition: color 0.2s;
}

.btn-ghost-hero:hover {
  color: var(--primary);
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
}

.mobile-nav.open {
  display: flex;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #F8FAFF 0%, #F0F4FF 50%, #FAF5FF 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 60% -100px, rgba(79, 70, 229, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 90% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero preview */
.hero-preview {
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.preview-window {
  width: 100%;
  max-width: 820px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.preview-dots span:first-child {
  background: #FC8181;
}

.preview-dots span:nth-child(2) {
  background: #F6AD55;
}

.preview-dots span:nth-child(3) {
  background: #68D391;
}

.preview-url {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}

.preview-content {
  display: flex;
  height: 280px;
}

.preview-sidebar {
  width: 130px;
  background: #F9FAFB;
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  flex-shrink: 0;
}

.psb-logo {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  margin: 0 auto 16px;
}

.psb-item {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  cursor: default;
  font-weight: 500;
}

.psb-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.preview-main {
  flex: 1;
  padding: 14px;
  overflow: hidden;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pstat {
  background: var(--primary-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.pstat.accent {
  background: #ECFDF5;
}

.pstat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.pstat.accent .pstat-val {
  color: #059669;
}

.pstat-label {
  font-size: 0.65rem;
  color: var(--muted);
}

.preview-table-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.preview-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.ptr-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  font-size: 0.7rem;
}

.ptr-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.ptr-row.ptr-header {
  background: #F9FAFB;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.pill.green {
  background: #ECFDF5;
  color: #059669;
}

.pill.yellow {
  background: #FFFBEB;
  color: #D97706;
}

.pill.blue {
  background: var(--primary-light);
  color: var(--primary);
}

.pill.purple {
  background: #F5F3FF;
  color: #7C3AED;
}

/* ─── LOGOS STRIP ─── */
.logos-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
}

.logos-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.logo-placeholder {
  font-size: 0.875rem;
  font-weight: 700;
  color: #D1D5DB;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FEATURES ─── */
.features-section {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: 96px 0;
  background: linear-gradient(180deg, #FAFAFE 0%, #fff 100%);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-light);
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  flex-shrink: 0;
}

/* ─── BENEFITS ─── */
.benefits-section {
  padding: 96px 0;
}

.benefits-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.benefits-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefits-list li div {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefits-list li strong {
  color: var(--text);
  font-weight: 700;
}

.benefits-visual {
  position: relative;
  height: 380px;
}

.metrics-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: absolute;
  width: 300px;
  top: 20px;
  right: 20px;
}

.metrics-header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text);
}

.metrics-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.metrics-row:last-of-type {
  border-bottom: none;
}

.metrics-row span {
  color: var(--muted);
}

.metrics-row strong {
  font-weight: 700;
}

.accent-green {
  color: #059669;
}

.accent-blue {
  color: var(--primary);
}

.metrics-bar-wrap {
  margin-top: 14px;
}

.metrics-bar-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.metrics-bar {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.metrics-bar-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.5s ease;
}

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  min-width: 220px;
}

.fc1 {
  bottom: 100px;
  left: 0;
}

.fc2 {
  bottom: 10px;
  left: 40px;
}

.fc-icon {
  font-size: 1.3rem;
}

.fc-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.fc-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 96px 0;
  background: #F8FAFC;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-methods {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.method-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.method div {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.method strong {
  color: var(--text);
  font-weight: 700;
}

.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #F9FAFB;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-primary-form {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 8px;
}

.btn-primary-form:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary-form:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  margin-top: 16px;
  font-size: 0.875rem;
  text-align: center;
}

.form-msg.success {
  color: #059669;
  font-weight: 600;
}

.form-msg.error {
  color: #DC2626;
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .contact-form-wrap {
    padding: 24px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ─── CTA ─── */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

.cta-box .btn-hero {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.cta-box .btn-hero:hover {
  background: #F0F4FF;
}

/* ─── FOOTER ─── */
.footer {
  background: #111827;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer .logo span {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .benefits-inner {
    grid-template-columns: 1fr;
  }

  .benefits-visual {
    height: 300px;
  }

  .metrics-card {
    width: 260px;
    top: 0;
    right: 0;
  }

  .fc1,
  .fc2 {
    display: none;
  }
}

@media (max-width: 600px) {

  .header-nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

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

  .hero {
    padding: 110px 0 60px;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-content {
    height: 220px;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }
}