/* Shared styles for BufferMind SEO pages (landing, features, pricing, about) */

:root {
  --bg: #0a1628;
  --ink: #f0f4f8;
  --ink-soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #60a5fa;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: linear-gradient(135deg, #080e1e 0%, #0f2847 25%, #1a5090 50%, #4a8cc7 75%, #b8d4e8 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
}

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  background: rgba(10, 22, 40, 0.7);
}

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

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 7px; color: #ffffff;
  text-decoration: none;
}

.brand-logo { width: 24px; height: 24px; flex-shrink: 0; }

.links {
  display: flex; gap: 20px;
  color: rgba(255, 255, 255, 0.6); font-size: 13px;
}

.links a { color: inherit; text-decoration: none; }
.links a.active { color: #ffffff; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-login {
  padding: 6px 16px; border-radius: 980px; border: none;
  background: #ffffff; color: #0a1628;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: opacity 0.2s;
}
.nav-login:hover { opacity: 0.75; }

.lang-toggle {
  padding: 4px 10px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.lang-toggle option {
  background: #1a2a44;
  color: #f0f4f8;
}

/* Page header (subpages) */
.page-header {
  text-align: center;
  padding: 86px 0 40px;
}

.page-header h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 16px auto 0;
  width: min(760px, 90%);
  color: var(--ink-soft);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
}

/* Shared section */
.section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section .sub {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
}

/* Grids */
.grid-2, .grid-3, .grid-4 {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

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

/* Cards */
.mini {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.mini h4 { margin: 0; font-size: 16px; font-weight: 800; }

.mini p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.panel {
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 24px;
}

.panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
}

.panel p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 60px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.cta-section p {
  margin: 12px auto 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  border-radius: 980px;
  background: #ffffff;
  color: #0a1628;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px 0 40px;
}

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

.footer h5 {
  margin: 0; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8;
}

.footer a, .footer p, .footer li {
  color: var(--ink-soft); text-decoration: none;
  font-size: 13px; line-height: 1.9; margin: 0;
}

.footer ul { list-style: none; margin: 8px 0 0; padding: 0; }

.copyright {
  margin-top: 22px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-soft); font-size: 12px;
}

/* Responsive */
@media (max-width: 980px) {
  .links { display: none; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
}
