:root {
  --bg: #f5f6f8;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --shadow2: 0 14px 40px rgba(2, 6, 23, 0.14);
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-muted {
  background: rgba(15, 23, 42, 0.04);
}

.section-title {
  font-size: 28px;
  margin: 0 0 18px;
}

.paragraph {
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

.muted {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 246, 248, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(245, 246, 248, 0.95);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-list {
  display: flex;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
}

.burger:hover {
  transform: translateY(-1px);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(245, 246, 248, 0.98);
}

.mobile-menu.open {
  display: block;
}

.mobile-list {
  padding: 12px 0;
  display: grid;
  gap: 6px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.mobile-link:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.hero-media {
  flex: 0 0 auto;
}

.avatar {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 8px solid rgba(255, 255, 255, 0.8);
}

.hero-content {
  max-width: 520px;
}

.hero-kicker {
  color: var(--muted);
  margin: 0 0 8px;
}

.hero-title {
  font-size: 46px;
  margin: 0;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 10px 0 22px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-stats li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 120px;
}

.hero-stats strong {
  display: block;
  font-size: 14px;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}

.btn-primary {
  background: #0f172a;
  border-color: #0f172a;
  color: white;
}

.btn-primary:hover {
  background: #111c35;
}

.btn-outline {
  background: transparent;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

/* Grid + Cards */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow2);
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.card-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  font-weight: 600;
  color: #0f172a;
  transition: opacity 0.25s ease;
}

.card-link:hover {
  opacity: 0.75;
}

/* API section head */
.api-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Quote */
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Form */
.form {
  margin-top: 18px;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(15, 23, 42, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.input-error {
  border-color: rgba(220, 38, 38, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: rgba(220, 38, 38, 0.9);
  font-size: 12px;
}

.pass-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pass-wrap input {
  flex: 1;
}

.pass-toggle {
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pass-toggle:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.06);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row label {
  margin: 0;
  font-weight: 400;
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted);
  transition: opacity 0.25s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

/* Cookies banner */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow2);
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Scroll top button */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  transition: transform 0.25s ease;
  z-index: 40;
}

.scroll-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 32px;
  }
  .hero-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }
  .avatar {
    width: 260px;
    height: 260px;
  }
  .hero-title {
    font-size: 34px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .container {
    width: 92%;
  }
  .hero-title {
    font-size: 30px;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    width: 100%;
  }
}
