:root {
  --primary: #2b3a67;
  --primary-light: #3d4f85;
  --primary-dark: #1c2848;
  --accent: #e86a33;
  --accent-light: #f08a5d;
  --gold: #f2c14e;
  --gold-light: #f7d77e;
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #1f2430;
  --text-secondary: #4a5266;
  --text-muted: #7b8399;
  --border: rgba(43, 58, 103, 0.12);
  --shadow-sm: 0 2px 8px rgba(28, 40, 72, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 40, 72, 0.1);
  --shadow-lg: 0 16px 48px rgba(28, 40, 72, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --gradient-hero: linear-gradient(135deg, #2b3a67 0%, #3d4f85 45%, #5a4f8a 100%);
  --gradient-accent: linear-gradient(135deg, #e86a33 0%, #f2c14e 100%);
  --gradient-brand: linear-gradient(120deg, #2b3a67 0%, #4a5a9a 60%, #e86a33 100%);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(16px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7c8fd6;
    --primary-light: #9aab e0;
    --primary-light: #9aabe0;
    --primary-dark: #5a6bb0;
    --accent: #f08a5d;
    --accent-light: #f5a97f;
    --gold: #f2c14e;
    --gold-light: #f7d77e;
    --bg: #12141c;
    --bg-alt: #1a1d28;
    --surface: rgba(30, 34, 46, 0.72);
    --surface-solid: #1e222e;
    --text: #e8eaf2;
    --text-secondary: #b3b9cc;
    --text-muted: #8089a3;
    --border: rgba(124, 143, 214, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #1a1d28 0%, #252a3d 45%, #2e2a45 100%);
    --gradient-accent: linear-gradient(135deg, #f08a5d 0%, #f2c14e 100%);
    --gradient-brand: linear-gradient(120deg, #252a3d 0%, #3a3f5c 60%, #f08a5d 100%);
    --glass-bg: rgba(30, 34, 46, 0.55);
    --glass-border: rgba(124, 143, 214, 0.2);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(43, 58, 103, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232, 106, 51, 0.04), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.75rem;
  color: var(--primary);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text);
  font-weight: 700;
}

/* ============ Header ============ */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand nav search"
    "slogan nav search";
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.brand-bar {
  grid-area: brand / brand / slogan / slogan;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.brand-bar > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  transition: transform var(--transition);
}

.brand-bar > a:hover {
  transform: translateY(-2px);
}

.brand-bar svg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-bar > a:hover svg {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============ Nav ============ */
header nav {
  grid-area: nav;
  justify-self: center;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  align-items: center;
}

header nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: 999px;
  position: relative;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

header nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gradient-accent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition), transform var(--transition);
  z-index: -1;
}

header nav a:hover {
  color: #fff;
}

header nav a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ============ Search ============ */
header form[role="search"] {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}

header form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header form[role="search"] input {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--text);
  width: clamp(140px, 18vw, 240px);
  transition: border-color var(--transition), box-shadow var(--transition), width var(--transition);
}

header form[role="search"] input::placeholder {
  color: var(--text-muted);
}

header form[role="search"] input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.15);
  outline: none;
}

header form[role="search"] button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}

header form[role="search"] button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 106, 51, 0.35);
  filter: brightness(1.05);
}

header form[role="search"] button:active {
  transform: translateY(0);
}

/* ============ Main layout ============ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 3rem;
}

main > section {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  scroll-margin-top: 130px;
  animation: fadeUp 0.7s ease both;
}

main > section:nth-child(even) {
  animation-delay: 0.05s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Hero ============ */
#hero {
  position: relative;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 193, 78, 0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(232, 106, 51, 0.25), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  transform: rotate(8deg);
  z-index: -1;
  pointer-events: none;
  animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-10%) rotate(8deg); opacity: 0.4; }
  50% { transform: translateX(10%) rotate(8deg); opacity: 0.9; }
}

#hero h1 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

#hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 72ch;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.9;
}

#hero figure {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-lg);
}

#hero figure svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

#hero figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

/* ============ Breadcrumb ============ */
nav[aria-label="面包屑导航"] {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑导航"] li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted);
  opacity: 0.6;
}

nav[aria-label="面包屑导航"] a {
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

nav[aria-label="面包屑导航"] a:hover {
  color: var(--accent);
  background: rgba(232, 106, 51, 0.08);
}

nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* ============ Cards / Sections ============ */
#about,
#products,
#solutions,
#cases,
#news,
#articles,
#faq,
#howto,
#contact,
#sitemap,
#links {
  background: var(--surface);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

#about:hover,
#products:hover,
#solutions:hover,
#cases:hover,
#news:hover,
#articles:hover,
#faq:hover,
#howto:hover,
#contact:hover {
  box-shadow: var(--shadow-lg);
}

#about h3,
#products h3,
#solutions h3,
#cases h3,
#news h3,
#howto h3 {
  margin-top: 1.75rem;
}

#about h3:first-of-type,
#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#news h3:first-of-type,
#howto h3:first-of-type {
  margin-top: 0.5rem;
}

/* ============ Lists ============ */
#about ul,
#products ul,
#howto ul,
#sitemap ul,
#links ul {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
}

#about ul li,
#products ul li,
#howto ul li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

#about ul li::before,
#products ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.12);
}

