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

:root {
  --bg: #ECE7F0;
  --surface: #E2DDE7;
  --surface-strong: #D7CBEA;
  --border: #C8C0D0;
  --text: #231F2B;
  --muted: #5E576A;
  --primary: #6F52B5;
  --primary-dark: #4B347F;
  --accent: #2D7A68;
  --accent-soft: #D8EAE4;
  --warm: #A45B4F;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236, 231, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--primary); text-decoration: none; }

.hero {
  padding: 5rem 1.5rem 4rem;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow,
.section-label,
.app-status,
.showcase-label {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-eyebrow { margin-bottom: 0.75rem; }

.hero h1 {
  font-size: 4rem;
  font-weight: 850;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--text);
  color: #fff;
}

.hero-showcase {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(35, 31, 43, 0.08);
}

.showcase-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(111,82,181,0.25);
  margin-bottom: 1.25rem;
}

.hero-showcase h2 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0.25rem 0 0.6rem;
}

.hero-showcase p:not(.showcase-label) {
  color: var(--muted);
}

.apps-section {
  padding: 4.5rem 1.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 850;
  text-align: center;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-title.left,
.about-layout .section-label {
  text-align: left;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 1.25rem;
  align-items: stretch;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  min-height: 100%;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-card-media {
  position: relative;
  min-height: 360px;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(45,122,104,0.42), rgba(75,52,127,0.2));
}

.app-icon {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.phone-preview {
  position: relative;
  z-index: 1;
  width: 150px;
  aspect-ratio: 9/19.5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 18px 35px rgba(0,0,0,0.26);
  background: var(--surface);
}

.phone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.app-card h3 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0.35rem 0 0.75rem;
}

.app-card p {
  color: var(--muted);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.app-meta span {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 800;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.app-card-empty {
  grid-template-columns: 1fr;
  border-style: dashed;
  background: rgba(255,255,255,0.62);
}

.empty-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 2rem 0;
}

.about-section {
  padding: 4.5rem 1.5rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-layout > p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-inner,
  .app-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 2rem;
  }

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

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

  .app-card-media {
    min-height: 310px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

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

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

  .hero-showcase,
  .app-card-body {
    padding: 1.35rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .apps-section,
  .about-section {
    padding: 3.5rem 1.25rem;
  }

  .app-card-media {
    min-height: 280px;
  }

  .phone-preview {
    width: 132px;
  }
}
