:root {
  --color-bg-base: #1c1e26;
  --color-bg-surface: #2c2f3a;
  --color-bg-accent: #323545;
  --color-border: #3a3e4b;
  --color-text-primary: #f2f4f7;
  --color-text-secondary: #aeb6c2;
  --color-primary: #7ea2ff;
  --color-secondary: #39e5d1;
  --color-warning: #ffb84d;
  --color-success: #43e8a8;
  --gradient-primary: linear-gradient(120deg, #5c7cff, #00d4c4);
  --gradient-hero: radial-gradient(ellipse at top right, rgba(126, 162, 255, 0.5), transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(57, 229, 209, 0.35), transparent 45%), #11131a;
  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.6;
}

ul, ol {
  list-style: none;
  list-style-type: none;
}

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

button {
  font-family: inherit;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 80px);
  background: rgba(28, 30, 38, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.navbar__menu {
  display: flex;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.navbar__menu li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar__menu a {
  color: #aeb6c2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: block;
  padding: 4px 0;
}

.navbar__menu a:hover,
.navbar__menu a.active {
  color: #f2f4f7;
}

.navbar__lang {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 8px 0;
  background: var(--color-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 140px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-dropdown li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
}

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

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 900px) {
  .navbar__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(28, 30, 38, 0.98);
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
  }

  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

.hero {
  min-height: 100vh;
  padding: 120px clamp(20px, 5vw, 80px) 48px;
  background: var(--gradient-hero);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 16px 0;
}

.hero__content p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
}

.tag,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.app-store-btn .apple-logo {
  flex-shrink: 0;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-store-label {
  font-size: 0.7rem;
  opacity: 0.85;
  line-height: 1.2;
}

.app-store-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-store-btn--large {
  padding: 16px 32px;
}

.app-store-btn--large .app-store-title {
  font-size: 1.4rem;
}

/* Hero Screenshot */
.hero__screenshot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* CTA Download */
.cta-download {
  display: flex;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  height: 48px;
  padding: 0 24px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 15px 40px rgba(92, 124, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-text-primary);
}

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

.hero__devices {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.device-card {
  width: 220px;
  height: 460px;
  border-radius: 32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.device-card.tilted.left {
  transform: rotate(-12deg) translateY(40px);
}

.device-card.tilted.right {
  transform: rotate(12deg) translateY(40px);
}

.device-card.center {
  width: 240px;
  height: 500px;
  background: rgba(255, 255, 255, 0.08);
}

.device-screen {
  background: var(--color-bg-surface);
  height: 100%;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-screen.dark {
  background: #0f131b;
  color: #fff;
}

.device-screen h2,
.device-screen h3 {
  margin: 0;
}

.chip-grid {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-grid span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

main {
  padding: 80px clamp(20px, 6vw, 96px);
}

.section {
  margin-bottom: 120px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 8px 0;
}

.section-heading p {
  color: var(--color-text-secondary);
}

/* Features Hub Layout */
.features-hub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 20px;
  min-height: 600px;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hub-line {
  stroke: rgba(126, 162, 255, 0.2);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}

.hub-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.hub-cards--left {
  align-items: flex-end;
}

.hub-cards--right {
  align-items: flex-start;
}

.hub-card {
  background: rgba(44, 47, 58, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  max-width: 280px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 162, 255, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(126, 162, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f2f4f7;
}

.hub-card p {
  font-size: 0.9rem;
  color: #aeb6c2;
  line-height: 1.5;
}

.hub-center {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hub-phone {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, rgba(30, 33, 44, 0.9), rgba(15, 19, 27, 0.95));
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(126, 162, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hub-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: linear-gradient(180deg, #1a1d26, #0f131b);
}

/* Fallback when no image */
.hub-phone-img[src=""],
.hub-phone-img:not([src]) {
  background: linear-gradient(180deg, #1a1d26, #0f131b);
}

@media (max-width: 1024px) {
  .features-hub {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hub-lines {
    display: none;
  }

  .hub-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hub-cards--left,
  .hub-cards--right {
    align-items: center;
  }

  .hub-card {
    max-width: 320px;
    flex: 1 1 280px;
  }

  .hub-center {
    order: -1;
  }

  .hub-phone {
    width: 240px;
    height: 480px;
  }
}

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

.how__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.how__phone {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, rgba(30, 33, 44, 0.9), rgba(15, 19, 27, 0.95));
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(57, 229, 209, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.how__phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  background: linear-gradient(180deg, #1a1d26, #0f131b);
}

.how__list {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how__card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(44, 47, 58, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
  list-style: none !important;
}

.how__card:hover {
  transform: translateX(8px);
  border-color: rgba(57, 229, 209, 0.5);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(57, 229, 209, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.how__number {
  font-size: 1.3rem;
  color: #39e5d1;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 36px;
}

.how__card-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f2f4f7;
}

.how__card-content p {
  font-size: 0.9rem;
  color: #aeb6c2;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .how__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .how__visual {
    order: -1;
  }

  .how__phone {
    width: 240px;
    height: 480px;
  }
}

/* Screenshot Slider */
.screenshot-slider {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.slider-container {
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 20px;
}

.slider-slide {
  flex: 0 0 auto;
  width: 280px;
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 33, 44, 0.9), rgba(15, 19, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-slide:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(126, 162, 255, 0.15);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.slider-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(44, 47, 58, 0.8);
  color: #f2f4f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-btn:hover {
  background: rgba(126, 162, 255, 0.3);
  border-color: rgba(126, 162, 255, 0.5);
  box-shadow: 0 0 30px rgba(126, 162, 255, 0.3);
  transform: scale(1.05);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-btn:disabled:hover {
  background: rgba(44, 47, 58, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  transform: none;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dot.active {
  background: #7ea2ff;
  box-shadow: 0 0 12px rgba(126, 162, 255, 0.5);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slider-slide {
    width: 220px;
    height: 440px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .slider-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .screenshot-slider {
    flex-direction: column;
  }

  .slider-btn--prev,
  .slider-btn--next {
    display: none;
  }

  .slider-container {
    width: 100%;
  }

  .slider-track {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .slider-slide {
    scroll-snap-align: center;
    width: 260px;
    height: 520px;
  }
}

.testimonial-card {
  background: var(--color-bg-surface);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.testimonial-card blockquote {
  font-size: 1.3rem;
  margin: 0 0 16px;
  line-height: 1.6;
}

.testimonial-card .author {
  color: var(--color-text-secondary);
}

.marquee {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--color-primary);
}

.cta-card {
  background: linear-gradient(140deg, rgba(126, 162, 255, 0.25), rgba(57, 229, 209, 0.25));
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-form.submitted {
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  border-radius: 12px;
  border: none;
  padding: 14px 16px;
}

.cta-form .thanks {
  color: #fff;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.site-footer {
  padding: 48px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-primary);
}

@media (max-width: 640px) {
  .hero__devices {
    flex-direction: column;
  }

  .device-card,
  .device-card.center {
    transform: none;
    width: 240px;
    height: 480px;
  }

  .orbit__layout {
    padding: 40px 24px;
  }
}
