/* ==========================================================================
   Sugeng Riyanto — Apple Developer Portfolio Design System
   Clean, Cupertino-inspired static site architecture with Light & Dark modes
   ========================================================================== */

:root {
  /* Light Theme Tokens */
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-subtle: #ebebf0;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --indigo: #5856d6;
  --teal: #00a896;
  --success: #248a3d;
  --success-soft: rgba(36, 138, 61, 0.12);
  --warning: #b25000;
  --warning-soft: rgba(255, 149, 0, 0.14);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.11);
  --hero-glow-1: rgba(0, 113, 227, 0.16);
  --hero-glow-2: rgba(88, 86, 214, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --nav-height: 64px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #09090c;
  --bg-elevated: #141419;
  --bg-subtle: #1d1d24;
  --bg-glass: rgba(18, 18, 23, 0.78);
  --text: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-soft: rgba(41, 151, 255, 0.15);
  --indigo: #7c7aff;
  --teal: #30d5c8;
  --success: #32d74b;
  --success-soft: rgba(50, 215, 75, 0.14);
  --warning: #ff9f0a;
  --warning-soft: rgba(255, 159, 10, 0.15);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.6);
  --hero-glow-1: rgba(41, 151, 255, 0.22);
  --hero-glow-2: rgba(124, 122, 255, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 44px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-subtitle {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
  opacity: 0.88;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #052fd6, #0071e3, #22e5d2);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

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

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-subtle);
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer a {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 113, 227, 0.34);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 14px;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

/* Official-inspired App Store Download Button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-radius: 13px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .appstore-btn {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255, 255, 255, 0.15);
}

.appstore-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .appstore-btn:hover {
  color: #000000;
  background: #f0f0f5;
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.appstore-btn-small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.appstore-btn-large {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -100px;
  background: var(--hero-glow-1);
}

.hero::after {
  width: 480px;
  height: 480px;
  top: -80px;
  right: -120px;
  background: var(--hero-glow-2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.gradient-text {
  background: linear-gradient(125deg, #0071e3 0%, #5856d6 55%, #00a896 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(125deg, #47a6ff 0%, #9b99ff 55%, #4de8db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 20px 0 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-stats {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Hero Visual Showcase Card */
.hero-showcase {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.showcase-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.icon-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.mosaic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mosaic-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.mosaic-tile img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.mosaic-tile span {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mosaic-tile-more {
  justify-content: center;
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

.mosaic-tile-more:hover {
  color: var(--accent);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   App Squircle Icons
   ========================================================================== */
.app-icon {
  border-radius: 22.5%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.app-icon-sm { width: 56px; height: 56px; }
.app-icon-md { width: 76px; height: 76px; }
.app-icon-lg { width: 120px; height: 120px; }

/* ==========================================================================
   Featured App Spotlight
   ========================================================================== */
.spotlight-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.spotlight-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.spotlight-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.spotlight-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0 0 24px;
}

.spotlight-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.spotlight-screens img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-subtle);
  transition: transform 0.25s ease;
}

.spotlight-screens img:nth-child(2) {
  transform: translateY(-8px);
}

.spotlight-screens img:hover {
  transform: translateY(-4px) scale(1.02);
}

.app-feature-banner {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
}

.app-feature-banner .screenshot-item {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.app-feature-banner .screenshot-item:hover {
  transform: none;
  box-shadow: none;
}

.app-feature-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.privacy-callout {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  border: 1px solid rgba(36, 138, 61, 0.25);
  margin-top: 20px;
}

.privacy-callout strong {
  display: block;
  color: var(--success);
  margin-bottom: 6px;
  font-size: 15px;
}

.privacy-callout ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}

.privacy-callout li {
  margin-bottom: 4px;
}

/* ==========================================================================
   Filter Pills & App Catalog Grid
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

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

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.app-card.hidden {
  display: none;
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.app-card-title a {
  color: var(--text);
}

.app-card-title a:hover {
  color: var(--accent);
}

.app-card-category {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.app-card-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.app-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.app-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Feature / Pillar Bento Cards
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Compliance & Quick Links Strip
   ========================================================================== */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.compliance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.compliance-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

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

.compliance-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.compliance-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Individual App Detail Pages
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.app-hero {
  padding: 44px 0 40px;
}

.app-hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.app-hero-main {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1 1 460px;
}

.app-hero-info h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.app-hero-tagline {
  margin: 8px 0 14px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
}

.app-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Quick Spec Strip */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.spec-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-align: center;
}

.spec-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.spec-value {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.spec-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Screenshot Gallery & Tabs */
.gallery-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.gallery-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-tab.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.screenshots-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.screenshots-track.landscape {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.screenshots-track[hidden] {
  display: none;
}

.screenshot-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 960px);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* App Detail 2-Column Content */
.detail-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.content-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}

.content-card p:last-child {
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-list span {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th,
.info-table td {
  padding: 12px 0;
  font-size: 14px;
  vertical-align: top;
}

.info-table th {
  text-align: left;
  color: var(--text-secondary);
  font-weight: 500;
  width: 42%;
}

.info-table td {
  text-align: right;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.notice-box {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  border: 1px solid rgba(255, 149, 0, 0.28);
  color: var(--text);
  font-size: 14px;
}

.notice-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--warning);
}

/* ==========================================================================
   Legal Documents (Privacy Policy & Terms of Use)
   ========================================================================== */
.page-banner {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.page-banner h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-banner p {
  margin: 0;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 680px;
}

.banner-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.toc-list a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.prose-card section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.prose-card section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.prose-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.prose-card p,
.prose-card li {
  color: var(--text-secondary);
  font-size: 15.5px;
}

.prose-card ul {
  padding-left: 20px;
  margin: 10px 0;
}

.prose-card li {
  margin-bottom: 6px;
}

/* Apple Privacy Nutrition Label Grid */
.privacy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.privacy-label-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.privacy-label-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.privacy-label-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.data-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}

.data-table td {
  color: var(--text-secondary);
}

/* ==========================================================================
   Support FAQ & Contact Form
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
}

.form-status[hidden] {
  display: none;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin: 12px 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-desc {
  margin: 14px 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 310px;
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Scroll Reveal Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner,
  .spotlight-card,
  .detail-layout,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .hero {
    padding: 52px 0 40px;
  }

  .section {
    padding: 52px 0;
  }

  .apps-grid,
  .pillars-grid,
  .privacy-cards-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-hero-card,
  .spotlight-card,
  .prose-card,
  .content-card {
    padding: 24px;
  }

  .app-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .icon-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
}
