/* ==========================================================================
   disc/nsider — Product Homepage Stylesheet
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a1a;
  --bg-surface: #111128;
  --bg-card: #16162e;
  --bg-card-hover: #1c1c3a;
  --text-primary: #e8e8f8;
  --text-secondary: #a0a0c0;
  --text-muted: #666680;
  --accent-blue: #667eea;
  --accent-pink: #f093fb;
  --accent-cyan: #4facfe;
  --accent-purple: #764ba2;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(102, 126, 234, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-brand span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* --- Hero --- */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  margin: 0 auto 36px;
  width: 160px;
  height: 160px;
}

.hero-icon svg {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  filter: drop-shadow(0 8px 40px rgba(102, 126, 234, 0.25));
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.btn .apple-logo {
  font-size: 18px;
}

/* --- Section --- */
.section {
  padding: 80px 24px;
}

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 56px;
}

/* --- Feature Grid --- */
.feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-icon.blue {
  background: rgba(102, 126, 234, 0.12);
  color: var(--accent-blue);
}

.feature-icon.pink {
  background: rgba(240, 147, 251, 0.12);
  color: var(--accent-pink);
}

.feature-icon.cyan {
  background: rgba(79, 172, 254, 0.12);
  color: var(--accent-cyan);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Showcase Section --- */
.showcase {
  max-width: var(--max-width);
  margin: 0 auto;
}

.showcase-block {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.showcase-block:nth-child(even) {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
  min-width: 280px;
}

.showcase-text .label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.showcase-text h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.showcase-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.showcase-text ul {
  list-style: none;
  padding: 0;
}

.showcase-text ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-text ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  flex-shrink: 0;
}

.showcase-visual {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.showcase-visual .chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.3s ease;
}

.chart-card:hover {
  border-color: var(--border-accent);
}

.chart-card .chart-icon {
  font-size: 48px;
  line-height: 1;
}

.chart-card .chart-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-manager-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 440px;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.app-row:last-child {
  border-bottom: none;
}

.app-row .app-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-row .app-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.app-row .app-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.app-row .app-size {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.app-row .uninstall-btn {
  font-size: 12px;
  font-weight: 600;
  color: #f5576c;
  background: rgba(245, 87, 108, 0.1);
  border: 1px solid rgba(245, 87, 108, 0.2);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: default;
}

/* --- CTA Banner --- */
.cta-banner {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* --- Legal Pages (Privacy, Impressum) --- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-page p,
.legal-page address {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: normal;
}

.legal-page ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}

.legal-page ul li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.legal-page a {
  color: var(--accent-cyan);
}

.legal-page .highlight-box {
  background: rgba(102, 126, 234, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 24px 0;
}

.legal-page .highlight-box p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-block,
  .showcase-block:nth-child(even) {
    flex-direction: column;
    gap: 40px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 16px 60px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .tagline {
    font-size: 18px;
  }

  .hero-icon {
    width: 120px;
    height: 120px;
  }

  .hero-icon svg {
    width: 120px;
    height: 120px;
    border-radius: 28px;
  }

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

  .section {
    padding: 56px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .cta-banner {
    padding: 40px 24px;
    margin: 0 16px 60px;
  }

  .cta-banner h2 {
    font-size: 26px;
  }

  .showcase-text h2 {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 15px;
  }

  .legal-page {
    padding: 60px 16px 80px;
  }

  .legal-page h1 {
    font-size: 28px;
  }
}

/* ==========================================================================
   v1.2 additions: What's New, Privacy callout, Lang toggle, Support FAQ
   ========================================================================== */

/* Hero meta line under CTA buttons */
.hero-meta {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* What's new section */
.whatsnew {
  padding: 80px 24px 40px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.04), rgba(0, 0, 0, 0) 70%);
}
.whatsnew .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.whatsnew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.whatsnew-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.whatsnew-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.whatsnew-card .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}
.whatsnew-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.whatsnew-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .whatsnew-grid { grid-template-columns: 1fr; }
}

/* Privacy callout card on landing */
.privacy-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.privacy-icon {
  flex: 0 0 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(102, 126, 234, 0.16);
  color: var(--accent-blue);
}
.privacy-text { flex: 1; }
.privacy-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.privacy-text p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.link-arrow {
  color: var(--accent-blue);
  font-weight: 500;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .privacy-card { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* Language toggle on /privacy */
.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  margin-bottom: 28px;
}
.lang-toggle a {
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle a:hover { color: var(--text-primary); }
.lang-toggle a[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
}

/* Legal article wrapper (inherits styles from .legal-page) */
.legal-article[hidden] { display: none; }
.legal-article h1 { margin-bottom: 8px; }
.legal-article address {
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 8px 0 16px;
  line-height: 1.7;
}

/* Support page */
.support-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.04));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 16px 0 32px;
}
.support-card h2 {
  margin-top: 0;
  font-size: 20px;
}
.faq {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-blue);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Accessible page h1 for legal pages with toggle */
.visually-hidden-h1 {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.legal-article-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-primary);
}

/* ==========================================================================
   Screenshot frames + App Store badge styling (v1.2)
   ========================================================================== */

/* Mac-style window frame for screenshots */
.window-frame {
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 18px 36px -18px rgba(102, 126, 234, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 1100px;
  margin: 0 auto;
}
.window-frame.compact {
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 36px -16px rgba(0, 0, 0, 0.55);
}
.window-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #2a2a48 0%, #1f1f3a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.window-titlebar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.window-titlebar .dot.red { background: #ff5f57; }
.window-titlebar .dot.yellow { background: #ffbd2e; }
.window-titlebar .dot.green { background: #28c840; }
.window-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-right: 56px; /* visual balance with the three dots */
}
.window-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero screenshot section sits between hero and what's new */
.hero-screenshot {
  padding: 24px 24px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .hero-screenshot { margin-top: -20px; }
}

/* Secondary chart gallery below the main visualize showcase */
.chart-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.chart-shot { margin: 0; }
.chart-shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
@media (max-width: 960px) {
  .chart-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .chart-gallery { grid-template-columns: 1fr; }
}

/* App Store badge — real Apple logo, proper sizing and contrast */
.btn .apple-logo {
  width: 20px;
  height: 20px;
  margin-right: 2px;
  vertical-align: -4px;
}

/* Fix nav-bar pill button: .nav-links a was setting muted color and winning
   over .btn-primary's white. Make the nav CTA a self-contained variant. */
.nav-links a.nav-cta,
.nav-links a.btn-primary {
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-links a.nav-cta:hover,
.nav-links a.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}
