:root{
  --bg: #ffffff;
  --ink: #0b0f1a;
  --muted: #5b6475;
  --line: #e7e9ef;
  --card: #f6f7fb;
  --blue: #2f80ff;
  --shadow: 0 18px 40px rgba(0,0,0,.08);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
  --app-height: 100vh;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; scroll-padding-top: 88px; }
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); line-height: 1.6; }

.fineprint{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .86;
}

body.splash-open{
  overflow: hidden;
  touch-action: none;
}

html.splash-open{
  overflow: hidden;
}

.splash{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--app-height, 100vh);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 20000;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.splash.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card{
  display: grid;
  gap: 22px;
  place-items: center;
  transform: translateY(-6px);
}

.splash-icon{
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(0,0,0,.12);
}

.spinner{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.45);
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.topbar{
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{ display:flex; align-items:center; gap: 10px; }

.brand-mark{
  height: clamp(40px, 8vw, 72px);
  width: auto;
}

.nav{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
}

.nav a{
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover{
  background: rgba(31, 111, 229, 0.10);
  color: var(--blue);
}

.nav--mobile{
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.nav--mobile a{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.cta-row{ display:flex; gap: 10px; align-items:center; }

.appstore-badge{
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.appstore-badge:hover{ opacity: .85; }

.appstore-badge img{
  height: clamp(34px, 5.5vw, 56px);
  width: auto;
  display: block;
}

.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  cursor: pointer;
  padding: 0;
}

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

.menu-icon{
  width: 18px;
  height: 14px;
  display: inline-block;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat;
  opacity: .9;
}

.mobile-nav-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 60;
}

.mobile-nav{
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top) + 56px);
  z-index: 70;
  display: none;
}

.mobile-nav-inner{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.appstore-badge--mobile{ width: fit-content; }

body.nav-open .mobile-nav{ display: block; }
body.nav-open .mobile-nav-backdrop{ display: block; }

.hero{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-areas: "copy media";
  gap: 34px;
  padding: 64px 0 10px;
  align-items: start;
}

.hero-copy{ grid-area: copy; }
.hero-media{ grid-area: media; margin-top: 6px; }

h1{
  margin: 0 0 18px;
  font-size: clamp(30px, 6.5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead{
  margin-top: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-points{
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
}

.hero-points li{
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--blue);
  transform: rotate(45deg);
  border-radius: 2px;
}

.hero-actions{
  display: none;
  margin: 14px 0 8px;
}

.phone{
  background: radial-gradient(closest-side, rgba(47,128,255,.10), transparent 66%);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
}

.phone--hero{ padding-top: 8px; }

.phone img{
  width: 100%;
  max-width: 400px;
  display: block;
  border-radius: 36px;
  border: none;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,.18)) drop-shadow(0 6px 18px rgba(0,0,0,.10));
}

.section{
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section h2{
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.02em;
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease;
}

.card:hover{ transform: translateY(-2px); }

.card h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.legal{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.legal ul{ margin: 12px 0 0; padding-left: 20px; }
.legal a{ color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.contact-section-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.contact-block{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-title{ margin: 0 0 6px; }

.contact{
  display: grid;
  gap: 14px;
  max-width: none;
  margin-top: 12px;
}

label{
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

input, textarea{
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  appearance: none;
}

input:focus, textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,128,255,.12);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease, background 0.2s ease;
}

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

.btn-primary{ background: var(--ink); color: #fff; }
.btn-primary:hover{ filter: brightness(1.12); }

.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ background: rgba(11,15,26,.03); }

.footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
}

.footer-mark{ height: 48px; width:auto; opacity: .8; }

.footer-links{
  display:flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer a{
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

#toTop{
  position: fixed;
  bottom: 18px;
  right: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}

#toTop.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#toTop .arrow{ display: inline-block; font-size: 24px; line-height: 1; }

.carousel-container{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  padding: 20px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-container{ scrollbar-width: none; }
.carousel-container::-webkit-scrollbar{ height: 0; }

.carousel-track{
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
}

.carousel-track img{
  height: min(450px, 68vh);
  width: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  scroll-snap-align: center;
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.76);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
}

.lightbox.active{ display: flex; }

.lightbox-img-wrapper{
  position: relative;
  max-width: min(92vw, 980px);
  max-height: 88vh;
}

.lightbox-img-wrapper img{
  width: auto;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 26px 90px rgba(0,0,0,.40);
}

.lightbox-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close svg{ width: 20px; height: 20px; }
.lightbox-close path{ stroke: #fff; stroke-width: 2.2; }

body.modal-open{ overflow: hidden; }

.botcheck{ display: none !important; }

@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    text-align: center;
    padding-top: 40px;
    gap: 22px;
  }

  .hero-copy{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-points{
    text-align: left;
    display: inline-block;
  }

  .hero-actions{ display: flex; justify-content: center; }

  .nav--desktop{ display: none; }
  .menu-btn{ display: inline-grid; place-items: center; }

  .contact-section-wrapper{ grid-template-columns: 1fr; }
}

@media (max-width: 600px){
  .container{ width: calc(100% - 32px); }

  .topbar-inner{ padding: 10px 0; gap: 10px; }
  .brand-mark{ height: 44px; }
  .appstore-badge img{ height: 40px; }

  .lead{ font-size: 16.5px; }
  .hero-points li{ font-size: 15.5px; }

  .phone{ padding: 14px; }
  .phone img{ border-radius: 32px; }

  .grid{ grid-template-columns: 1fr; }

  .section{ padding: 44px 0; }

  .carousel-track img{ height: min(320px, 58vh); max-width: 82vw; }
  .lightbox-close{ top: 10px; right: 10px; }

  .footer-inner{ flex-direction: column; align-items: center; text-align: center; }
  .footer-links{ justify-content: center; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .card{ transition: none; }
  .btn{ transition: none; }
  #toTop{ transition: none; }
}
