@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --soft: #f8fafc;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  color: #334155;
  font-size: 14px;
}

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

.section {
  padding: 72px 0;
}

#how-it-works {
  border-top: none;
  padding: 56px 0 36px;
  scroll-margin-top: 0;
}

.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 80%);
  min-height: calc(100vh - 70px);
  display: block;
  padding-top: 10px;
  position: relative;
}

.marquee-bar {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.hero-grid.two-col {
  grid-template-columns: 1fr;
}

.pill {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  font-size: 12px;
  color: var(--primary);
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 12px 0 12px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border 120ms ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--primary);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  padding: 20px;
}

.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.info-item {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  align-self: start;
}

.step-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.step-card p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
  font-size: 15px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.grid-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card-body {
  padding: 12px 14px 16px;
}

.cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: #64748b;
  font-size: 14px;
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border 120ms ease, box-shadow 120ms ease;
}

.textarea {
  resize: vertical;
  min-height: 110px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-row {
  display: grid;
  gap: 12px;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  gap: 10px;
  animation: marquee 30s linear infinite;
  animation-play-state: running;
  padding: 10px;
  will-change: transform;
}

.marquee-item {
  flex: 0 0 120px;
  max-width: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.marquee-item img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}

.marquee-item p {
  display: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bounce {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: bounce 1.2s ease-in-out infinite;
}

.cta-down {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  gap: 10px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.admin-grid .sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow: auto;
}

.asset-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.asset-card img {
  height: 140px;
  object-fit: cover;
}

.asset-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-grid {
  display: grid;
  gap: 14px;
}

.pill-secondary {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 13px;
}

.status {
  font-size: 14px;
  margin-top: 8px;
  color: var(--muted);
}

.status.error {
  color: #be123c;
}

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

@media (min-width: 900px) {
  .hero-grid.two-col {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-grid {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    gap: 12px;
  }
  .nav {
    gap: 12px;
  }
  #how-it-works {
    padding: 32px 0 28px;
    scroll-margin-top: 0;
  }
}
