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

:root {
  --bg: #131315;
  --surface: #141416;
  --surface-highest: #353437;
  --surface-bright: #39393b;
  --surface-lowest: #0e0e10;
  --text: #e5e1e4;
  --text-secondary: #c9c4d4;
  --text-muted: #938e9d;
  --primary: #cbbeff;
  --primary-container: #9d8af2;
  --on-primary-container: #331a82;
  --secondary: #4ae183;
  --outline-variant: #484552;
  --error: #ffb4ab;
}

html {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-bright) transparent;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-bright);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--outline-variant);
}

/* ---- Navbar ---- */

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  padding: 1.5rem 2rem;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 0 auto;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  color: var(--text);
}

.navbar-logo {
  display: flex;
  align-items: center;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-images {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.4) contrast(1.25);
  user-select: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-image.active {
  opacity: 1;
}

.hero-overlay-lr {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--bg), rgba(19, 19, 21, 0.4), transparent);
}

.hero-overlay-bt {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--bg), transparent, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-content-inner {
  max-width: 48rem;
}

.hero-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* ---- Email form ---- */

.email-wrap {
  position: relative;
  max-width: 28rem;
  min-height: 4rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.email-input {
  flex-grow: 1;
  background: var(--surface-highest);
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  box-shadow: 0 0 0 1px var(--primary-container);
}

.email-button {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.email-button:hover {
  opacity: 0.9;
}

.email-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-success {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-top: 0.75rem;
}

.email-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* ---- Features ---- */

.features {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 4rem;
  margin-bottom: 0.75rem;
}

.features-label {
  border-bottom: 1px solid rgba(72, 69, 82, 0.15);
  padding-bottom: 1rem;
}

.features-label span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-family: "Inter", sans-serif;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  padding: 2rem 0 1rem;
}

.feature-card + .feature-card {
  border-top: 1px solid rgba(72, 69, 82, 0.1);
}

.feature-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Responsive ---- */

@media (min-width: 640px) {
  .email-form {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .features {
    margin-top: 0;
  }

  .features-label {
    margin-bottom: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .feature-card {
    padding: 1rem 0 1rem 2rem;
  }

  .feature-card + .feature-card {
    border-top: none;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}
