
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: #f3f4f6;
  --bg-shell: #f9fafb;
  --bg-header: #0f172a;
  --bg-card: #ffffff;
  --border-soft: #e5e7eb;
  --border-strong: #cbd5f5;
  --accent-main: #2563eb;
  --accent-soft: #38bdf8;
  --accent-chips: #e0f2fe;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 0 0, #dbeafe 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #fee2e2 0, transparent 55%),
    var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

.page-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.3rem 1rem 1.6rem;
}

/* HEADER */

.site-header {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(59,130,246,0.35) 0, transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(59,130,246,0.15) 0, transparent 55%),
              var(--bg-header);
  color: #e5e7eb;
  padding: 1rem 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #1e293b;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.8fr) minmax(0, 2.2fr);
  gap: 1.1rem;
  align-items: center;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #eff6ff;
  box-shadow:
    0 0 0 3px rgba(15,23,42,0.9),
    0 18px 40px rgba(37,99,235,0.8);
}

.brand-mark span {
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 650;
}

.brand-sub {
  font-size: 0.8rem;
  color: #cbd5f5;
}

.header-center {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-center-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
}

.header-search input {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.72);
  color: #e5e7eb;
  font: inherit;
  font-size: 0.88rem;
}

.header-search input::placeholder {
  color: #9ca3af;
}

.header-search button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background: #f9fafb;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  filter: brightness(1.03);
}

.header-right {
  text-align: right;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.header-right a {
  color: #bfdbfe;
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

.geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.7);
  font-size: 0.7rem;
}

.geo-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 9px rgba(34,197,94,0.9);
}

/* NAV TAGS */

.nav-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nav-tags a {
  font-size: 0.78rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-soft);
  background: #e5f0ff;
  color: #1e3a8a;
}

.nav-tags a.nav-active {
  background: #1d4ed8;
  color: #eff6ff;
  border-color: #1e40af;
}

/* MAIN LAYOUT WRAPPER */

.main-shell {
  margin-top: 1.2rem;
  background: var(--bg-shell);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.3fr);
  gap: 1.3rem;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.hero-lead {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-list {
  margin-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-list li + li {
  margin-top: 0.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.86rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f9fafb;
  font-weight: 600;
  border: none;
}

.btn-ghost {
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  color: #111827;
}

/* HERO SIDE GRID */

.hero-side {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.6rem;
}

.hero-specs {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  padding: 0.8rem 0.9rem;
  border: 1px solid #1f2937;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr);
  gap: 0.7rem;
}

.hero-specs h2 {
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.hero-specs p {
  font-size: 0.82rem;
  color: #e5e7eb;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero-badge-chip {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.94);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* GENERIC SECTIONS */

.section {
  margin-top: 1.7rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem;
  margin-bottom: 1rem;
}

.section-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.section-header h2,
.section-header h1 {
  font-size: 1.4rem;
}

.section-intro {
  max-width: 28rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* GRIDS & CARDS */

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

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

.card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

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

.card ul {
  margin-top: 0.35rem;
  margin-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.card li + li {
  margin-top: 0.16rem;
}

/* SPLIT SECTION */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(0, 2.3fr);
  gap: 1.1rem;
}

.section-split-main {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-split-main p {
  margin-bottom: 0.6rem;
}

.section-split-main ul,
.section-split-main ol {
  margin-left: 1.1rem;
  margin-bottom: 0.7rem;
}

.section-split-aside {
  display: flex;
}

.aside-box {
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
}

.aside-box h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.aside-box p {
  margin-bottom: 0.35rem;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 2.1fr);
  gap: 1.1rem;
}

.contact-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.contact-card a {
  color: var(--accent-main);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  font: inherit;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.contact-form button {
  margin-top: 0.2rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f9fafb;
  font-size: 0.86rem;
  font-weight: 600;
}

/* CONTENT TYPOGRAPHY */

.lead-paragraph {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.content-main {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.content-main p {
  margin-bottom: 0.6rem;
}

.content-main ul,
.content-main ol {
  margin-left: 1.1rem;
  margin-bottom: 0.7rem;
}

.content-main li + li {
  margin-top: 0.18rem;
}

/* FOOTER */

.site-footer {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  padding: 0.3rem 0.1rem;
}

.site-footer a {
  color: var(--accent-main);
  text-decoration: none;
}

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

/* RESPONSIVE */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .header-right {
    text-align: left;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    order: -1;
  }

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

  .section-split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-layout {
    padding: 0.9rem 0.6rem 1.1rem;
  }

  .site-header,
  .main-shell {
    border-radius: 0;
  }
}
