:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-accent: #800000;
  --color-accent-hover: #a31a1a;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header */
header {
  background: #000000;
  color: #ffffff;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .logo img { height: 40px; width: auto; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
header nav a {
  color: #ffffff; text-decoration: none; font-weight: 600;
  transition: color 0.2s ease;
}
header nav a:hover { color: var(--color-accent); }
header nav a[aria-current="page"] { border-bottom: 2px solid var(--color-accent); }

/* Footer */
footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}
footer a { color: var(--color-accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer img { width: 16px; height: 16px; vertical-align: middle; filter: invert(1); }

/* Typography */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; }
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { background: var(--color-accent-hover); transform: scale(1.05); }

/* Article / Content */
.article { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.article img { max-width: 100%; border-radius: 0.5rem; margin: 1rem 0; }
.article .meta { font-size: 0.9rem; color: #666; }

/* Hero Section */
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 3rem; }
.hero p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* Features */
.features ul { list-style: none; padding: 0; }
.features li { margin: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.features li::before { content: "✔"; color: var(--color-accent); position: absolute; left: 0; }

/* Responsive */
@media (max-width: 768px) {
  header { flex-direction: column; align-items: flex-start; }
  header nav ul { flex-direction: column; gap: 0.5rem; }
  .hero h1 { font-size: 2rem; }
}


/* How it works two-column layout */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

.how-text {
  flex: 1;
}

.how-text ol {
  padding-left: 1.25rem;
  line-height: 1.6;
}

.how-carousel {
  flex: 1;
}

.how-carousel img {
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .how-it-works {
    flex-direction: column;
    text-align: left;
  }
  .how-text, .how-carousel {
    width: 100%;
  }
  .how-carousel {
    margin-top: 1.5rem;
  }
}


/* ---------- Layout containers ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* How it works section layout */
.container.how {
  display: flex;
  align-items: flex-start;   /* align tops consistently */
  justify-content: center;   /* center as a group */
  gap: 3rem;                 /* more breathing room */
  margin: 4rem auto;
  max-width: 1200px;         /* slightly wider */
  padding: 0 2rem;
}

.container.how .steps {
  flex: 1;
  max-width: 450px;          /* keeps text readable */
}

.container.how .demo {
  flex: 1;
  max-width: 650px;          /* keep carousel from going too wide */
}

.container.how .demo .carousel {
  width: 100%;
}

.container.how {
  align-items: center;  /* center text vertically relative to carousel */
  min-height: 400px;    /* optional baseline, tweak as needed */
}

.container.how .demo img {
  max-height: 250px;    /* scale screenshots down */
  width: auto;
  margin: 0 auto;
}

/* ---------- Carousel (scroll-snap) ---------- */
.demo-frame { position: relative; }

.carousel {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  scrollbar-width: none;          /* Firefox */
}
.carousel::-webkit-scrollbar { display: none; } /* WebKit */

.carousel .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel .slide img {
  width: 100%;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 2;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: var(--color-accent); }

.carousel-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--color-accent); }

/* Responsive */
@media (max-width: 900px) {
  .container.how { flex-direction: column; }
  .carousel-btn { display: none; } /* touch swipe is fine on mobile */
}


.article.article--wide { max-width: 1100px; }

/* Blog list */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.blog-preview {
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-preview h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-preview h2 a {
  text-decoration: none;
  color: var(--color-text, #000);
}

.blog-preview h2 a:hover {
  color: var(--color-accent, #800000);
}

.blog-preview p {
  margin: 0.5rem 0 1.5rem;
  color: #333;
  line-height: 1.6;
}

.blog-preview .button {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-accent, #800000);
  color: #fff;
  text-decoration: none;
}

.blog-preview .button:hover {
  background: #a00000;
}

/* Responsive grid */
@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

