/* ==========================================================================
   Neat — Landing Page Stylesheet
   Dark theme · Mobile-first · Production-ready
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f5;
  background-color: #0a0a0f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #60a5fa;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}

.btn--primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.25);
}

.btn--ghost {
  background: transparent;
  color: #f0f0f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f0f0f5;
  flex-shrink: 0;
}

.nav__icon {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  overflow: hidden;
  display: block;
}

.nav__wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cta {
  display: none;
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---------- Language Selector ---------- */
.lang-selector {
  position: relative;
}

.lang-selector__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: rgba(240, 240, 245, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-selector__btn:hover {
  color: #f0f0f5;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-selector__btn svg {
  flex-shrink: 0;
}

.lang-selector__chevron {
  transition: transform 0.2s ease;
}

.lang-selector__btn[aria-expanded="true"] .lang-selector__chevron {
  transform: rotate(180deg);
}

.lang-selector__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  max-height: 320px;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.lang-selector__dropdown.lang-selector__dropdown--open {
  display: block;
}

.lang-selector__dropdown [role="option"] {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: rgba(240, 240, 245, 0.75);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-selector__dropdown [role="option"]:hover {
  color: #f0f0f5;
  background: rgba(255, 255, 255, 0.08);
}

.lang-selector__dropdown [role="option"][aria-selected="true"] {
  color: #3b82f6;
  font-weight: 600;
}

/* Dropdown scrollbar */
.lang-selector__dropdown::-webkit-scrollbar {
  width: 6px;
}

.lang-selector__dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.lang-selector__dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 64px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 40px;
}

.hero__text {
  text-align: center;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f0f0f5 0%, rgba(240, 240, 245, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.6);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 0.8125rem;
  color: rgba(240, 240, 245, 0.4);
  letter-spacing: 0.02em;
}

/* Phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__phone-mockup {
  position: relative;
  width: 260px;
  max-width: 100%;
}

.hero__preview,
.hero__screenshot-placeholder,
.feature__screenshot-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19;
  background: #141420;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__preview {
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 22px 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #232327 0%, #17171b 100%);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero__preview::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero__preview::before,
.hero__screenshot-placeholder::before,
.feature__screenshot-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(59, 130, 246, 0.06) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.04) 100%
  );
  pointer-events: none;
}

.hero__preview-header,
.hero__preview-mosaic,
.hero__preview-stats,
.hero__preview-footer {
  position: relative;
  z-index: 1;
}

.hero__preview-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 2px 24px;
}

.hero__preview-icon {
  width: 72px;
  height: 72px;
  border-radius: 21px;
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero__preview-copy {
  display: grid;
  gap: 6px;
}

.hero__preview-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(86, 169, 255, 0.88);
}

.hero__preview-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #f7f8fb;
}

.hero__preview-subtitle {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(240, 240, 245, 0.58);
}

.hero__preview-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 2px;
  margin-bottom: 18px;
}

.hero__preview-tile {
  min-height: 88px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero__preview-tile--wide {
  grid-column: span 2;
  min-height: 72px;
}

.hero__preview-tile--accent {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(250, 204, 21, 0.26), rgba(249, 115, 22, 0.14));
}

.hero__preview-tile--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(59, 130, 246, 0.12));
}

.hero__preview-tile--muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(30, 41, 59, 0.55), rgba(59, 130, 246, 0.08));
}

.hero__preview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 2px;
  margin-bottom: 18px;
}

.hero__preview-stat {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__preview-stat-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f7f8fb;
}

.hero__preview-stat-label {
  font-size: 0.8rem;
  color: rgba(240, 240, 245, 0.5);
}

.hero__preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px;
}

.hero__preview-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(240, 240, 245, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
}

.placeholder-icon {
  color: rgba(240, 240, 245, 0.2);
}

.placeholder-text {
  font-size: 0.75rem;
  color: rgba(240, 240, 245, 0.2);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---------- Features ---------- */
.features {
  padding: 40px 0;
}

.feature {
  padding: 80px 0;
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.feature__visual {
  display: flex;
  justify-content: center;
}

.feature__screenshot-slot {
  width: 240px;
  max-width: 100%;
}

.feature__screenshot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature__content {
  text-align: center;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.feature__icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.feature__icon--orange {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.feature__icon--purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.feature__icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.feature__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature__description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.6);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.feature__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.feature__list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(240, 240, 245, 0.75);
}

.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 22%;
  background: rgba(59, 130, 246, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

/* ---------- Highlights ---------- */
.highlights {
  padding: 100px 0;
}

.highlights__title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
}

.highlights__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.highlight-card {
  padding: 32px 28px;
  background: #141420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.highlight-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  margin-bottom: 20px;
}

.highlight-card h3 {
  font-size: 1.125rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.highlight-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.55);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 50%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-banner__content {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 32px;
  background: #141420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.cta-banner__content::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 50%,
    rgba(139, 92, 246, 0.1) 100%
  );
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.cta-banner__content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.cta-banner__content p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.55);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  overflow: hidden;
  display: block;
}

.footer__wordmark {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f5;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(240, 240, 245, 0.5);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #f0f0f5;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(240, 240, 245, 0.3);
}

/* ---------- Privacy Page ---------- */
.privacy {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: calc(100vh - 120px);
}

.privacy__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.privacy__header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: 8px;
}

.privacy__updated {
  font-size: 0.875rem;
  color: rgba(240, 240, 245, 0.4);
  margin-bottom: 20px;
}

.privacy__intro {
  font-size: 1.125rem;
  color: rgba(240, 240, 245, 0.7);
  line-height: 1.7;
}

.privacy__section {
  max-width: 720px;
  margin: 0 auto 36px;
}

.privacy__section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 10px;
}

.privacy__section p {
  font-size: 1rem;
  color: rgba(240, 240, 245, 0.6);
  line-height: 1.75;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .highlight-card,
  .lang-selector__btn,
  .lang-selector__chevron {
    transition: none;
  }
}

/* ==========================================================================
   Responsive — Tablet  (≥ 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 0 60px;
  }

  .hero__text {
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__phone-mockup {
    width: 240px;
  }

  /* Features */
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .feature__content {
    text-align: left;
  }

  .feature__description {
    margin-left: 0;
    margin-right: 0;
  }

  .feature__list {
    margin: 0;
  }

  .feature--reverse .feature__grid {
    direction: rtl;
  }

  .feature--reverse .feature__grid > * {
    direction: ltr;
  }

  /* Highlights */
  .highlights__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ==========================================================================
   Responsive — Desktop  (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .nav__actions {
    gap: 16px;
  }

  .nav__cta {
    display: inline-flex;
  }

  /* Hero */
  .hero__content {
    gap: 64px;
    padding: 0;
  }

  .hero__phone-mockup {
    width: 280px;
  }

  /* Features */
  .feature {
    padding: 100px 0;
  }

  .feature__grid {
    gap: 80px;
  }

  .feature__screenshot-slot {
    width: 260px;
  }
}
