/**
 * PLAYMATE — Official Stylesheet
 * Brand: PlayMate (Your offline gaming companion)
 * Developer: Sundram Gupta / Sundramdotdev
 * Design: Minimal, Dark-first, Restrained, Accessible, Mobile-first
 */

:root {
  /* Color Palette */
  --bg: #0D0D0F;
  --surface: #141417;
  --surface-2: #1A1A1F;
  --surface-elevated: #222228;
  --border: #2B2C31;
  --border-subtle: #1F2025;

  --text: #F5F5F2;
  --text-secondary: #B8B8B2;
  --text-muted: #85857F;

  --accent: #C18A42;
  --accent-hover: #D4A373;
  --accent-subtle: rgba(193, 138, 66, 0.12);
  --accent-glow: rgba(193, 138, 66, 0.08);

  --success: #4E9A68;
  --success-bg: rgba(78, 154, 104, 0.12);
  --badge-coming-soon: #85857F;
  --badge-coming-soon-bg: rgba(133, 133, 127, 0.12);

  /* Layout & Geometry */
  --container-max: 1140px;
  --container-narrow: 840px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Header Height */
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 40rem),
    radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 20rem);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

::selection {
  background-color: rgba(193, 138, 66, 0.3);
  color: var(--text);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #0D0D0F;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
  outline: 3px solid #FFF;
}

/* Focus Visible States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Layout Containers */
.container {
  width: min(calc(100% - 40px), var(--container-max));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 40px), var(--container-narrow));
  margin-inline: auto;
}

/* -------------------------------------------------------------
   Header & Sticky Navigation
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(13, 13, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

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

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #000000;
  object-fit: contain;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-cta:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn:hover {
  background: var(--surface);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* -------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------- */
.hero {
  padding: 80px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid rgba(193, 138, 66, 0.25);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-desc {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 580px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--accent);
  color: #0D0D0F;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0D0D0F;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-2);
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Hero Right Column — Product Graphic & Logo Frame */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.product-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.logo-container {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.product-tagline {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.product-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.product-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   Trust / Positioning Statement
   ------------------------------------------------------------- */
.trust-banner {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(20, 20, 23, 0.4);
}

.trust-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.trust-eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.trust-headline {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.3;
}

.trust-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* -------------------------------------------------------------
   Common Section Headers
   ------------------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.section-subtitle {
  margin: 0;
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* -------------------------------------------------------------
   Download Releases Section
   ------------------------------------------------------------- */
.download-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.download-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-card:hover {
  border-color: rgba(193, 138, 66, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.download-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(193, 138, 66, 0.05) 0%, var(--bg) 100%);
}

.download-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.download-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-subtle);
  border: 1px solid rgba(193, 138, 66, 0.3);
  color: var(--accent);
}

.download-badge.store {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-secondary);
}

.download-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.download-icon-wrap svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.download-card-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text);
}

.download-card-desc {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.download-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--text);
  font-weight: 600;
}

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

.download-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  margin-top: auto;
}

.download-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.download-note {
  max-width: 900px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.download-note-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.download-note-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.download-note-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-note-text strong {
  color: var(--text);
}

/* -------------------------------------------------------------
   Features Grid
   ------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(193, 138, 66, 0.4);
  transform: translateY(-2px);
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.badge-available {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(78, 154, 104, 0.25);
}

.badge-coming-soon {
  color: var(--badge-coming-soon);
  background: var(--badge-coming-soon-bg);
  border: 1px solid rgba(133, 133, 127, 0.2);
}

.feature-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--text);
}

.feature-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   Offline-First Section
   ------------------------------------------------------------- */
.offline-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.offline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.offline-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar-item {
  display: flex;
  gap: 16px;
}

.pillar-bullet {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(193, 138, 66, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.pillar-bullet svg {
  width: 15px;
  height: 15px;
}

.pillar-text h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.pillar-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.offline-callout-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.callout-header svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.callout-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.callout-body {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.callout-meta {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   Use Cases Section
   ------------------------------------------------------------- */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.use-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.use-case-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.use-case-icon svg {
  width: 18px;
  height: 18px;
}

.use-case-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.use-case-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* -------------------------------------------------------------
   Product Philosophy Section
   ------------------------------------------------------------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.philosophy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.philosophy-num {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 12px;
}

.philosophy-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.philosophy-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   Privacy Highlights Section (Homepage)
   ------------------------------------------------------------- */
.privacy-spotlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.privacy-spotlight-left h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text);
}

.privacy-spotlight-left p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.privacy-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.privacy-point svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.privacy-spotlight-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.privacy-badge-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   Developer & GitHub Sections
   ------------------------------------------------------------- */
.dev-github-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dev-card,
.github-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dev-card h3,
.github-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 750;
  color: var(--text);
}

.dev-card p,
.github-card p {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.social-btn:hover {
  background: var(--surface-elevated);
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* -------------------------------------------------------------
   Site Footer
   ------------------------------------------------------------- */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav-col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

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

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

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

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

/* -------------------------------------------------------------
   Dedicated Privacy Policy Page Styles
   ------------------------------------------------------------- */
.policy-page {
  padding: 48px 0 80px;
}

.policy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

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

.policy-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.policy-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.policy-subtitle {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.65;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.policy-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Table of Contents */
.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.toc-list {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc-list li {
  margin: 6px 0;
  font-size: 14.5px;
}

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

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

/* Policy Content Sections */
.policy-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.policy-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.policy-section h3 {
  margin: 24px 0 10px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
}

.policy-section p {
  margin: 0 0 16px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-section ul,
.policy-section ol {
  margin: 12px 0 20px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.policy-section li {
  margin: 7px 0;
  font-size: 15px;
  line-height: 1.65;
}

.policy-notice {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.policy-notice p:last-child {
  margin-bottom: 0;
}

.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--text-secondary);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.contact-card p {
  margin: 0 0 10px;
  font-size: 14.5px;
}

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

/* -------------------------------------------------------------
   404 Page Styles
   ------------------------------------------------------------- */
.error-page {
  min-height: calc(100vh - var(--header-height) - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  text-align: center;
}

.error-content {
  max-width: 520px;
  margin-inline: auto;
}

.error-code {
  font-size: clamp(64px, 12vw, 108px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.error-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  line-height: 1.65;
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-desc {
    max-width: 100%;
  }

  .offline-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .privacy-spotlight {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .dev-github-grid {
    grid-template-columns: 1fr;
  }

  .toc-list {
    columns: 1;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav-link:hover {
    background: var(--surface);
  }

  .nav-cta {
    justify-content: center;
    padding: 12px;
  }

  .section {
    padding: 64px 0;
  }

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

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container,
  .container-narrow {
    width: min(calc(100% - 28px), var(--container-max));
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .product-card {
    padding: 24px 20px;
  }

  .logo-container {
    width: 130px;
    height: 130px;
  }

  .privacy-spotlight {
    padding: 24px 18px;
  }

  .dev-card,
  .github-card {
    padding: 24px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Print Optimization */
@media print {
  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F5F5F5;
    --border: #CCCCCC;
    --text: #111111;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent: #8A5D2D;
  }

  body {
    background: #FFFFFF;
    color: #111111;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .mobile-menu-btn,
  .btn {
    display: none !important;
  }

  .policy-page {
    padding: 0;
  }

  .policy-section,
  .toc-box {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}
