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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --dark: #0f172a;
  --dark-600: #1e293b;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #16a34a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-600);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--slate-500);
  max-width: 640px;
  margin: 12px auto 0;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--slate-200);
}
.btn-outline:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.btn-ghost {
  background: transparent;
  color: var(--dark-600);
  border: 1.5px solid var(--slate-300);
}
.btn-ghost:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--slate-100);
  transform: translateY(-1px);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }

.nav-cta { margin-left: 16px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124,58,237,0.05) 0%, transparent 60%);
  z-index: -1;
}

.hero-inner { max-width: 800px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.1875rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

/* Browser Mockup */
.hero-visual { max-width: 720px; margin: 0 auto; }

.browser-mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.05);
  background: var(--white);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-300);
}

.url-bar {
  flex: 1;
  margin-left: 8px;
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--slate-400);
}

.browser-content {
  display: flex;
  min-height: 300px;
}

.mock-sidebar {
  width: 56px;
  padding: 16px 12px;
  background: var(--slate-50);
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-nav-item {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--slate-200);
}
.mock-nav-item.active { background: var(--primary); opacity: 0.8; }

.mock-main { flex: 1; padding: 20px; }

.mock-header {
  height: 24px;
  width: 40%;
  background: var(--slate-200);
  border-radius: 4px;
  margin-bottom: 20px;
}

.mock-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-card {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mock-card-icon { font-size: 1.25rem; }

.mock-card-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

.mock-line {
  height: 8px;
  background: var(--slate-200);
  border-radius: 4px;
}
.mock-line.w30 { width: 30%; }
.mock-line.w40 { width: 40%; }
.mock-line.w50 { width: 50%; }
.mock-line.w60 { width: 60%; }
.mock-line.w70 { width: 70%; }

.mock-table { margin-top: 8px; }

.mock-row {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}
.mock-row.header { border-bottom: 2px solid var(--slate-200); }
.mock-row.header .mock-cell { background: var(--slate-300); height: 10px; }

.mock-cell {
  height: 8px;
  background: var(--slate-200);
  border-radius: 3px;
}
.mock-cell.w15 { width: 15%; }
.mock-cell.w20 { width: 20%; }
.mock-cell.w25 { width: 25%; }
.mock-cell.w30 { width: 30%; }

/* ===== Pain Points ===== */
.pain {
  padding: 100px 0;
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pain-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  text-align: left;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.pain-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.pain-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-50);
  border-radius: var(--radius-sm);
  color: var(--slate-500);
  margin-bottom: 16px;
}

.pain-card h3 { margin-bottom: 8px; }
.pain-card p { font-size: 0.9375rem; color: var(--slate-500); line-height: 1.6; }

/* ===== Features ===== */
.features {
  padding: 100px 0;
  text-align: center;
  background: var(--slate-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.feature-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.9375rem; color: var(--slate-500); line-height: 1.65; }

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  text-align: center;
}

.steps {
  max-width: 560px;
  margin: 48px auto 0;
  text-align: left;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 { margin-bottom: 6px; margin-top: 4px; }
.step-content p { font-size: 0.9375rem; color: var(--slate-500); line-height: 1.6; }

.step-connector {
  width: 2px;
  height: 32px;
  background: var(--slate-200);
  margin-left: 23px;
}

/* ===== Entities ===== */
.entities {
  padding: 80px 0;
  text-align: center;
  background: var(--slate-50);
}

.entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tag {
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-600);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  transition: border-color 0.2s, background 0.2s;
}
.tag:hover {
  border-color: var(--primary);
  background: rgba(37,99,235,0.04);
  color: var(--primary);
}

/* ===== CTA Section ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, #7c3aed 100%);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 0;
  background: var(--dark);
  color: var(--slate-400);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 320px; }
.footer-brand .logo span { color: var(--white); }
.footer-brand p { margin-top: 12px; font-size: 0.875rem; line-height: 1.6; }

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--white); font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
}
.footer-bottom p { font-size: 0.8125rem; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .mobile-toggle { display: flex; }

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

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

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

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .browser-content { min-height: 220px; }
  .mock-cards { flex-direction: column; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 100px 0 48px; }
  .pain, .features, .how-it-works { padding: 64px 0; }
  .cta { padding: 64px 0; }
}

/* ===== Contact Page ===== */
.contact-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, #7c3aed 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,255,255,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
}

.contact-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.contact-back:hover { color: white; }

.contact-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.contact-hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.contact-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.92);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== Contact form section ===== */
.contact-form-section {
  padding: 80px 0 100px;
  background: var(--slate-50);
}

.contact-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.04);
  padding: 48px;
}

.contact-form-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form-card-desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-direct-link {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-400);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-direct-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-direct-link a:hover { text-decoration: underline; }

/* ===== Form elements ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input::placeholder {
  color: var(--slate-400);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}


.form-success {
  text-align: center;
  padding: 20px 0 8px;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  background: rgba(22,163,74,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}

.form-success h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-success p {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .contact-hero { padding: 110px 0 64px; }
  .contact-form-card { padding: 32px 24px; }
  .trust-item { font-size: 0.8125rem; padding: 8px 14px; }
}

@media (max-width: 480px) {
  .contact-hero { padding: 96px 0 48px; }
  .contact-form-card { padding: 24px 16px; }
}
