*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --text: #e4e4ec;
  --text-secondary: #9d9db0;
  --accent: #6c63ff;
  --accent-hover: #7e77ff;
  --border: #2a2a38;
  --radius: 12px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 4rem 0;
  text-align: center;
}
.hero-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 24px rgb(108 99 255 / 28%);
  overflow: hidden;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero .highlight {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Gallery */
.gallery-section {
  padding: 2rem 0 5rem;
}
.gallery-section h2 {
  text-align: center;
  margin-bottom: 0.25rem;
  font-size: 2rem;
}
.gallery-eyebrow {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}
.gallery-grid {
  column-count: 2;
  column-gap: 0.85rem;
}
.gallery-item {
  --gallery-aspect: 1;

  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  break-inside: avoid;
  isolation: isolate;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.gallery-item::after {
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgb(8 8 12 / 88%));
  content: '';
  pointer-events: none;
}
.gallery-item:hover {
  border-color: rgb(108 99 255 / 72%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
  transform: translateY(-4px);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: var(--gallery-aspect);
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.025);
}
.gallery-item figcaption {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  left: 0.75rem;
  z-index: 2;
  color: rgb(228 228 236 / 84%);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-item--portrait {
  --gallery-aspect: 4 / 5;
}
.gallery-item--landscape {
  --gallery-aspect: 4 / 3;
}
.gallery-item--tall {
  --gallery-aspect: 3 / 4;
}
.gallery-item--square {
  --gallery-aspect: 1;
}

/* How It Works */
.how-it-works {
  padding: 3rem 0 4rem;
}
.how-it-works h2,
.features h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.step {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.step a {
  color: var(--accent);
  text-decoration: none;
}
.step a:hover {
  text-decoration: underline;
}

/* Features */
.features {
  padding: 3rem 0 4rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About Bot */
.about-bot {
  padding: 1rem 0 4rem;
}
.about-bot-content {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-bot h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.about-bot p {
  color: var(--text-secondary);
}
.about-bot p + p {
  margin-top: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

/* CTA Section */
.cta {
  padding: 3rem 0 4rem;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }
  .gallery-grid {
    column-count: 3;
    column-gap: 1.1rem;
  }
  .gallery-item {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 479px) {
  .hero-logo {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img {
    transition: none;
  }
}
