/* Save the Knowledge — Breezy landing page */

:root {
  --sky: #e8f4f8;
  --sky-dark: #b8dde8;
  --sky-soft: #f0f9fc;
  --text: #1a2b3c;
  --text-muted: #5a6b7c;
  --accent: #0d8ab8;
  --accent-hover: #066a8a;
  --accent-soft: rgba(13, 138, 184, 0.12);
  --white: #ffffff;
  --shadow: rgba(13, 138, 184, 0.08);
  --shadow-soft: rgba(26, 43, 60, 0.04);
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(160deg, var(--sky-soft) 0%, var(--sky) 25%, var(--white) 60%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -15%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle, rgba(184, 221, 232, 0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
header {
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 221, 232, 0.3);
  z-index: 10;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.nav-link:hover {
  opacity: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-soft);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* Main */
main {
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 1;
}

main > section:not(.cases) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow-soft);
  border: 1px solid rgba(184, 221, 232, 0.5);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.cta-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #0a7a9e 100%);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13, 138, 184, 0.35);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13, 138, 184, 0.4);
}

/* Features */
.features {
  padding: 4rem 0;
}

.features h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--text);
}

.features h2 + p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow-soft);
  border: 1px solid rgba(184, 221, 232, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: rgba(184, 221, 232, 0.7);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.about,
.install {
  padding: 3.5rem 0;
}

.about h2,
.install h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.75rem;
}

.getting-started {
  padding: 3.5rem 0;
}

.getting-started h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.75rem;
}

.about-lead,
.install-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 740px;
}

.about-grid,
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.about-card,
.install-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 221, 232, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.guide-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 221, 232, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.guide-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.guide-card pre {
  margin: 0.8rem 0 0;
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.45;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
}

.about-card h3,
.install-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.install-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.86rem;
  line-height: 1.45;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  overflow-x: auto;
}

.copy-btn {
  margin-top: 0.8rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(184, 221, 232, 0.8);
  border-radius: 8px;
  background: var(--white);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--sky-soft);
}

.about-links {
  margin: 1.1rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

/* Case studies */
.cases {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cases h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cases-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-style: italic;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 2rem;
}

.case {
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow-soft);
  border: 1px solid rgba(184, 221, 232, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 220px;
}

.case:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--shadow);
}

.case-icon {
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.case h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.875rem;
  color: var(--text);
  line-height: 1.3;
}

.case p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Download */
.download {
  padding: 4rem 0;
  text-align: center;
}

.download h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.download-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.download-box {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px var(--shadow);
  border: 1px solid rgba(184, 221, 232, 0.4);
  margin-bottom: 1rem;
}

.cta-download {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #0a7a9e 100%);
  color: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(13, 138, 184, 0.35);
}

.cta-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13, 138, 184, 0.4);
}

.download-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.download-alt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.download-alt code {
  background: var(--sky);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Footer */
.footer {
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(184, 221, 232, 0.5);
  background: rgba(255, 255, 255, 0.4);
}

.footer-grid {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.footer-brand {
  text-align: left;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 12px var(--shadow-soft);
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.footer-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.footer-link:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.footer-contact h4,
.footer-newsletter h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(184, 221, 232, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-form button {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(184, 221, 232, 0.6);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 221, 232, 0.4);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1000px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1rem;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
  }

  .nav-link {
    display: none;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  main {
    padding: 0 1.25rem 3rem;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .cases {
    padding: 4rem 1.25rem;
  }

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

  .case {
    min-height: auto;
    padding: 1.75rem;
  }

  .footer {
    padding: 3rem 1.25rem 2rem;
  }

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

  .newsletter-form {
    flex-direction: column;
  }
}
