/* DM Mobile Apps — site styles */

:root {
  --ink: #0f1c2e;
  --ink-soft: #3d4f66;
  --paper: #f3f6f9;
  --paper-deep: #e8eef4;
  --accent: #0a8fd9;
  --accent-deep: #0670ad;
  --white: #ffffff;
  --line: rgba(15, 28, 46, 0.08);
  --shadow: 0 18px 50px rgba(15, 28, 46, 0.18);
  --radius: 18px;
  --font-display: "Sora", sans-serif;
  --font-body: "Outfit", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

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

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(6, 28, 52, 0.55), rgba(10, 143, 217, 0.25)),
    url("images/bg.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(10, 143, 217, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.55) 0%, rgba(8, 18, 32, 0.72) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease both;
}

.hero__headline {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.9s ease 0.12s both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  animation: rise 0.9s ease 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s ease 0.32s both;
}

.hero__device {
  display: flex;
  justify-content: center;
  animation: rise 1s ease 0.2s both;
}

.hero__phone {
  width: min(280px, 70%);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.45));
  animation: float-phone 5.5s ease-in-out infinite;
}

/* About */
.about {
  padding: 6rem 0;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about__visual img {
  width: min(420px, 100%);
  margin-inline: auto;
  filter: drop-shadow(0 20px 40px rgba(15, 28, 46, 0.12));
}

.about__content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about__lead {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

.about__content p {
  margin: 0;
  color: var(--ink-soft);
}

.about__content p + p {
  margin-top: 1rem;
}

/* Apps */
.apps {
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10, 143, 217, 0.08), transparent 60%),
    var(--paper-deep);
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.app-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-tile:hover,
.app-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(10, 143, 217, 0.35);
  outline: none;
}

.app-tile img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--paper);
}

.app-tile__name {
  padding: 0.95rem 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

/* Download */
.download {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.download__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 30, 55, 0.88), rgba(10, 100, 160, 0.78)),
    url("images/bg_t.jpg") center / cover no-repeat;
}

.download__inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
}

.download__inner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download__inner > p {
  margin: 0 auto 2rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.82);
}

.download__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  color: var(--white);
  text-align: left;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.store-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.site-footer__tag {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__phone,
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  .hero__device,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
