/* ===================================================
   Semantyr Landing — Styles
   Dark theme, Apple-inspired, fully responsive
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --bg-tertiary: #111111;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --accent: #2997ff;
  --accent-hover: #0a84ff;
  --border: rgba(255, 255, 255, 0.08);
  --nav-height: 56px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Top Nav ---------- */
.nav-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-top__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-top__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-top__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-top__logo-text {
  font-size: 18px;
}

.nav-top__links {
  display: flex;
  gap: 28px;
}

.nav-top__links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-top__links a:hover {
  color: var(--text-primary);
}

.nav-top__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-top__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav-top__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-top__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-top__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-top__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  flex-direction: column;
  gap: 8px;
}

.nav-top__mobile.open {
  display: flex;
}

.nav-top__mobile a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-top__mobile a:hover {
  color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 40px);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}

.hero__content {
  max-width: 780px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__tag {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.01em;
}

.hero__tag--purple {
  border-color: rgba(192, 132, 252, 0.25);
  color: #c084fc;
}

.hero__tag--rose {
  border-color: rgba(251, 113, 133, 0.25);
  color: #fb7185;
}

.hero__tag--teal {
  border-color: rgba(45, 212, 191, 0.25);
  color: #2dd4bf;
}

.hero__tag--more {
  font-style: italic;
  border-color: transparent;
  color: var(--text-tertiary);
}

.hero__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Bottom Strip ---------- */
.strip {
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-primary);
}

.strip__inner {
  max-width: 780px;
  margin: 0 auto;
}

.strip__tagline {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 4px;
}

.strip__name {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.strip__cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.strip__cta:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Video Section ---------- */
.video-section {
  padding: 0;
  background: var(--bg-primary);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.video-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-section__wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 20px;
  overflow: hidden;
  border-radius: 0;
}

.video-section__wrapper video {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: var(--bg-secondary);
}


/* ---------- Carousel ---------- */
.carousel-section {
  padding: 40px 0 100px;
  background: var(--bg-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-section__title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding: 0 24px;
  background: linear-gradient(180deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-section__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 0 24px;
}

.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__card {
  flex: 0 0 auto;
  width: calc(33.333% - 14px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.carousel__card-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}

.carousel__arrow--left {
  left: 6px;
}

.carousel__arrow--right {
  right: 6px;
}

/* ---------- Sign Up ---------- */
.signup {
  padding: 100px 24px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.signup__inner {
  max-width: 640px;
  margin: 0 auto;
}

.signup__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.signup__text {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 36px;
}

.signup__cta {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.signup__cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: scale(1.02);
}

/* ---------- Contact Form ---------- */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 12px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--accent);
  background: rgba(41, 151, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 4px;
}

.contact-form__submit:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form__submit-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-form__submit:hover .contact-form__submit-icon {
  transform: translateX(4px);
}

.contact-form__alt {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-align: center;
}

.contact-form__email-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-form__email-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Success state */
.contact-form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  animation: fadeInUp 0.5s ease forwards;
}

.contact-form__success svg {
  color: #30d158;
}

.contact-form__success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-form__success p {
  font-size: 15px;
  color: var(--text-secondary);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
.footer {
  padding: 20px 24px;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
}

.footer p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===================================================
   RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .carousel__card {
    width: calc(50% - 10px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 52px;
  }

  .nav-top__links {
    display: none;
  }

  .nav-top__hamburger {
    display: flex;
  }

  .hero__tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero {
    min-height: 65vh;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .hero__subtitle {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 28px;
  }

  .hero__cta {
    padding: 10px 24px;
    font-size: 15px;
  }

  .strip {
    padding: 32px 24px;
  }

  .strip__cta {
    padding: 10px 24px;
    font-size: 15px;
  }

  .video-section__wrapper {
    padding: 40px 16px 16px;
  }

  .carousel-section {
    padding: 60px 0 80px;
  }

  .carousel {
    padding: 0 16px;
  }

  .carousel__card {
    width: calc(85% - 10px);
  }

  .carousel__arrow {
    display: none;
  }

  .signup {
    padding: 80px 24px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    width: 100%;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .nav-top__logo-text {
    font-size: 15px;
  }
}
