:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4ff;
  --text: #14213d;
  --muted: #4f607d;
  --primary: #0e5aa7;
  --primary-dark: #0b437b;
  --border: #d3def1;
  --shadow: 0 14px 36px rgba(11, 67, 123, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 90, 167, 0.08), transparent 35%),
    radial-gradient(circle at 100% 20%, rgba(13, 133, 110, 0.08), transparent 30%),
    var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3,
.brand {
  font-family: "Montserrat", sans-serif;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-support {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.header-apnrt-logo {
  height: 28px;
  width: auto;
  display: block;
}

.hero-logo-wrap {
  margin-top: 1.2rem;
}

.hero-logo {
  width: min(420px, 86vw);
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--primary), #0b78b2);
  box-shadow: 0 8px 18px rgba(14, 90, 167, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(125deg, var(--primary-dark), #085b89);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: #a9bbd8;
  background: #f8fbff;
}

.hero-card,
.card,
.contact-card,
.stat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem 1.3rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: 4rem 0;
}

[id] {
  scroll-margin-top: 96px;
}

.products-section {
  padding-top: 0.6rem;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.product-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f6f8fb;
  display: block;
}

.product-content {
  padding: 1rem 1.1rem 1.2rem;
}

.product-content p {
  color: var(--muted);
}

.product-content ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

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

.card {
  padding: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.alt {
  background: linear-gradient(180deg, transparent, rgba(14, 90, 167, 0.05));
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.2rem;
}

.stat-panel {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  align-content: center;
}

.stat {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.preorder-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.preorder-product-image {
  width: 100%;
  max-width: 420px;
  height: 260px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f6f8fb;
  margin: 0 0 0.8rem;
}

.preorder-notes {
  margin: 0;
  padding-left: 1.1rem;
}

.preorder-form {
  padding: 1.2rem;
}

.preorder-form h3 {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-weight: 600;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-row input:focus,
.form-row select:focus {
  outline: 2px solid rgba(14, 90, 167, 0.24);
  outline-offset: 1px;
  border-color: #93abd0;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
}

.field-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.preorder-status {
  margin: 0.7rem 0 0;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.admin-wrap {
  display: grid;
  gap: 1rem;
}

.admin-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.3rem;
}

.admin-form {
  margin-top: 0.9rem;
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-table-wrap {
  padding: 1.2rem;
}

.admin-table-scroll {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--primary-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card {
  padding: 1.2rem;
}

.full {
  width: 100%;
  margin-top: 0.6rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}

.apnrt-wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
}

.about-apnrt {
  justify-items: start;
  text-align: left;
  margin-top: 1rem;
}

.apnrt-logo-image {
  width: min(300px, 72vw);
  height: auto;
  display: block;
}

.apnrt-text {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.footer-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-wrap,
  .preorder-wrap {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 150px;
  }

  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: flex-start;
    padding: 0.7rem 0;
  }

  .header-support {
    justify-self: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .hero {
    padding-top: 2.8rem;
  }
}
