/* ============================
   CSS CUSTOM PROPERTIES
   ============================ */
:root {
  --color-primary: #0D7377;
  --color-primary-dark: #095456;
  --color-primary-darker: #073D3F;
  --color-bg-light: #EDF6F6;
  --color-bg-mint: #E4F0F0;
  --color-white: #FFFFFF;
  --color-text: #1A1A2E;
  --color-text-light: #6B7280;
  --color-text-on-dark: #C8E6E6;

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 24px rgba(13, 115, 119, 0.08);
  --shadow-phone: 0 20px 60px rgba(13, 115, 119, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   SHARED UTILITIES
   ============================ */
.container--narrow {
  max-width: 800px;
}

.policy-section {
  padding: 10rem 0 6rem;
}

.policy-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.policy-content h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.policy-content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.policy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.policy-content hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid rgba(13, 115, 119, 0.1);
}

.last-updated {
  font-style: italic;
  margin-bottom: 3rem;
}

/* ============================
   BASE / RESET
   ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-darker);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.3);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
}

.btn--white:hover {
  background: var(--color-bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 115, 119, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.header__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.header__cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 115, 119, 0.25);
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 8rem 0 4rem;
  background: var(--color-white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-light);
  border: 1px solid rgba(13, 115, 119, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero__badge svg {
  color: var(--color-primary);
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================
   PHONE MOCKUP
   ============================ */
.phone-mockup {
  width: 280px;
  background: var(--color-white);
  border-radius: 36px;
  box-shadow: var(--shadow-phone);
  border: 6px solid #E8EDED;
  overflow: hidden;
  position: relative;
}

.phone-mockup__notch {
  width: 120px;
  height: 28px;
  background: #E8EDED;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-mockup__screen {
  padding: 0;
  background: #F8FAFA;
  min-height: 440px;
}

/* App UI inside phone */
.app-ui {
  font-family: var(--font-sans);
}

.app-ui__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  background: var(--color-white);
}

.app-ui__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.app-ui__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
}

.app-ui__group {
  padding: 0.5rem 1.25rem;
}

.app-ui__group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.app-ui__country {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.app-ui__meta {
  font-size: 0.55rem;
  color: var(--color-text-light);
}

.app-ui__photos {
  display: grid;
  gap: 6px;
  margin-bottom: 0.25rem;
}

.app-ui__photos--two {
  grid-template-columns: 1fr 1fr;
}

.app-ui__photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.app-ui__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-ui__labels {
  display: flex;
  gap: 0.5rem;
  font-size: 0.55rem;
  color: var(--color-text-light);
  padding-bottom: 0.25rem;
}

.app-ui__nav {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0;
  background: var(--color-white);
  border-top: 1px solid #eee;
  margin-top: 0.5rem;
}

.app-ui__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.55rem;
  color: var(--color-text-light);
}

.app-ui__nav-item--active {
  color: var(--color-primary);
}

.app-ui__nav-item svg {
  opacity: 0.5;
}

.app-ui__nav-item--active svg {
  opacity: 1;
}

/* Location extraction badge */
.hero__location-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  margin-top: 1.5rem;
  animation: float 4s ease-in-out infinite;
}

.hero__location-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__location-text {
  display: flex;
  flex-direction: column;
}

.hero__location-text strong {
  font-size: 0.85rem;
  color: var(--color-text);
}

.hero__location-text span {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ============================
   FEATURES (Dark Card)
   ============================ */
.features {
  padding: 2rem 0 6rem;
  background: var(--color-bg-light);
}

.features__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--color-primary-dark);
  border-radius: var(--radius-xl);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.features__card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.features__headline {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.features__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.features__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-dark);
}

.features__text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.features__text p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-on-dark);
}

/* Download block */
.features__download {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
}

.features__qr {
  flex-shrink: 0;
}

.qr-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
}

.features__download-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.features__download-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}

.features__appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.features__appstore-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Features visual — video phone */
.features__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.features__phone-wrapper {
  position: relative;
}

.features__video-phone {
  width: 280px;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.features__video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.features__play-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works {
  padding: 6rem 0;
  background: var(--color-white);
}

.how-it-works__title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.how-it-works__step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-light);
  transition: var(--transition);
}

.how-it-works__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.how-it-works__step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.how-it-works__step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.how-it-works__step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ============================
   CTA
   ============================ */
.cta {
  padding: 6rem 0;
  background: var(--color-primary);
  text-align: center;
}

.cta__inner {
  max-width: 640px;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-on-dark);
  margin-bottom: 2.5rem;
}

.cta__btn {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  padding: 2rem 0;
  background: var(--color-primary-darker);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--color-text-on-dark);
  opacity: 0.7;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-text-on-dark);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

/* ============================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__cta {
    margin: 0 auto;
  }

  .features__card {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
  }

  .features__visual {
    order: -1;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .header__inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .header__cta-btn {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 0 3rem;
  }

  .hero__headline {
    font-size: 2.25rem;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-mockup__screen {
    min-height: 380px;
  }

  .features {
    padding: 1rem 0 4rem;
  }

  .features__card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .features__headline {
    font-size: 1.75rem;
  }

  .features__download {
    flex-direction: column;
    text-align: center;
  }

  .features__video-phone {
    width: 220px;
    height: 300px;
  }

  .how-it-works {
    padding: 4rem 0;
  }

  .cta {
    padding: 4rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================
   MOBILE NAV OVERLAY
   ============================ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  transform: translateZ(0);
}

.mobile-nav-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-overlay a {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1A1A2E !important;
  transition: var(--transition);
  text-decoration: none;
}

.mobile-nav-overlay a:hover {
  color: var(--color-primary) !important;
}