/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:        #09090b;
  --clr-surface:   #111113;
  --clr-surface-2: #18181b;
  --clr-border:    rgba(255,255,255,0.08);
  --clr-text:      #f4f4f5;
  --clr-muted:     #a1a1aa;
  --clr-accent:    #6366f1;
  --clr-accent-2:  #8b5cf6;
  --clr-green:     #22c55e;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.2s ease;
  --container:     1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Typography helpers
=========================== */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2), #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn--primary:hover {
  background: #4f52e0;
  border-color: #4f52e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-muted);
}
.btn--ghost:hover { color: var(--clr-text); }

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-border);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn--lg {
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
}

/* ===========================
   Nav
=========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--clr-border);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-text);
  flex-shrink: 0;
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  border-radius: var(--radius-sm);
}

.logo__img {
  height: 34px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav__links a {
  font-size: 14px;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--clr-text); }

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ===========================
   Hero
=========================== */
.hero {
  padding: 100px 0 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-green);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero__note {
  font-size: 13px;
  color: var(--clr-muted);
  margin-bottom: 72px;
}

/* Mock UI */
.hero__card-wrap {
  display: flex;
  justify-content: center;
}

.mock-card {
  width: 100%;
  max-width: 560px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  text-align: left;
}

.mock-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface-2);
}

.mock-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mock-card__dot--red    { background: #ef4444; }
.mock-card__dot--yellow { background: #f59e0b; }
.mock-card__dot--green  { background: #22c55e; }

.mock-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-muted);
  margin-left: 8px;
}

.mock-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }

.mock-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
}

.mock-field--total {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.08);
}

.mock-field--total .mock-field__value {
  color: var(--clr-accent);
  font-weight: 700;
  font-size: 16px;
}

.mock-field__label { font-size: 12px; color: var(--clr-muted); font-weight: 500; }
.mock-field__value { font-size: 13px; font-weight: 600; color: var(--clr-text); }

.mock-items {
  margin-top: 6px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.mock-items__header,
.mock-items__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
}

.mock-items__header {
  background: var(--clr-surface-2);
  color: var(--clr-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mock-items__row { border-top: 1px solid var(--clr-border); font-size: 12px; }
.mock-items__row span:not(:first-child) { text-align: right; }
.mock-items__header span:not(:first-child) { text-align: right; }

.mock-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--clr-border);
  font-size: 12px;
  color: var(--clr-green);
  background: var(--clr-surface-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-green);
  box-shadow: 0 0 6px var(--clr-green);
  animation: pulse 2s infinite;
}

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

/* ===========================
   Social proof
=========================== */
.social-proof {
  padding: 56px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-top: 80px;
  text-align: center;
}

.social-proof__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-muted);
  margin-bottom: 28px;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.fake-logo {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.fake-logo:hover { color: rgba(255,255,255,0.45); }

/* ===========================
   Features
=========================== */
.features { padding: 100px 0; }

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

.feature-card {
  padding: 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  color: var(--clr-accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.65;
}

/* ===========================
   How it works
=========================== */
.how-it-works {
  padding: 100px 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 24px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

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

.step p {
  font-size: 14px;
  color: var(--clr-muted);
  line-height: 1.65;
}

.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-muted);
  padding-top: 14px;
  flex-shrink: 0;
}

/* ===========================
   CTA Section
=========================== */
.cta-section {
  padding: 100px 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.cta-section__inner {
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 17px;
  color: var(--clr-muted);
  margin-bottom: 36px;
}

/* ===========================
   Footer
=========================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--clr-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 13px;
  color: var(--clr-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--clr-text); }

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; gap: 16px; }
  .step__arrow { transform: rotate(90deg); padding: 0; }
  .nav__links { display: none; }
}

@media (max-width: 600px) {
  .features__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .nav__cta .btn--ghost { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
  .social-proof__logos { gap: 28px; }
}
