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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== CSS Variables ===== */
:root {
  --bg: #191919;
  --bg-card: #232323;
  --text: #e1e1e1;
  --text-muted: #999;
  --border: #373737;
  --max-width: 900px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Manrope', var(--font-primary);
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

a[target="_blank"]::after {
  content: ' ↗';
  font-size: 0.85em;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header / Nav ===== */
.nav {
  padding: 1.125rem 1.5rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
}

.nav-logo img {
  width: 28px;
  height: 28px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background-image: url('/assets/images/cover.webp');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.8);
}

.hero-inner {
  position: relative;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 500px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text);
  margin-top: 1.5rem;
}

/* ===== Extensions Section ===== */
.extensions {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.extensions > h2 {
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== Extension Card ===== */
.ext-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.ext-info {
  display: flex;
  flex-direction: column;
}

.ext-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

.ext-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.ext-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ext-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ext-screenshot {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* ===== More Extensions ===== */
.more-extensions {
  margin-bottom: 3rem;
}

.more-extensions p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.more-extensions ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.more-extensions li {
  margin-bottom: 0.375rem;
}

.more-extensions a {
  font-size: 0.9375rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-copy p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ===== Page Content (Privacy, Contacts) ===== */
.page-header {
  padding: 3rem 0 1.5rem;
}

.page-header .page-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-content {
  padding-bottom: 3rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  line-height: 1.6;
}

.page-content a {
  color: var(--text);
}

.updated-date {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-family: monospace;
}

/* ===== Contact Links ===== */
.contact-links {
  list-style: none;
  padding: 0;
}

.contact-links li {
  margin-bottom: 0.5rem;
}

.contact-links a {
  font-size: 0.9375rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .ext-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}
