/* mac_protector_website — shared stylesheet (dark macOS-assistant theme) */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover-border: rgba(255, 255, 255, 0.2);
  --text: #e8eaf0;
  --text-dim: #9aa3b2;
  --accent: #4f8cff;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(120deg, #4f8cff, #8b5cf6);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(700px 400px at 5% 0%, rgba(79, 140, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--card-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(120, 100, 255, 0.8);
}

.nav a.github {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav a.github:hover { color: var(--text); border-color: var(--card-hover-border); }

.nav .tag-note {
  color: var(--text-dim);
  font-size: 14px;
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 84px 20px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- App grid ---------- */
.apps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px clamp(20px, 5vw, 56px) 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card-head { display: flex; align-items: center; gap: 14px; }

.icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--grad);
  flex-shrink: 0;
  overflow: hidden;
}

.icon img { width: 100%; height: 100%; object-fit: cover; }

.card-head .titles { min-width: 0; }

.card-head h3 { font-size: 18px; font-weight: 700; }

.badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 10px;
}

.tagline { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.actions { display: flex; gap: 10px; margin-top: auto; }

.btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(90, 110, 255, 0.25);
}

.btn.primary:hover { filter: brightness(1.1); }

.btn.ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn.ghost:hover { border-color: var(--card-hover-border); }

.btn.soon {
  color: var(--text-dim);
  border: 1px dashed var(--card-border);
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 26px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
}

footer nav { display: flex; gap: 18px; }

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Detail page ---------- */
.detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 56px) 72px;
}

.detail-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-hero .icon { width: 84px; height: 84px; border-radius: 20px; font-size: 26px; }

.detail-hero .titles h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.4px; }

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

.detail-meta .badge { margin-top: 0; }

.detail-actions { display: flex; gap: 12px; margin: 26px 0 10px; flex-wrap: wrap; }

.detail-actions .btn { flex: 0 0 auto; padding: 11px 22px; }

.detail section.block { margin-top: 36px; }

.detail h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.detail p.desc { color: var(--text-dim); line-height: 1.7; font-size: 15.5px; }

.detail ul.features { list-style: none; display: grid; gap: 10px; }

.detail ul.features li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}

.detail ul.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.9;
}

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.shot {
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  background: var(--card);
}

@media (max-width: 620px) {
  .shots { grid-template-columns: 1fr; }
}

/* ---------- Screenshot mock previews ---------- */
.shot-mock {
  border-style: solid;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.shot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.shot-tag {
  font-size: 10px;
  font-weight: 600;
  color: #a9b8ff;
  border: 1px solid rgba(140, 160, 255, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.shot-gauge { display: flex; justify-content: center; padding: 8px 0 2px; }

.shot-gauge-ring {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-gauge-hole {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.shot-gauge-num { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.shot-gauge-lbl { font-size: 9.5px; color: var(--text-dim); }

.shot-bars {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 98px;
  padding: 4px 6px 0;
}

.shot-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.shot-bar-col {
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: var(--grad);
  opacity: 0.92;
}

.shot-bar span { font-size: 9.5px; color: var(--text-dim); }

.shot-rows { display: grid; gap: 8px; }

.shot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.shot-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.shot-row-name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-row-val { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Real screenshots ---------- */
.shot-img { padding: 0; border-style: solid; overflow: hidden; }

.shot-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.shot-broken img { display: none; }

.shot-broken::before { content: "Screenshot unavailable"; color: var(--text-dim); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .apps { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
}
