/* ── Reset & Variables ──────────────────────────────── */

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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-muted: #6b7280;
  --color-card-bg: #f9fafb;
  --color-card-border: #e5e7eb;
  --color-success: #059669;
  --max-width: 720px;
  --spacing: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

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

/* ── Layout ────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--color-card-border);
}

/* ── Typography ────────────────────────────────────── */

h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text);
}

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

.small {
  font-size: 0.875rem;
}

/* ── Language Switcher ──────────────────────────────── */

.lang-switcher {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}

.lang-switcher--header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switcher--header .lang-btn {
  color: rgba(255, 255, 255, 0.6);
}

.lang-switcher--header .lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-switcher--header .lang-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.lang-switcher--header .lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-lang {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}


.footer-lang .lang-link {
  padding: 0 !important;
}

.lang-link {
  background: none;
  border: none !important;
  padding: 0;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: none;
}

.lang-link:hover {
  color: var(--color-text);
}

.footer-lang .lang-link.active {
  color: var(--color-muted);
  cursor: default;
  opacity: 0.4;
  background: none !important;
}

.lang-btn {
  padding: 0.375rem 0.625rem;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.lang-btn:hover {
  background: var(--color-card-bg);
  color: var(--color-text);
}

.lang-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--color-card-border);
}

/* ── Header / Hero ─────────────────────────────────── */

header {
  text-align: center;
}

.hero-gradient {
  background: linear-gradient(135deg, #4F5BB0, #8387D4);
  padding: 5rem 0 2.5rem;
  color: #fff;
  position: relative;
}

.hero-icon {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  
}

.hero-app-name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.55rem;
}

.accented {
  position: relative;
  display: inline-block;
}

.accented::after {
  content: '\B4';
  color: #E8612C;
  position: absolute;
  left: 50%;
  transform: translateX(-30%) scaleX(1.3);
  top: -0.05em;
  font-size: 1em;
  font-weight: 900;
  pointer-events: none;
}

.hero-gradient h1 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.375rem;
  font-weight: 500;
}

header .subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 1rem auto 2rem;
  line-height: 1.5;
}

.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}

.btn-badge-wrap {
  position: relative;
  display: inline-block;
}

.badge-soon {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #6b71a8;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #4F5BB0;
  color: #fff;
}

.btn-primary:hover {
  background: #434da0;
}

.hero-gradient .btn-primary {
  background: #fff;
  color: #4F5BB0;
}

.hero-gradient .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-card-border);
  cursor: default;
  opacity: 0.6;
}

.hero-gradient .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 1;
}


/* ── Feature Items ─────────────────────────────────── */

#features {
  overflow: hidden;
}

.features-container {
  max-width: 840px;
}

.features-container > h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.feature-item + .feature-item {
  border-top: 1px solid var(--color-card-border);
}

.feature-text {
  text-align: center;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.feature-media {
  width: 60%;
  max-width: 260px;
}

.feature-media video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.carousel-track .video-wrap {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
}

.feature-media > .video-wrap {
  position: relative;
}

.video-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.video-wrap:hover .video-overlay {
  opacity: 1;
}

.video-overlay svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ── Dark Feature Row ──────────────────────────────── */

.feature-item--dark {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  background: linear-gradient(135deg, #4F5BB0, #8387D4);
  border-top: none;
}

.feature-item--dark + .feature-item {
  border-top: none;
}

.feature-item--dark h3 {
  color: #fff;
}

.feature-item--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.feature-item--dark .carousel-dot {
  background: rgba(255, 255, 255, 0.3);
}

.feature-item--dark .carousel-dot.active {
  background: #fff;
}

.feature-item--dark .carousel-arrow {
  color: rgba(255, 255, 255, 0.5);
}

.feature-item--dark .carousel-arrow:hover {
  color: #fff;
}

/* ── Video Carousel ───────────────────────────────── */

.video-carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.carousel-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-muted);
  transition: color 0.2s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  color: var(--color-text);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-card-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* ── Audience ──────────────────────────────────────── */

#audience {
  background: linear-gradient(135deg, #4F5BB0, #8387D4);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-top: none;
}

#audience + .container {
  border-top: none;
}

#audience h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

#audience .audience-item strong {
  color: #fff;
}

#audience .audience-item p {
  color: rgba(255, 255, 255, 0.7);
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.audience-item strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.audience-item p {
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* ── Signup Form ───────────────────────────────────── */

#signup {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 3rem var(--spacing);
  margin: 4rem 0;
  border: 1px solid var(--color-card-border);
}

#signup h2 {
  text-align: center;
}

#signup .section-description {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.signup-cta {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.success {
  text-align: center;
  color: var(--color-success);
  font-weight: 600;
  padding: 1rem 0;
}

/* ── Footer ────────────────────────────────────────── */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-card-border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-text);
}

.app-store-badge {
  opacity: 0.4;
  cursor: default;
}

.app-store-badge img {
  height: 40px;
}

/* ── Responsive ────────────────────────────────────── */

@media (min-width: 640px) {
  .hero-app-name {
    font-size: 3.25rem;
  }

  .hero-gradient h1 {
    font-size: 1.5rem;
  }

  .feature-item {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
  }

  .feature-item:nth-child(even) {
    flex-direction: row-reverse;
  }

  .feature-text {
    flex: 1;
    text-align: left;
  }

  .feature-media {
    flex: 0 0 260px;
    width: auto;
    max-width: none;
  }

  section {
    padding: 5rem 0;
  }
}
