/* ============================================================
   FixBazar — Global Stylesheet
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --navy-mid: #334155;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-light: #dbeafe;
  --accent: #38bdf8;
  --white: #ffffff;
  --off-white: #f8fafc;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-400: #94a3b8;
  --grey-600: #475569;
  --grey-800: #1e293b;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --green: #10b981;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
  --shadow-blue: 0 8px 32px rgba(37,99,235,.25);
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ── Beta Banner ── */
.beta-banner {
  background: var(--amber);
  color: #78350f;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 9px 24px;
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 200;
}
.beta-tag {
  background: #78350f;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo-sub {
  font-size: 10px;
  color: var(--grey-400);
  font-weight: 400;
  margin-left: -4px;
  align-self: flex-end;
  margin-bottom: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-200);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-sm { font-size: 14px; padding: 9px 20px; }
.btn-lg { font-size: 16px; padding: 15px 32px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section basics ── */
section { padding: 80px 0; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.section-title.center { text-align: center; }
.section-subtitle {
  font-size: 17px;
  color: var(--grey-600);
  margin-top: 14px;
  line-height: 1.65;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ── */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 55%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}
.hero-sub {
  font-size: 17px;
  color: var(--grey-600);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-600);
}
.trust-badge .badge-icon {
  width: 28px; height: 28px;
  background: var(--blue-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(56,189,248,0.08));
  border-radius: 24px;
  z-index: 0;
}
.hero-image-placeholder {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
  border-radius: 20px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.9;
}
.hero-image-placeholder .img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
  padding: 40px;
}
.hero-image-placeholder .img-fallback svg { opacity: 0.5; }

/* ── What Is ── */
.what-is { background: var(--white); }
.what-intro { text-align: center; font-size: 17px; color: var(--grey-600); margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--navy);
}
.card-body { font-size: 14px; color: var(--grey-600); line-height: 1.65; }

/* ── How It Works ── */
.how-it-works { background: var(--grey-50); }
.steps-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; position: relative; }
.steps-row::before {
  content: '';
  position: absolute;
  top: 30px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--blue-light), var(--blue), var(--blue-light));
  z-index: 0;
}
.step-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 36px; height: 36px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--navy); }
.step-body { font-size: 13px; color: var(--grey-600); line-height: 1.6; }

/* ── Features ── */
.features { background: var(--navy); }
.features .section-title { color: var(--white); text-align: center; }
.features .section-label { color: var(--accent); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.feat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.feat-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-3px);
}
.feat-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feat-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 8px; }
.feat-body { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ── Registration Form ── */
.register-section { background: var(--grey-50); }
.form-wrap {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 24px;
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.form-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.form-subtitle { font-size: 15px; color: var(--grey-600); margin-bottom: 24px; }
.disclaimer-box {
  background: #f8fafc;
  border: 1px solid var(--grey-200);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.6;
}
.disclaimer-box strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.disclaimer-box ol { padding-left: 16px; }
.disclaimer-box ol li { margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
label .req { color: var(--red); margin-left: 2px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
input.error, select.error { border-color: var(--red); }
.error-msg { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 18px;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  flex: 1;
  min-width: 120px;
}
.radio-option input { width: auto; margin: 0; }
.radio-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.checkbox-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 6px; }
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.checkbox-option input { width: auto; margin: 0; }
.checkbox-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}
.device-section { display: none; }
.device-section.visible { display: block; }
.beta-checkbox {
  background: var(--grey-50);
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.beta-checkbox:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.beta-checkbox input { width: auto; margin-top: 2px; flex-shrink: 0; }
.beta-checkbox label { margin: 0; font-size: 13px; font-weight: 400; color: var(--grey-600); cursor: pointer; }
.privacy-note { text-align: center; font-size: 12px; color: var(--grey-400); margin-top: 12px; }
.privacy-note a { color: var(--blue); text-decoration: underline; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 64px; height: 64px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}
.success-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.success-body { font-size: 15px; color: var(--grey-600); }
.submit-error {
  display: none;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 14px;
  text-align: center;
}

/* ── Countdown ── */
.countdown-section { background: var(--navy-soft); padding: 60px 0; text-align: center; }
.countdown-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.countdown-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.countdown-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 100px;
}
.countdown-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.04em;
}
.countdown-unit { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 6px; }
.countdown-fallback { font-size: 14px; color: rgba(255,255,255,0.4); margin-top: 16px; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .logo-text { color: var(--white); }
.footer-tagline { font-size: 13px; margin-top: 10px; opacity: 0.5; line-height: 1.5; }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.social-link:hover { background: var(--blue); color: var(--white); }
.footer-links-group h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links-group a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 10px; transition: color var(--transition); }
.footer-links-group a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.footer-disclaimer { font-size: 11px !important; color: rgba(255,255,255,0.2) !important; line-height: 1.7 !important; }

/* ── Legal / Inner pages ── */
.page-hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--grey-200);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.page-hero .meta { font-size: 13px; color: var(--grey-400); }
.legal-content { padding: 60px 0; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--grey-100);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: var(--grey-600); line-height: 1.75; margin-bottom: 14px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { font-size: 15px; color: var(--grey-600); line-height: 1.75; margin-bottom: 6px; }
.legal-content a { color: var(--blue); text-decoration: underline; }
.legal-content strong { color: var(--navy); font-weight: 600; }

/* ── Contact Page ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-info-group { margin-bottom: 32px; }
.contact-info-group h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.contact-info-group p, .contact-info-group a { font-size: 14px; color: var(--grey-600); line-height: 1.7; }
.contact-info-group a { color: var(--blue); }
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}
textarea { resize: vertical; min-height: 120px; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .three-col { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row::before { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 20px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .steps-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .countdown-num { font-size: 36px; }
  .countdown-block { padding: 18px 20px; min-width: 72px; }
  .radio-group { flex-direction: column; }
}
