@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0E0E10;
  --ink-soft: #4B4B52;
  --paper: #FFFFFF;
  --cloud: #F7F7F8;
  --line: #ECECEF;
  --dark-bg: #111111;
  --dark-card: #1A1A1A;
  --accent: #E3E3E380;
  --blue: #2F6FED;
  --green: #17A365;
  --orange: #F2994A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Clash Display', 'Manrope', sans-serif;
  margin: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Auth pages compatibility */
.auth-wrap {
  max-width: 440px;
  margin: 100px auto;
  padding: 40px;
  background: var(--dark-card); /* Dark Spenda theme */
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  color: #fff;
  font-family: 'Manrope', sans-serif;
}
.auth-wrap h2, .auth-title { font-family: 'Clash Display', sans-serif; font-size: 32px; font-weight: 600; margin-bottom: 8px; text-align: center; }
.auth-sub { font-size: 15px; color: #a0a0a0; text-align: center; margin-bottom: 32px; line-height: 1.5; }
.auth-wrap input {
  width: 100%; padding: 14px 16px; margin-bottom: 20px; border: 1px solid #333; background: #222; color: #fff; border-radius: 12px; font-size: 16px; outline: none; transition: border 0.2s;
}
.auth-wrap input:focus { border-color: #555; }
.auth-wrap label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #ccc; }
.auth-wrap button.btn {
  width: 100%; padding: 16px; background: #fff; color: #111; font-weight: 700; border-radius: 12px; font-size: 16px; transition: opacity 0.2s;
}
.auth-wrap button.btn:hover { opacity: 0.9; }
.auth-wrap button.secondary { background: #333; color: #fff; margin-top: 12px; }
.auth-foot { text-align: center; font-size: 14px; color: #a0a0a0; margin-top: 24px; }
.auth-foot a { color: #fff; font-weight: 600; text-decoration: underline; }
.auth-logo { text-align: center; margin-bottom: 24px; display: flex; justify-content: center; align-items: center; gap: 8px; font-family: 'Clash Display', sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
.auth-logo svg path:first-child { fill: #fff; }
.auth-logo svg path:last-child { stroke: #111; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.alert.error { background: #fee2e2; color: #b91c1c; border: 1px solid #f87171; }
.alert.success, .alert.info { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* Dashboard compatibility */
.dash-header { padding: 20px 32px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dash-content { padding: 32px; max-width: 800px; margin: 0 auto; }
.dash-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; }

/* 
  NEW HOMEPAGE STYLES 
*/

/* Navbar */
.site-nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 24px 32px;
  z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  background: rgba(244, 244, 244, 0.85);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  max-width: 1440px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-blog {
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}
.nav-blog:hover { opacity: 0.8; }
.nav-dl-label { font-weight: 600; font-size: 14px; }
.nav-qr {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-left {
  max-width: 600px;
}
.hero-eyebrow {
  display: inline-block;
  background: #FEF6E7;
  color: #865503;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #1a1a1a;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 32px;
}
.hero-stores {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-stores img {
  height: 56px;
  transition: opacity 0.2s;
}
.hero-stores img:hover { opacity: 0.8; }
.hero-right {
  flex-shrink: 0;
  width: 420px;
}

/* Dark Features Section */
.features-section {
  background: var(--dark-bg);
  padding: 100px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.features-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}
.features-sub {
  font-size: 18px;
  color: #a0a0a0;
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}
.feature-card {
  background: var(--dark-card);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  filter: blur(40px);
  border-radius: 50%;
}
.feature-card img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.feature-card h4 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  z-index: 2;
  position: relative;
}

/* Cards Section */
.cards-section {
  background: var(--cloud);
  padding: 100px 56px;
  text-align: center;
  overflow: hidden;
}
.cards-toggle {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.cards-toggle button {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid var(--line);
}
.cards-toggle button.active {
  border-color: #111;
  color: #111;
}
.cards-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
}
.cards-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}
.cards-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.cards-pills .pill {
  padding: 16px 24px;
  background: linear-gradient(90deg, #EAEAEA, #F5F5F5);
  border-radius: 12px;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-soft);
}
.cards-visual {
  position: relative;
  height: 400px;
  max-width: 600px;
  margin: 0 auto;
}
.cards-visual img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
}
.cards-visual .img-1 { top: 0; z-index: 3; }
.cards-visual .img-2 { top: 30px; z-index: 2; transform: translateX(-50%) scale(0.95); }
.cards-visual .img-3 { top: 60px; z-index: 1; transform: translateX(-50%) scale(0.9); }

/* Testimonials */
.testimonials-section {
  padding: 100px 56px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}
.test-scroll-container {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.test-scroll-container::-webkit-scrollbar { display: none; }
.test-card {
  flex: 0 0 340px;
  scroll-snap-align: center;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
}
.test-card:active { cursor: grabbing; }
.test-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.test-card p {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.test-author {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.test-author h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.test-author span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.test-author .stars { font-size: 14px; }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 64px 56px;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-logo { font-family: 'Clash Display', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.footer-desc { color: var(--ink-soft); max-width: 300px; line-height: 1.5; font-size: 15px; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 16px; }
.footer-col ul li a { color: var(--ink-soft); font-size: 15px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #111; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 140px; }
  .hero-stores { justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .site-nav { padding: 16px; }
  .nav-inner { padding: 0 16px; height: 64px; }
  .nav-logo { font-size: 18px; }
  .nav-right { gap: 8px; }
  .nav-blog { padding: 8px 12px; font-size: 13px; }
  .nav-dl-label { display: none; }
  .nav-qr { width: 34px; height: 34px; }
}
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; justify-content: center; height: auto; padding: 12px; gap: 12px; }
  .nav-logo { width: 100%; justify-content: center; margin-bottom: 4px; }
  .nav-right { width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero-title { font-size: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .cards-title { font-size: 36px; }
  .cards-visual img { width: 100%; }
  .testimonials-section { padding: 80px 24px; }
  .test-card { flex: 0 0 85vw; padding: 24px 20px; }
}
