/* ==========================================================================
   BartKart — Design tokens (colors pulled from the BartKart app theme)
   ========================================================================== */
:root {
  --azure: #2563EB;
  --royal-blue: #003B95;
  --navy: #002D72;
  --teal: #00A896;
  --leaf-green: #46D334;
  --forest-green: #006837;
  --vivid-orange: #F39200;
  --destructive-red: #EF4444;

  --white: #FFFFFF;
  --card-grey: #F8F9FA;
  --muted-grey: #F2F4F7;
  --muted-text: #5D6D7E;
  --border-grey: #D5D8DC;

  --charcoal: #121212;
  --dark-surface: #1E1E1E;
  --dark-text: #E0E0E0;

  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 45, 114, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 45, 114, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 45, 114, 0.14);
  --container-w: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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 { text-decoration: none; color: inherit; }

ul { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }

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

.section { padding: 100px 0; }
.section-alt { background: var(--muted-grey); }

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 14px;
}
.section-label-light { color: #BFD6FF; }

.section-heading { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--muted-text); font-size: 1.05rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azure), var(--royal-blue));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-grey);
}
.btn-ghost:hover { border-color: var(--azure); color: var(--azure); transform: translateY(-2px); }

.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-header { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--border-grey), 0 8px 24px rgba(0, 45, 114, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--azure);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 110px;
  background: linear-gradient(180deg, #F5F8FF 0%, var(--white) 65%);
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  z-index: 0;
}
.shape-1 {
  width: 480px; height: 480px;
  top: -180px; right: -160px;
  background: radial-gradient(circle, var(--azure), transparent 70%);
}
.shape-2 {
  width: 380px; height: 380px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, var(--leaf-green), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--azure);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--azure), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted-text);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-text);
}

.hero-visual { position: relative; }
.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.card-barter { top: 8%; left: -8%; color: var(--teal); animation-delay: 0s; }
.card-rent { top: 46%; right: -10%; color: var(--azure); animation-delay: 1.3s; }
.card-sell { bottom: 6%; left: 6%; color: var(--vivid-orange); animation-delay: 2.6s; }

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

/* ==========================================================================
   What is BartKart
   ========================================================================== */
.what-is-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.what-is-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.what-is-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 20px; }
.what-is-copy p { color: var(--muted-text); margin-bottom: 16px; font-size: 1.05rem; }

.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--navy);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  background: var(--leaf-green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   How it Works — cards
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.icon-teal { background: rgba(0, 168, 150, 0.12); }
.icon-blue { background: rgba(37, 99, 235, 0.12); }
.icon-orange { background: rgba(243, 146, 0, 0.12); }

.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { color: var(--muted-text); }

/* ==========================================================================
   Rewards
   ========================================================================== */
.rewards-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rewards-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 18px; }
.rewards-copy p { color: var(--muted-text); font-size: 1.05rem; margin-bottom: 14px; }
.rewards-note {
  display: inline-block;
  color: var(--forest-green);
  font-weight: 700;
  background: rgba(70, 211, 52, 0.12);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.rewards-table {
  background: var(--card-grey);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reward-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reward-row:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

.reward-label { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.reward-emoji { font-size: 1.3rem; }
.reward-points {
  font-weight: 800;
  color: var(--vivid-orange);
  background: rgba(243, 146, 0, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Download
   ========================================================================== */
.section-download {
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  color: var(--white);
}

.download-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.download-copy h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.download-copy p { color: #C7D6F2; font-size: 1.05rem; margin-bottom: 28px; max-width: 480px; }

.notify-form { display: flex; gap: 12px; max-width: 440px; }
.notify-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.notify-form input::placeholder { color: #A9BEE3; }
.notify-form input:focus { outline: none; border-color: var(--white); }

.form-status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--leaf-green); }
.form-status.error { color: #FF8A8A; }
.section:not(.section-download) .form-status.success { color: var(--forest-green); }
.section:not(.section-download) .form-status.error { color: var(--destructive-red); }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.download-visual { display: flex; justify-content: center; }
.phone-mockup {
  width: 220px;
  height: 440px;
  background: var(--charcoal);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 18px;
  background: var(--charcoal);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--azure), var(--teal));
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.phone-logo {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--white);
  padding: 10px;
  object-fit: contain;
  animation: pulse 3s ease-in-out infinite;
}
.phone-tagline { color: var(--white); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-copy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-copy p { color: var(--muted-text); font-size: 1.05rem; margin-bottom: 30px; }

.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  width: fit-content;
}
a.contact-item:hover { color: var(--azure); }

.contact-form {
  background: var(--card-grey);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-grey);
  background: var(--white);
  color: var(--navy);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--azure);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--dark-text);
  padding: 56px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-name { color: var(--white); }
.footer-tagline { color: #9AA7B5; font-weight: 500; }
.footer-links { display: flex; gap: 24px; margin: 8px 0; }
.footer-links a { color: var(--dark-text); font-weight: 500; }
.footer-links a:hover { color: var(--azure); }
.footer-copy { color: #6B7785; font-size: 0.85rem; margin-top: 8px; }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.fade-up.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .floating-card, .phone-logo { animation: none; }
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */
.policy-hero {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, #F5F8FF 0%, var(--white) 100%);
  text-align: center;
}
.policy-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.policy-updated { color: var(--muted-text); font-weight: 600; }

.policy-content { padding: 20px 0 100px; }
.policy-content .container { max-width: 820px; }
.policy-content h2 {
  font-size: 1.4rem;
  margin: 44px 0 14px;
  padding-top: 14px;
  color: var(--royal-blue);
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--navy); }
.policy-content p { color: var(--muted-text); margin-bottom: 14px; }
.policy-content ul { margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px; }
.policy-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted-text);
}
.policy-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--azure);
}
.policy-content a { color: var(--azure); font-weight: 600; }
.policy-content strong { color: var(--navy); }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
}
.policy-table th, .policy-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border-grey);
  color: var(--muted-text);
  font-size: 0.95rem;
}
.policy-table th { background: var(--muted-grey); color: var(--navy); }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--azure);
}

.recommended-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--forest-green);
  background: rgba(70, 211, 52, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  margin-left: 10px;
}

.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px 0 20px;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  color: var(--muted-text);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--royal-blue));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-contact-footer {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: var(--card-grey);
  border: 1px solid var(--border-grey);
  border-radius: var(--radius-lg);
}
.policy-contact-footer p {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--navy);
}
.policy-contact-footer .contact-item {
  display: inline-flex;
  font-weight: 700;
  color: var(--azure);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner,
  .what-is-inner,
  .rewards-inner,
  .download-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .what-is-visual { order: 2; }
  .what-is-copy { order: 1; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .download-visual { order: -1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .btn-header { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .section { padding: 72px 0; }
  .hero { padding-top: 140px; }
  .floating-card { display: none; }
  .notify-form { flex-direction: column; }
  .contact-form { padding: 26px; }
}
