:root {
  --color-bg: #0A0A0A;
  --color-surface: #141414;
  --color-surface-alt: #1A1A1A;
  --color-text: #FAFAFA;
  --color-text-muted: #888888;
  --color-accent: #2563EB;
  --color-accent-hover: #3B82F6;
  --color-border: #222222;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-badge: 12px;

  --section-gap: 120px;
  --element-gap: 48px;
  --element-gap-sm: 24px;

  --max-width: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.snap-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}


a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--element-gap-sm);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__logo img {
  height: 22px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--element-gap-sm);
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.header__link:hover {
  color: var(--color-accent);
}

.header__link--x {
  display: flex;
  align-items: center;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--element-gap-sm);
  position: relative;
}

.hero__logo {
  width: 360px;
  height: auto;
  margin-bottom: var(--element-gap);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease-out forwards;
}

.hero__tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease-out 0.3s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
}

.hero__scroll-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.hero__arrow {
  color: var(--color-text-muted);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 768px) {
  .hero__logo {
    width: 240px;
  }
  .hero__tagline {
    font-size: 17px;
  }
}

/* ===== Section Label ===== */
.section-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--element-gap);
}

/* ===== Updates (latest tweet, static card) ===== */
.updates {
  padding: 0 var(--element-gap-sm);
}

.updates__feed {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tweet-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.tweet-card:hover {
  background: var(--color-surface-alt);
}

.tweet-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.tweet-card__handle {
  font-size: 14px;
  font-weight: 600;
}

.tweet-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

.tweet-card__more {
  align-self: center;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.tweet-card__more:hover {
  color: var(--color-text);
}

/* ===== Products / Carousel ===== */
.products {
  padding: 0 var(--element-gap-sm);
}

.carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: transform 0.5s ease-in-out;
  cursor: grab;
  user-select: none;
}

.carousel__track:active {
  cursor: grabbing;
}

.carousel__card {
  flex: 0 0 400px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, box-shadow 0.3s ease;
}

.carousel__card--active {
  transform: scale(1.05);
  opacity: 1;
}

.carousel__card--inactive {
  transform: scale(0.9);
  opacity: 0.6;
}

.carousel__card--product.carousel__card--active:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

.carousel__card--soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  opacity: 0.5;
  border: 1px dashed #333;
  transition: opacity 0.3s ease;
}

.carousel__card--soon:hover {
  opacity: 0.7;
}

.card-soon__icon {
  font-size: 60px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.card-soon__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Product card inner */
.card__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--element-gap-sm);
}

.card__screenshot {
  width: 100%;
  border-radius: var(--radius-inner);
  margin-bottom: var(--element-gap-sm);
}

.card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--element-gap-sm);
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--element-gap-sm);
}

.card__badge {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-badge);
  color: var(--color-text-muted);
}

.card__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.card__link:hover {
  color: var(--color-accent-hover);
}

/* Carousel arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.carousel:hover .carousel__arrow {
  opacity: 1;
}

.carousel__arrow:hover {
  background: var(--color-surface-alt);
}

.carousel__arrow--prev {
  left: 16px;
}

.carousel__arrow--next {
  right: 16px;
}

/* Carousel dots */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel__dot.active {
  background: var(--color-accent);
}

@media (min-width: 769px) and (max-width: 1023px) {
  .carousel__card {
    flex: 0 0 340px;
  }
}

@media (max-width: 768px) {
  .carousel__card {
    flex: 0 0 85vw;
  }
  .carousel__arrow {
    display: none;
  }
  .carousel__track {
    gap: 16px;
  }
}

/* ===== About ===== */
.about {
  padding: 0 var(--element-gap-sm);
  max-width: var(--max-width);
  margin: 0 auto;
}

.about__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--element-gap);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap-sm);
  max-width: 720px;
  margin: 0 auto;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
}

.stat-card__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.contact {
  padding: 0 var(--element-gap-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.contact__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--element-gap-sm);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.contact__item:hover {
  color: var(--color-accent);
}

.contact__icon {
  display: flex;
  align-items: center;
  font-size: 20px;
}

.contact__note {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px var(--element-gap-sm);
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.footer__link {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__sep {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .about__text {
    font-size: 16px;
  }
  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Scroll Reveal ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.js .reveal-stagger > .reveal:nth-child(2) { transition-delay: 150ms; }
.js .reveal-stagger > .reveal:nth-child(3) { transition-delay: 300ms; }

/* Section-level entrance */
.js .section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js .section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js .section-reveal .section-label {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.js .section-reveal.visible .section-label {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
