/* ===================================================================
   MONDRIAN GRID — OFFICIAL SINGLE PAGE WEB APP
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --m-red: #FF2D55;
  --m-blue: #00D4FF;
  --m-yellow: #FFD600;
  --m-green: #00FF9D;
  
  --bg-primary: #0F0F12;
  --bg-card: #181820;
  --bg-tertiary: #20202C;
  --border-color: #2A2A3A;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0C0;
  --text-muted: #707084;
  --grid-line: #1A1A24;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle background grid pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Navbar / Brand */
.header {
  padding: 24px 0;
  border-bottom: 2px solid var(--border-color);
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  display: grid;
  grid-template-columns: 14px 14px;
  grid-template-rows: 14px 14px;
  gap: 2px;
  background: #000;
  padding: 3px;
  border-radius: 6px;
}

.logo-cell-red { background-color: var(--m-red); }
.logo-cell-blue { background-color: var(--m-blue); }
.logo-cell-yellow { background-color: var(--m-yellow); }
.logo-cell-white { background-color: #FFFFFF; }

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--m-yellow);
  display: block;
}

/* App Info Card */
.app-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  margin: 40px auto 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.app-icon-img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  object-fit: cover;
}

.app-details {
  flex-grow: 1;
}

.app-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}

.app-pkg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--m-blue);
  margin-bottom: 12px;
  display: block;
}

.app-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.play-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid #333333;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.play-store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--m-yellow);
  box-shadow: 0 6px 20px rgba(255, 214, 0, 0.25);
}

.play-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #AAAAAA;
  display: block;
}

.btn-main {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  display: block;
}

/* Privacy Policy Container */
.policy-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.policy-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--m-yellow);
  margin-bottom: 4px;
}

.policy-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 28px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.color-bar {
  width: 6px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

.color-bar.red { background-color: var(--m-red); }
.color-bar.blue { background-color: var(--m-blue); }
.color-bar.yellow { background-color: var(--m-yellow); }

.section-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.policy-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-line;
}

.policy-text a {
  color: var(--m-blue);
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 2px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-secondary);
  text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 680px) {
  .app-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .app-icon-img {
    width: 96px;
    height: 96px;
  }

  .app-title {
    font-size: 1.6rem;
  }

  .play-store-btn {
    width: 100%;
    justify-content: center;
  }

  .policy-card {
    padding: 24px 18px;
  }
}
