:root {
  --navy-900: rgb(37, 51, 83);
  --navy-700: #334155;
  --navy-600: #475569;
  --slate-400: #64748b;
  --slate-700: #475871;
  --white: #ffffff;
  --modal-transition-speed: 0.2s;
}

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

body {
  font-family:
    'DM Sans',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--navy-700);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

h1 {
  font-weight: 700;
  color: var(--navy-900);
}

.hero-title-highlight {
  color: #435db1;
}

.logo {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 6rem 0 6rem;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 4rem);
  gap: 5rem;
}

.hero-content {
  z-index: 2;
  padding-top: 12vh;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
}

.hero-title {
  display: flex;
  align-items: center;
  margin-top: 0;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--navy-600);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-description--spacing {
  margin-bottom: 1rem;
}

.hero-download {
  display: inline-flex;
  flex-direction: column;
  padding-right: 2rem;
  gap: 1rem;
}

.hero-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 13px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding-bottom: 10px;
  border-bottom-width: 2px;
  border-color: transparent;
  border-style: solid;
  background: transparent;
  font-family: inherit;
}

.btn-primary {
  color: var(--navy-700);
  border-radius: 0px;
}

.btn-primary:hover {
  color: var(--navy-900);
}

.btn-secondary {
  color: var(--slate-400);
}

.btn-secondary:hover {
  color: var(--slate-700);
}

.btn-secondary img {
  filter: brightness(0) saturate(100%) invert(48%) sepia(8%) saturate(1000%)
    hue-rotate(180deg) brightness(95%) contrast(85%);
}

.btn-secondary:hover img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(8%) saturate(1000%)
    hue-rotate(180deg) brightness(95%) contrast(85%);
}

.btn-show-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: #435db1;
  font-family: inherit;
  color: var(--white);
  width: 100%;
}

.btn-show-main:hover {
  background: var(--navy-900);
}

.btn-show-main svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn svg,
.btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Phone Mockups */
.hero-phones {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  gap: 1.5rem;
}

.phone-carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  width: 100%;
}

.phone-mockup {
  position: absolute;
  background: var(--white);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.5s ease-in-out;
}

.phone-mockup img {
  display: block;
  width: 240px;
  border-radius: 28px;
  background: var(--white);
}

/* Position states controlled by data attribute */
.phone-mockup[data-position='center'] {
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  z-index: 3;
}

.phone-mockup[data-position='left'] {
  transform: translateX(-140px) translateY(40px) rotate(-8deg) scale(0.9);
  z-index: 2;
}

.phone-mockup[data-position='right'] {
  transform: translateX(140px) translateY(40px) rotate(8deg) scale(0.9);
  z-index: 1;
}

/* Footer styles */
.footer {
  font-size: 0.75rem;
  color: var(--slate-400);
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
}

.footer-text {
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--slate-400);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy-900);
}

.footer-separator {
  color: var(--slate-400);
  margin: 0 0.5rem;
}

/* Desktop footer - in hero content */
.footer--desktop {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.footer-supported {
  margin-top: 1rem;
  padding-top: 0;
  font-size: 0.9rem;
}

.footer-supported-link {
  color: var(--slate-400);
  text-decoration: none;
  border-bottom: 1px solid var(--slate-400);
  cursor: pointer;
}

.footer-supported-link:hover {
  color: var(--navy-900);
  border-bottom-color: var(--navy-900);
}

/* Page footer - at bottom of page */
.footer--page {
  display: none;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
  position: relative;
  flex-direction: column;
  gap: 1rem;
}

.footer--page .footer-supported {
  font-size: 0.75rem;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--modal-transition-speed) ease;
}

.video-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(165, 177, 201, 0.509);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--modal-transition-speed) ease;
}

.video-modal.is-open .video-modal-backdrop {
  opacity: 1;
}

.video-modal-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity var(--modal-transition-speed) ease,
    transform var(--modal-transition-speed) ease;
}

.video-modal.is-open .video-modal-container {
  opacity: 1;
  transform: scale(1);
}

.video-modal-content {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.video-modal-content video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  background: #000;
}

/* Responsive */
@media (max-width: 1270px) {
  .phone-mockup img {
    width: 200px;
  }

  .hero-buttons a {
    margin-right: 5px;
  }

  .phone-mockup[data-position='left'] {
    transform: translateX(-130px) translateY(35px) rotate(-8deg) scale(0.92);
  }

  .phone-mockup[data-position='right'] {
    transform: translateX(130px) translateY(35px) rotate(8deg) scale(0.92);
  }
}

@media (max-width: 1226px) {
  .hero {
    padding: 2rem 3rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    min-height: auto;
  }

  .hero-content {
    order: 1;
    padding-top: 2rem;
    min-height: auto;
  }

  .hero-phones {
    order: 2;
    min-height: 450px;
  }

  .phone-carousel {
    min-height: 0;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-download {
    align-self: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Hide desktop footer, show page footer */
  .footer--desktop {
    display: none;
  }

  .footer--page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer--page > .footer-separator {
    display: none;
  }

  .footer--page .footer-links .footer-separator {
    display: inline;
  }

  .phone-mockup img {
    width: 200px;
  }

  .phone-mockup[data-position='left'] {
    transform: translateX(-120px) translateY(30px) rotate(-8deg) scale(0.85);
  }

  .phone-mockup[data-position='right'] {
    transform: translateX(120px) translateY(30px) rotate(8deg) scale(0.85);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 2rem;
  }

  .hero-phones {
    min-height: 380px;
  }

  .hero-title {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }

  .hero-download {
    width: 100%;
    max-width: 500px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }

  .phone-mockup img {
    width: 160px;
  }

  .phone-mockup {
    border-radius: 28px;
    padding: 8px;
  }

  .phone-mockup[data-position='left'] {
    transform: translateX(-100px) translateY(25px) rotate(-8deg) scale(0.8);
  }

  .phone-mockup[data-position='right'] {
    transform: translateX(100px) translateY(25px) rotate(8deg) scale(0.8);
  }

  .video-modal-container {
    width: 95%;
  }

  .video-modal-content {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-download .btn-show-main {
    margin: 0 1.3rem;
    margin-top: 5px;
    width: unset;
  }

  .footer--page {
    font-size: 0.7rem;
  }

  .footer-text {
    font-size: 0.8rem;
  }

  .footer--page .footer-supported {
    font-size: 1rem;
  }

  .hero-phones {
    min-height: 320px;
  }

  .phone-mockup img {
    width: 130px;
  }

  .phone-mockup[data-position='left'] {
    transform: translateX(-80px) translateY(20px) rotate(-8deg) scale(0.8);
  }

  .phone-mockup[data-position='right'] {
    transform: translateX(80px) translateY(20px) rotate(8deg) scale(0.8);
  }
}
