:root {
  --bg: #ffffff;
  --text: #111111;
  --sub: #6e6e73;
  --line: #e5e5e7;
  --accent: #0071e3;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}

/* FOOTER LINKS */
.footer-grid a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-grid a:hover {
  color: white;
  text-decoration: underline;
}

.footer-email {
  color: var(--accent);
  text-decoration: underline;
}

.footer-email:hover {
  color: #ff9900;
}

/* NAV */
header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(22px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  flex-wrap: wrap;
}
.logo img { height: 50px;  }

nav a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  margin-left: 30px;
  text-decoration: none;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* HERO */
.hero {
  padding: 120px 26px 150px;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--sub);
  max-width: 520px;
}
.hero-img img {
  border-radius: 26px;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.hero-img:hover img {
  transform: scale(1.03);
}

/* SECTIONS */
section { padding: 130px 26px; }
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 85px;
  letter-spacing: -0.02em;
}

/* APPS GRID */
.apps-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 55px;
}
.app-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.08);
}
.app-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s ease;
}
.app-card:hover img { transform: scale(1.05); }

.app-body { padding: 36px 34px 40px; }
.tag {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  background: #f5f5f7;
  color: var(--sub);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.app-body h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.app-body p {
  color: var(--sub);
  margin-bottom: 26px;
  line-height: 1.65;
  word-break: break-word;
}
.store-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

/* ABOUT */
.about { background: #f5f5f7; }
.about-wrap {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}
.about p {
  font-size: 1.15rem;
  color: var(--sub);
  line-height: 1.75;
}
.about img {
  border-radius: 26px;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.about img:hover { transform: scale(1.03); }

/* FOOTER */
footer {
  background: #000;
  color: #f5f5f7;
  padding: 80px 26px;
}
.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 40px;
}
footer h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; color: #fff; }
footer p, footer a { font-size: .95rem; color: #d2d2d7; white-space: pre-line; line-height: 1.6; }

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  z-index: 9999;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #111;
  color: #fff;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  border-radius: 20px;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}
.close-modal {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  right: 30px;
  top: 20px;
  cursor: pointer;
  line-height: 1;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 16px;
  }
  .hero-img img { margin-top: 30px; }

  /* ABOUT */
  .about-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  /* NAV */
  nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  nav a { margin-left: 0; }

  /* APPS GRID */
  .apps-grid { grid-template-columns: 1fr; gap: 35px; }

  /* MODALS */
  .modal-content { max-width: 90%; padding: 20px; }
}

@media (max-width: 480px) {
  footer h3 { font-size: 1rem; }
  footer p, footer a { font-size: 0.85rem; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero p { font-size: clamp(0.9rem, 3vw, 1.1rem); }
}