#howto ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

#about ul li strong,
#products ul li strong {
  color: var(--primary);
}

/* Brand history timeline */
#about ul li:has(strong) {
  padding-left: 1.75rem;
}

/* ============ News ============ */
#news > ul {
  display: grid;
  gap: 1rem;
}

#news > ul > li {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#news > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

#news > ul > li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 106, 51, 0.3);
}

#news > ul > li:hover::before {
  transform: scaleY(1);
}

#news > ul > li h3 {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

#news > ul > li p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#news > ul > li p:last-of-type {
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ============ Articles ============ */
#articles > p:first-of-type {
  margin-bottom: 1.5rem;
}

#articles article {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 106, 51, 0.3);
}

#articles article h3 {
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
  transition: color var(--transition);
}

#articles article:hover h3 {
  color: var(--accent);
}

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#articles article p:nth-of-type(2) {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 106, 51, 0.08);
  transition: background var(--transition), transform var(--transition), color var(--transition);
}

#articles article a::after {
  content: "→";
  transition: transform var(--transition);
}

#articles article a:hover {
  background: var(--gradient-accent);
  color: #fff;
  transform: translateX(2px);
}

#articles article a:hover::after {
  transform: translateX(3px);
}

/* ============ FAQ ============ */
#faq details {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

#faq details[open] {
  border-color: rgba(232, 106, 51, 0.35);
  box-shadow: var(--shadow-sm);
}

#faq details:hover {
  border-color: rgba(232, 106, 51, 0.3);
}

#faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: color var(--transition), background var(--transition);
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform var(--transition);
}

#faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

#faq summary:hover {
  color: var(--accent);
  background: rgba(232, 106, 51, 0.04);
}

#faq details p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  font-size: 0.93rem;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HowTo ============ */
#howto ol {
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 3.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(232, 106, 51, 0.3);
}

#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(232, 106, 51, 0.3);
}

#howto ol li strong {
  color: var(--primary);
}

/* ============ Cases / Blockquote ============ */
#cases blockquote {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem 1.1rem 1.75rem;
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

#cases blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.1em;
  left: 0.5rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
}

#cases blockquote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ============ Contact ============ */
#contact address {
  font-style: normal;
  display: grid;
  gap: 0.6rem;
}

#contact address p {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

#contact address p:hover {
  transform: translateX(4px);
  border-color: rgba(232, 106, 51, 0.3);
  box-shadow: var(--shadow-sm);
}

#contact address strong {
  color: var(--primary);
  display: inline-block;
  min-width: 6.5em;
}

/* ============ Sitemap & Links ============ */
#sitemap ul,
#links ul {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

#sitemap ul li a,
#links ul li a {
  display: block;
  padding: 0.6rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

#sitemap ul li a:hover,
#links ul li a:hover {
  transform: translateY(-3px);
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(232, 106, 51, 0.3);
}

/* ============ Footer ============ */
footer[role="contentinfo"] {
  background: var(--gradient-hero);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(242, 193, 78, 0.1), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(232, 106, 51, 0.12), transparent 45%);
  pointer-events: none;
}

footer[role="contentinfo"] > section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

footer[role="contentinfo"] > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

footer[role="contentinfo"] h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0;
}

footer[role="contentinfo"] h2::after {
  display: none;
}

footer[role="contentinfo"] p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

footer[role="contentinfo"] a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

footer[role="contentinfo"] a:hover {
  color: #fff;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  header[role="banner"] {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand search"
      "slogan slogan"
      "nav nav";
    gap: 0.5rem 1rem;
  }

  header nav {
    justify-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav::-webkit-scrollbar {
    display: none;
  }

  header nav ul {
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  header form[role="search"] {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  header[role="banner"] {
    padding: 0.65rem 1rem;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "slogan"
      "nav"
      "search";
    gap: 0.5rem;
  }

  .brand-bar {
    justify-content: space-between;
    width: 100%;
  }

  .brand-slogan {
    text-align: left;
    width: 100%;
  }

  header nav {
    width: 100%;
  }

  header form[role="search"] {
    width: 100%;
    justify-self: stretch;
  }

  header form[role="search"] input {
    flex: 1;
    width: auto;
  }

  main {
    padding: 1rem 1rem 2rem;
  }

  main > section {
    scroll-margin-top: 180px;
  }

  #hero {
    border-radius: var(--radius-lg);
  }

  #hero h1 {
    font-size: 1.6rem;
  }

  #hero figure {
    margin-top: 1.5rem;
  }

  #about,
  #products,
  #solutions,
  #cases,
  #news,
  #articles,
  #faq,
  #howto,
  #contact,
  #sitemap,
  #links {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.1rem;
  }

  #news > ul > li,
  #articles article,
  #faq summary,
  #howto ol li {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #faq summary {
    padding-right: 2.75rem;
  }

  #howto ol li {
    padding-left: 3rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  footer[role="contentinfo"] {
    padding: 2rem 1rem 1.5rem;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 1.15rem;
  }

  .brand-bar svg {
    width: 38px;
    height: 38px;
  }

  header nav a {
    font-size: 0.82rem;
    padding: 0.35rem 0.6rem;
  }

  #sitemap ul,
  #links ul {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ Print ============ */
@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  #hero::before,
  #hero::after {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}