@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --p-bg: #fafaf7;
  --p-surface: #ffffff;
  --p-ink: #0a0a0a;
  --p-ink-soft: #4a4a4a;
  --p-ink-muted: #8a8a8a;
  --p-border: #e8e6df;
  --p-accent: #1d4ed8;
  --p-accent-2: #06b6d4;
  --p-tag: #f3f1ea;

  --a-bg: #0a0e14;
  --a-surface: #11161e;
  --a-surface-2: #161c26;
  --a-border: #1f2937;
  --a-border-2: #2a3342;
  --a-ink: #e6edf3;
  --a-ink-soft: #9ba9b9;
  --a-ink-muted: #5b6573;
  --a-accent: #22d3ee;
  --a-accent-2: #818cf8;
  --a-success: #34d399;
  --a-danger: #f87171;
  --a-warning: #fbbf24;

  --serif: 'Be Vietnam Pro', Georgia, serif;
  --sans: 'Be Vietnam Pro', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--p-bg);
  color: var(--p-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; cursor: pointer; }

/* ========== PUBLIC SITE ========== */

.p-header {
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.p-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--p-accent-2), var(--p-accent) 50%, #0a0a0a 100%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 2px #fff;
}
.brand small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--p-ink-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 2px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { line-height: 1; }

.p-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.p-nav a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--p-ink-soft);
  border-radius: 999px;
  transition: all .2s;
}
.p-nav a:hover { background: var(--p-tag); color: var(--p-ink); }
.p-nav a.active { background: var(--p-ink); color: var(--p-bg); }

.p-search {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--p-tag);
  border-radius: 999px;
  padding: 8px 14px;
  gap: 8px;
  transition: all .2s;
}
.search-box:focus-within { background: var(--p-surface); box-shadow: 0 0 0 2px var(--p-ink); }
.search-box svg { width: 16px; height: 16px; color: var(--p-ink-muted); }
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 180px;
}

.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 32px 32px;
}
.hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--p-border);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
}
.hero-eyebrow strong { color: var(--p-accent); }
.hero-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--p-ink-muted);
  letter-spacing: .1em;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.hero-feature {
  position: relative;
  background: #0a0a0a;
  border-radius: 24px;
  overflow: hidden;
  min-height: 520px;
  cursor: pointer;
  transition: transform .4s;
}
.hero-feature:hover { transform: translateY(-2px); }
.hero-feature-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(6,182,212,.4), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(29,78,216,.5), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}
.hero-feature-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-feature-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  color: #fff;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-accent-2);
  align-self: flex-start;
}
.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-accent-2);
  box-shadow: 0 0 12px var(--p-accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero-feature h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 90%;
}
.hero-feature h1 em {
  font-style: italic;
  color: var(--p-accent-2);
  font-weight: 400;
}
.hero-feature-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-family: var(--mono);
}
.hero-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 14px;
}
.hero-read svg { width: 16px; height: 16px; transition: transform .3s; }
.hero-feature:hover .hero-read svg { transform: translateX(4px); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-side-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.hero-side-card:hover {
  border-color: var(--p-ink);
  transform: translateY(-2px);
}
.hero-side-card .num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--p-border);
  margin-bottom: 12px;
}
.hero-side-card .cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 8px;
}
.hero-side-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: auto;
  padding-bottom: 16px;
}
.hero-side-card .meta {
  font-size: 12px;
  color: var(--p-ink-muted);
  font-family: var(--mono);
}

.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 32px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--p-border);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--p-accent);
}
.section-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p-ink-soft);
  border-radius: 999px;
  transition: all .2s;
}
.filter-btn:hover { background: var(--p-tag); }
.filter-btn.active { background: var(--p-ink); color: var(--p-bg); }

/* Shared content wrapper — max-width + horizontal padding */
.section {
  max-width: 1320px;
  margin: 64px auto;
  padding: 0 32px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.article-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}
.article-card:hover { transform: translateY(-4px); }
.article-thumb {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--p-tag);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.article-thumb-art {
  position: absolute;
  inset: 0;
}
.article-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--p-ink);
}
.article-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.article-card p {
  font-size: 14px;
  color: var(--p-ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.article-card .meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--p-ink-muted);
  letter-spacing: .05em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--p-border);
}

.newsletter {
  background: #0a0a0a;
  color: #fafaf7;
  border-radius: 24px;
  padding: 64px 48px;
  max-width: 1320px;
  margin: 32px auto 0;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(6,182,212,.25), transparent 60%);
}
.newsletter-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.newsletter h2 em { font-style: italic; color: var(--p-accent-2); }
.newsletter p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  max-width: 80%;
}
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 6px;
  backdrop-filter: blur(10px);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button {
  background: var(--p-accent-2);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  padding: 14px 24px;
  border-radius: 8px;
  letter-spacing: .02em;
  transition: all .2s;
}
.newsletter-form button:hover { background: #fff; }

.p-footer {
  border-top: 1px solid var(--p-border);
  padding: 56px 32px 24px;
  margin-top: 80px;
  background: url('/images/footer-bg.jpg') center center / cover no-repeat;
  position: relative;
}
.p-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.82);
  pointer-events: none;
}
.p-footer,
.p-footer p,
.p-footer strong,
.p-footer span,
.p-footer small {
  color: #fff;
}
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  padding: 6px 0;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  max-width: 320px;
  margin-top: 16px;
}
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: .05em;
}

/* Article detail */
.article-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--p-ink-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color .2s;
}
.detail-back:hover { color: var(--p-ink); }
.detail-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 16px;
}
.article-detail h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.detail-meta {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--p-ink-muted);
  letter-spacing: .05em;
}
.detail-thumb {
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: var(--p-tag);
  margin-bottom: 40px;
  overflow: hidden;
}
.detail-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--p-ink);
}
.detail-content p { margin-bottom: 24px; }
.detail-content p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  float: left;
  line-height: 1;
  margin: 4px 12px 0 0;
  color: var(--p-accent);
}

.detail-share {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 40px 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
}
.detail-share span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
  margin-right: 12px;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--p-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--p-ink-soft);
  transition: all .2s;
}
.share-btn:hover {
  background: var(--p-ink);
  color: var(--p-bg);
  border-color: var(--p-ink);
}
.share-btn svg { width: 14px; height: 14px; }

.related-articles { margin-top: 40px; }
.related-articles h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* News list page */
.page-hero {
  background: #0a0a0a;
  color: #fff;
  padding: 80px 32px 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(6,182,212,.2), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(29,78,216,.3), transparent 60%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--p-accent-2);
  margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--p-accent-2); font-weight: 300; }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  max-width: 640px;
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--p-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.page-btn:hover { border-color: var(--p-ink); color: var(--p-ink); }
.page-btn.active { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Products page */
.products-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1320px;
  margin: 64px auto;
  padding: 0 32px;
}
.product-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 32px;
  transition: all .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.08);
}
.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--p-accent-2), var(--p-accent));
  color: #fff;
}
.product-icon svg { width: 26px; height: 26px; }
.product-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.product-card .product-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 12px;
}
.product-card p {
  color: var(--p-ink-soft);
  font-size: 14px;
  margin-bottom: 20px;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.product-features li {
  font-size: 13px;
  color: var(--p-ink-soft);
  list-style: none;
  padding-left: 24px;
  position: relative;
}
.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--p-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.product-card .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p-accent);
  padding-top: 16px;
  border-top: 1px solid var(--p-border);
}

/* About page */
.about-hero {
  max-width: 1320px;
  margin: 80px auto 64px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.about-hero-text h1 em { font-style: italic; color: var(--p-accent); font-weight: 300; }
.about-hero-text p {
  font-size: 17px;
  color: var(--p-ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-visual {
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(6,182,212,.4), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(29,78,216,.5), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-visual::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--p-accent-2), var(--p-accent) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(2px);
}

.about-stats {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-stat {
  padding: 32px 0;
  border-top: 1px solid var(--p-ink);
}
.about-stat .num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.about-stat .num em { font-style: italic; color: var(--p-accent); font-weight: 300; }
.about-stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
}

.values-section {
  max-width: 1320px;
  margin: 100px auto;
  padding: 0 32px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.value-card {
  padding: 32px;
  border: 1px solid var(--p-border);
  border-radius: 20px;
  background: var(--p-surface);
  transition: all .3s;
}
.value-card:hover { border-color: var(--p-ink); transform: translateY(-2px); }
.value-card .num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
  color: var(--p-accent);
  margin-bottom: 16px;
  display: block;
}
.value-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.value-card p {
  color: var(--p-ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* Recruitment page layout */
.recruit-hero-inner,
.recruit-filters-inner,
.jobs-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.recruit-filters-inner { padding-top: 24px; padding-bottom: 24px; }
.jobs-section { margin-top: 40px; margin-bottom: 80px; }

/* Contact page */
.contact-section {
  max-width: 1320px;
  margin: 80px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.contact-info h2 em { font-style: italic; color: var(--p-accent); }
.contact-info > p {
  color: var(--p-ink-soft);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.contact-detail {
  padding: 24px 0;
  border-bottom: 1px solid var(--p-border);
  display: flex;
  gap: 16px;
  align-items: start;
}
.contact-detail:last-child { border-bottom: none; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--p-tag);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--p-accent); }
.contact-detail h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
  margin-bottom: 6px;
}
.contact-detail p {
  font-size: 15px;
  color: var(--p-ink);
  line-height: 1.5;
}

.contact-form {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 20px;
  padding: 40px;
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.contact-form > p {
  color: var(--p-ink-soft);
  font-size: 14px;
  margin-bottom: 28px;
}
.p-field { margin-bottom: 18px; }
.p-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.p-field input, .p-field textarea, .p-field select {
  width: 100%;
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: all .2s;
  color: var(--p-ink);
}
.p-field input:focus, .p-field textarea:focus, .p-field select:focus {
  border-color: var(--p-ink);
  background: var(--p-surface);
}
.p-field textarea { resize: vertical; min-height: 120px; }
.p-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-field .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #dc2626;
  font-family: var(--mono);
}
.p-btn {
  background: var(--p-ink);
  color: var(--p-bg);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  width: 100%;
  justify-content: center;
}
.p-btn:hover { background: var(--p-accent); }
.p-btn svg { width: 16px; height: 16px; }

/* Search page */
.search-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 32px;
}
.search-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--p-border);
}
.search-header .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p-ink-muted);
  margin-bottom: 8px;
}
.search-header h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -.02em;
}
.search-header h1 em { font-style: italic; color: var(--p-accent); }
.search-header .count {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--p-ink-muted);
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--p-ink-muted);
}
.no-results svg {
  width: 56px;
  height: 56px;
  opacity: .3;
  margin-bottom: 16px;
}
.no-results h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--p-ink);
  margin-bottom: 8px;
}
.no-results p { font-size: 14px; max-width: 400px; margin: 0 auto; }

/* Alert / Success */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.alert-success svg { color: #16a34a; }

/* ========== ADMIN ========== */
.admin-view {
  background: var(--a-bg);
  color: var(--a-ink);
  min-height: 100vh;
  font-family: var(--sans);
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--a-bg);
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.12), transparent 60%);
  top: -200px;
  right: -100px;
}
.login-screen::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.1), transparent 60%);
  bottom: -200px;
  left: -100px;
}
.login-card {
  position: relative;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-brand .brand-mark { width: 40px; height: 40px; }
.login-brand-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--a-ink);
}
.login-brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--a-accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.login-card h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 4px;
  color: var(--a-ink);
}
.login-card .sub {
  color: var(--a-ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--a-bg);
  border: 1px solid var(--a-border-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--a-ink);
  font-size: 14px;
  outline: none;
  transition: all .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--a-ink-muted);
}
.field .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--a-danger);
  font-family: var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .2s;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--a-accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #67e8f9;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,211,238,.3);
}
.btn-ghost {
  background: transparent;
  color: var(--a-ink);
  border-color: var(--a-border-2);
}
.btn-ghost:hover { background: var(--a-surface-2); border-color: var(--a-accent); }
.btn-danger {
  background: rgba(248,113,113,.1);
  color: var(--a-danger);
  border-color: rgba(248,113,113,.3);
}
.btn-danger:hover { background: var(--a-danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

.login-hint {
  margin-top: 20px;
  padding: 12px;
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.15);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-ink-soft);
  text-align: center;
}
.login-hint strong { color: var(--a-accent); }

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--a-surface);
  border-right: 1px solid var(--a-border);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.brand-logo { height: 38px; object-fit: contain; }

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px 24px;
  border-bottom: 1px solid var(--a-border);
  margin-bottom: 16px;
}
.sidebar-brand .brand-mark { width: 32px; height: 32px; }
.sidebar-brand-text { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.sidebar-brand-text small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--a-accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.nav-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  padding: 12px 12px 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--a-ink-soft);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { background: var(--a-surface-2); color: var(--a-ink); }
.nav-link.active {
  background: rgba(34,211,238,.12);
  color: var(--a-accent);
  box-shadow: inset 2px 0 0 var(--a-accent);
}
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-link .badge {
  margin-left: auto;
  background: var(--a-border-2);
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.nav-link.active .badge { background: var(--a-accent); color: #0a0a0a; }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--a-border);
  padding-top: 16px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a-accent), var(--a-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #0a0a0a;
}
.user-card-info { flex: 1; min-width: 0; }
.user-card-info strong { display: block; font-size: 13px; color: var(--a-ink); }
.user-card-info small { font-size: 11px; color: var(--a-ink-muted); }

.admin-main { padding: 0; overflow: hidden; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--a-border);
  background: var(--a-surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-title h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-ink-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb span { color: var(--a-accent); }
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--a-ink); }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.admin-content { padding: 32px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--a-accent), transparent 70%);
  opacity: .08;
  top: -20px;
  right: -20px;
  border-radius: 50%;
}
.stat-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  margin-bottom: 12px;
}
.stat-card .value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--a-ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .delta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
}
.stat-card .delta.up { background: rgba(52,211,153,.12); color: var(--a-success); }
.stat-card .delta.down { background: rgba(248,113,113,.12); color: var(--a-danger); }

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
}
.admin-search {
  display: flex;
  align-items: center;
  background: var(--a-surface);
  border: 1px solid var(--a-border-2);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
  flex: 1;
  max-width: 320px;
  transition: all .2s;
}
.admin-search:focus-within {
  border-color: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,.1);
}
.admin-search svg { width: 14px; height: 14px; color: var(--a-ink-muted); }
.admin-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--a-ink);
  font-size: 13px;
}
.admin-search input::placeholder { color: var(--a-ink-muted); }

.filter-select {
  background: var(--a-surface);
  border: 1px solid var(--a-border-2);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--a-ink);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.data-table-wrap {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid var(--a-border);
  background: var(--a-surface-2);
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--a-border);
  font-size: 14px;
  color: var(--a-ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(34,211,238,.03); }
.data-table .title-cell {
  font-weight: 500;
  max-width: 380px;
  cursor: pointer;
}
.data-table .title-cell:hover strong { color: var(--a-accent); }
.data-table .title-cell strong {
  display: block;
  margin-bottom: 4px;
  transition: color .15s;
}
.data-table .title-cell small {
  font-size: 12px;
  color: var(--a-ink-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status.published { background: rgba(52,211,153,.12); color: var(--a-success); }
.status.published::before { background: var(--a-success); box-shadow: 0 0 6px var(--a-success); }
.status.draft { background: rgba(251,191,36,.12); color: var(--a-warning); }
.status.draft::before { background: var(--a-warning); }
.cat-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(129,140,248,.12);
  color: var(--a-accent-2);
  font-weight: 600;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--a-ink-soft);
  transition: all .2s;
  border: 1px solid var(--a-border-2);
  background: var(--a-bg);
  cursor: pointer;
}
.icon-btn:hover { background: var(--a-surface-2); color: var(--a-accent); border-color: var(--a-accent); }
.icon-btn.danger:hover { color: var(--a-danger); border-color: var(--a-danger); background: rgba(248,113,113,.08); }
.icon-btn svg { width: 14px; height: 14px; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--a-ink-muted);
}
.empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: .4; }
.empty p { font-size: 14px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: var(--a-surface);
  border: 1px solid var(--a-accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--a-ink);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translateX(400px);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.toast.show { transform: translateX(0); }
.toast.danger { border-color: var(--a-danger); }
.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--a-accent);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast.danger .toast-icon { background: var(--a-danger); color: #fff; }

/* Categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: all .2s;
}
.cat-card:hover { border-color: var(--a-accent); }
.cat-card .cat-color {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
}
.cat-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
}
.cat-card h3:hover { color: var(--a-accent); }
.cat-card p {
  font-size: 13px;
  color: var(--a-ink-soft);
  margin-bottom: 14px;
  min-height: 36px;
}
.cat-card .cat-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-ink-muted);
  letter-spacing: .05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--a-border);
}

/* Article preview (admin) */
.preview-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.preview-main {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 32px;
}
.preview-thumb {
  aspect-ratio: 16/9;
  border-radius: 12px;
  margin-bottom: 24px;
  background: var(--a-surface-2);
  overflow: hidden;
}
.preview-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.preview-main h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.preview-meta {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-ink-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 0;
  border-top: 1px solid var(--a-border);
  border-bottom: 1px solid var(--a-border);
  margin-bottom: 24px;
}
.preview-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--a-ink-soft);
}
.preview-content p { margin-bottom: 16px; }

.preview-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-card {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 20px;
}
.aside-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.aside-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--a-border);
}
.aside-row:last-child { border-bottom: none; }
.aside-row .key { color: var(--a-ink-muted); font-family: var(--mono); font-size: 12px; }
.aside-row .val { color: var(--a-ink); font-weight: 500; }

/* Color picker */
.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected {
  border-color: var(--a-ink);
  box-shadow: 0 0 0 2px var(--a-bg), 0 0 0 4px var(--a-accent);
}

/* Form layout */
.form-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
.form-main, .form-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-section {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.form-section-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--a-ink-muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Pagination admin */
.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.admin-pagination a, .admin-pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--a-border-2);
  background: var(--a-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--a-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.admin-pagination a:hover { border-color: var(--a-accent); color: var(--a-accent); }
.admin-pagination .active { background: var(--a-accent); color: #0a0a0a; border-color: var(--a-accent); }
.admin-pagination .disabled { opacity: .4; cursor: not-allowed; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .products-hero { grid-template-columns: repeat(2, 1fr); }
  .about-hero { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  .preview-wrap { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p-header-inner { grid-template-columns: 1fr auto; }
  .p-nav { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .products-hero { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .p-field-row { grid-template-columns: 1fr; }
}

/* ── CKEditor 5 dark theme overrides ───────────────────────────── */
.ck.ck-editor { border-radius: 8px !important; overflow: hidden; }
.ck.ck-toolbar {
  background: #1f2937 !important;
  border-color: var(--a-border, #1f2937) !important;
  border-bottom-color: #374151 !important;
  padding: 4px 8px !important;
}
.ck.ck-toolbar .ck-toolbar__separator { background: #374151 !important; }
.ck.ck-button { color: #d1d5db !important; border-radius: 4px !important; }
.ck.ck-button:hover:not(.ck-disabled) { background: #374151 !important; color: #f9fafb !important; }
.ck.ck-button.ck-on { background: #374151 !important; color: #22d3ee !important; }
.ck.ck-editor__main>.ck-editor__editable {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #374151 !important;
  min-height: 420px !important;
  border-radius: 0 !important;
}
.ck.ck-editor__main>.ck-editor__editable.ck-focused {
  border-color: #22d3ee !important;
  box-shadow: none !important;
}
.ck.ck-dropdown__panel { background: #1f2937 !important; border-color: #374151 !important; }
.ck.ck-list { background: #1f2937 !important; }
.ck.ck-list__item .ck-button { color: #d1d5db !important; }
.ck.ck-list__item .ck-button:hover { background: #374151 !important; }
.ck.ck-list__item .ck-button.ck-on { background: #374151 !important; color: #22d3ee !important; }
.ck.ck-balloon-panel { background: #1f2937 !important; border-color: #374151 !important; }
.ck.ck-balloon-panel .ck-input { background: #111827 !important; color: #e5e7eb !important; border-color: #374151 !important; }
.ck.ck-tooltip__text { background: #0a0a0a !important; }

/* ── Company Profile Page ───────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f2744 100%);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, #027abf33, transparent 70%);
}
.profile-hero-inner { position: relative; max-width: 700px; margin: 0 auto; padding: 0 24px; }
.profile-hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #027abf22;
  color: #38bdf8;
  border: 1px solid #027abf44;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.profile-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #f9fafb;
  line-height: 1.2;
  margin-bottom: 12px;
}
.profile-hero-tagline { color: #9ca3af; font-size: 18px; }

.profile-stats-bar { background: #027abf; padding: 28px 0; }
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.profile-stat { text-align: center; padding: 0 16px; border-right: 1px solid #ffffff33; }
.profile-stat:last-child { border-right: none; }
.profile-stat-value { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.profile-stat-label { font-size: 13px; color: #bfdbfe; margin-top: 4px; }

.profile-body { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
.profile-section { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--p-border); }
.profile-section:last-child { border-bottom: none; margin-bottom: 0; }
.profile-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #027abf;
  margin-bottom: 20px;
}
.profile-rich-content { color: var(--p-ink); line-height: 1.8; font-size: 16px; }
.profile-rich-content h2, .profile-rich-content h3 { font-weight: 700; margin: 1.6em 0 .6em; color: var(--p-ink); }
.profile-rich-content h3 { font-size: 18px; }
.profile-rich-content p { margin-bottom: 1em; color: var(--p-ink-soft); }
.profile-rich-content ul, .profile-rich-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.profile-rich-content li { margin-bottom: 6px; color: var(--p-ink-soft); }
.profile-rich-content strong { color: var(--p-ink); }

.profile-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 10px; }
.profile-contact-icon { width: 40px; height: 40px; border-radius: 10px; background: #027abf11; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-contact-icon svg { width: 18px; height: 18px; stroke: #027abf; }
.profile-contact-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--p-ink-muted); margin-bottom: 4px; }
.profile-contact-value { font-size: 14px; color: var(--p-ink); }
.profile-contact-value a { color: #027abf; text-decoration: none; }
.profile-contact-value a:hover { text-decoration: underline; }

/* ── Profile Slider ─────────────────────────────────────────────── */
.profile-slider-section { overflow: hidden; padding-bottom: 0; }

.pslider-tabs {
  display: flex; gap: 0; margin-bottom: 0;
  border-bottom: 2px solid var(--p-border);
  overflow-x: auto; scrollbar-width: none;
}
.pslider-tabs::-webkit-scrollbar { display: none; }
.pslider-tab {
  flex-shrink: 0;
  padding: 10px 20px; background: none; border: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--p-ink-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.pslider-tab:hover { color: var(--p-ink); }
.pslider-tab.active { color: #027abf; border-bottom-color: #027abf; }

.pslider-overflow { overflow: hidden; }

.pslider-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.pslider-slide {
  flex: 0 0 100%; min-width: 0;
  padding: 40px 0 32px;
}
.pslider-slide-pdf { padding-bottom: 48px; }

.pslider-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 20px 0 40px;
}
.pslider-arrow {
  background: none; border: 1px solid var(--p-border); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--p-ink-muted); cursor: pointer; transition: all .15s;
}
.pslider-arrow:hover { background: #027abf; border-color: #027abf; color: #fff; }
.pslider-dots { display: flex; gap: 8px; align-items: center; }
.pslider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--p-border); border: none; cursor: pointer;
  transition: all .2s; padding: 0;
}
.pslider-dot.active { width: 24px; border-radius: 4px; background: #027abf; }

/* ── Profile Flip Book ──────────────────────────────────────────── */
.profile-flipbook-section { max-width: 1100px; }
.flipbook-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.flipbook-loading {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 60px 24px; color: var(--p-ink-muted); font-size: 14px;
}
.flipbook-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--p-border); border-top-color: #027abf;
  animation: flip-spin .8s linear infinite;
}
@keyframes flip-spin { to { transform: rotate(360deg); } }

#flip-book-container {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
}

.flipbook-controls {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px; background: var(--p-surface);
  border: 1px solid var(--p-border); border-radius: 999px;
}
.flipbook-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border: 1px solid var(--p-border);
  border-radius: 8px; background: var(--p-bg); color: var(--p-ink);
  font-size: 14px; font-family: var(--sans); cursor: pointer;
  transition: all .15s;
}
.flipbook-btn:hover { background: #027abf; color: #fff; border-color: #027abf; }
.flipbook-page-info { font-size: 14px; color: var(--p-ink-muted); white-space: nowrap; }
.flipbook-page-info strong { color: var(--p-ink); }
.flipbook-btn-fs { margin-left: 8px; border-left: 1px solid var(--p-border); padding-left: 16px; }

/* Fullscreen overlay */
#flip-book-container.flipbook-fullscreen {
  position: fixed; inset: 0; z-index: 9999;
  background: #111; display: flex !important;
  align-items: center; justify-content: center;
  padding: 0;
}
#flip-book-container.flipbook-fullscreen #flip-book {
  width: 100vw; height: 100vh;
}

/* Overlay controls (only visible in fullscreen) */
.flipbook-fs-overlay {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 10000;
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#flip-book-container.flipbook-fullscreen .flipbook-fs-overlay {
  opacity: 1; pointer-events: auto;
}
.flipbook-fs-nav {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; padding: 6px;
  border-radius: 8px; transition: background .15s;
}
.flipbook-fs-nav:hover { background: rgba(255,255,255,.15); }
.flipbook-fs-pageinfo { font-size: 14px; color: rgba(255,255,255,.8); min-width: 60px; text-align: center; }

@media (max-width: 640px) {
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .profile-stat { border-right: none; }
  .profile-contact-grid { grid-template-columns: 1fr; }
  .flipbook-controls { gap: 12px; }
  .flipbook-btn { padding: 7px 12px; font-size: 13px; }
}

/* ── Home Page ───────────────────────────────────────────────────── */

/* Hero */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #060d1a 0%, #0d1f3c 60%, #0a1628 100%);
  color: #fff; padding-bottom: 0;
}
.home-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(2,122,191,.25) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.hero-glow-1 { width: 500px; height: 500px; background: #027abf33; top: -100px; right: 10%; }
.hero-glow-2 { width: 360px; height: 360px; background: #22d3ee22; bottom: 0; left: 5%; }

.home-hero-inner {
  display: grid; grid-template-columns: 1fr 380px; gap: 64px;
  align-items: center; padding-top: 80px; padding-bottom: 80px;
  position: relative; z-index: 1;
}
.home-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(2,122,191,.15); border: 1px solid rgba(2,122,191,.3);
  font-size: 12px; font-weight: 600; color: #7dd3fc;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; flex-shrink: 0; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.home-hero-title {
  font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 20px; letter-spacing: -.02em;
}
.home-hero-title em { font-style: normal; color: #22d3ee; }
.home-hero-desc {
  font-size: 17px; color: #94a3b8; line-height: 1.75;
  max-width: 560px; margin-bottom: 36px;
}
.home-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.home-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #027abf; color: #fff;
  border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.home-btn-primary:hover { background: #0369a1; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(2,122,191,.4); }
.home-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: rgba(255,255,255,.07);
  color: #cbd5e1; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all .2s;
}
.home-btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hero Visual */
.home-hero-visual {
  position: relative; width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
}
.hero-visual-ring-1 { inset: 0; border-color: rgba(2,122,191,.3); animation: ring-spin 20s linear infinite; }
.hero-visual-ring-2 { inset: 30px; border-color: rgba(34,211,238,.2); animation: ring-spin 15s linear infinite reverse; }
.hero-visual-ring-3 { inset: 70px; border-color: rgba(2,122,191,.4); animation: ring-spin 10s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.hero-visual-center {
  width: 100px; height: 100px; background: rgba(2,122,191,.15);
  border: 1px solid rgba(2,122,191,.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Stats strip */
.home-stats-strip {
  background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.home-stats-inner {
  display: flex; justify-content: center; flex-wrap: wrap;
}
.home-stat {
  flex: 1; min-width: 140px; max-width: 220px;
  padding: 28px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.home-stat:last-child { border-right: none; }
.home-stat-value { font-size: 36px; font-weight: 800; color: #22d3ee; line-height: 1; }
.home-stat-label { font-size: 13px; color: #64748b; margin-top: 6px; }

/* Sections common */
.home-section { padding: 80px 0; }
.home-section-alt { background: #f8fafc; }
.home-section-head { text-align: center; margin-bottom: 52px; }
.home-section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: #027abf; margin-bottom: 12px; text-transform: uppercase;
}
.home-section-head h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800;
  color: var(--p-ink); margin-bottom: 14px; letter-spacing: -.02em;
}
.home-section-head h2 em { font-style: normal; color: #027abf; }
.home-section-head p { font-size: 16px; color: var(--p-ink-muted); max-width: 580px; margin: 0 auto; }
.home-section-cta { text-align: center; margin-top: 40px; }
.home-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border: 1.5px solid #027abf;
  color: #027abf; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.home-btn-outline:hover { background: #027abf; color: #fff; }

/* Products grid */
.home-products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.home-product-card {
  background: var(--p-bg); border: 1px solid var(--p-border);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: all .2s; display: block;
  border-top: 3px solid var(--card-color, #22d3ee);
}
.home-product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.hpc-thumb { position: relative; height: 160px; overflow: hidden; background: #f1f5f9; }
.hpc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.home-product-card:hover .hpc-thumb img { transform: scale(1.05); }
.hpc-thumb-placeholder { width: 100%; height: 100%; }
.hpc-cat {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
}
.hpc-body { padding: 18px; }
.hpc-body h3 { font-size: 15px; font-weight: 700; color: var(--p-ink); margin-bottom: 8px; }
.hpc-body p { font-size: 13px; color: var(--p-ink-muted); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hpc-arrow { font-size: 13px; font-weight: 600; color: #027abf; }

/* Services grid */
.home-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-svc-card {
  background: #fff; border: 1px solid var(--p-border);
  border-radius: 14px; padding: 28px 24px; text-align: center;
  transition: box-shadow .2s;
}
.home-svc-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.home-svc-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: #eff6ff; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; color: #027abf;
}
.home-svc-card h3 { font-size: 16px; font-weight: 700; color: var(--p-ink); margin-bottom: 10px; }
.home-svc-card p { font-size: 14px; color: var(--p-ink-muted); line-height: 1.65; }

/* Case Studies horizontal scroll */
.home-cases-scroll-wrap { overflow: hidden; }
.home-cases-track {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 24px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.home-cases-track::-webkit-scrollbar { display: none; }
.home-case-card {
  flex: 0 0 280px; border-radius: 14px; overflow: hidden;
  background: var(--p-bg); border: 1px solid var(--p-border);
  text-decoration: none; scroll-snap-align: start;
  transition: all .2s;
}
.home-case-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.home-case-thumb { height: 160px; overflow: hidden; position: relative; }
.home-case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-case-cat {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.home-case-body { padding: 16px; }
.home-case-body h4 { font-size: 14px; font-weight: 700; color: var(--p-ink); margin-bottom: 6px; }
.home-case-body p { font-size: 13px; color: var(--p-ink-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Partners marquee */
.home-partners-section { padding: 60px 0; }
.home-partners-marquee-wrap { overflow: hidden; margin-top: 32px; }
.home-partners-marquee {
  display: flex; width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.home-partners-marquee:hover { animation-play-state: paused; }
.home-partners-track { display: flex; gap: 48px; align-items: center; padding: 0 24px; }
.home-partner-item {
  flex-shrink: 0; height: 48px; display: flex; align-items: center;
  opacity: .6; transition: opacity .2s; filter: grayscale(1);
}
.home-partner-item:hover { opacity: 1; filter: none; }
.home-partner-item img { height: 40px; max-width: 140px; object-fit: contain; }
.home-partner-name {
  font-size: 15px; font-weight: 700; color: var(--p-ink-muted);
  white-space: nowrap;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* News grid */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news-card {
  background: var(--p-bg); border: 1px solid var(--p-border);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  transition: all .2s; display: block;
}
.home-news-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.home-news-thumb { height: 180px; }
.home-news-body { padding: 20px; }
.home-news-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-news-body h3 { font-size: 16px; font-weight: 700; color: var(--p-ink); margin: 8px 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-body p { font-size: 13px; color: var(--p-ink-muted); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-meta { font-size: 12px; color: var(--p-ink-muted); }

/* Responsive home */
@media (max-width: 1024px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-visual { display: none; }
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-hero-inner { padding-top: 52px; padding-bottom: 52px; }
  .home-hero-title { font-size: 28px; }
  .home-products-grid { grid-template-columns: 1fr; }
  .home-services-grid { grid-template-columns: 1fr; }
  .home-news-grid { grid-template-columns: 1fr; }
  .home-stat { min-width: 120px; }
  .home-stat-value { font-size: 28px; }
}

/* ── Products Grid Page ─────────────────────────────────────────── */
.product-filter-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:32px; }
.filter-tab {
  padding: 8px 18px; border-radius:999px; font-size:13px; font-weight:500;
  color: var(--p-ink-soft); background: var(--p-tag); transition: all .2s;
}
.filter-tab:hover { background: var(--p-border); color: var(--p-ink); }
.filter-tab.active { background: var(--p-ink); color: var(--p-bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-grid-card {
  border-radius: 16px;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.product-grid-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.1); border-color: #027abf44; }
.pgc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f4f8;
}
.pgc-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.product-grid-card:hover .pgc-thumb img { transform: scale(1.04); }
.pgc-cat {
  position: absolute; bottom:10px; left:10px;
  padding: 3px 10px; border-radius:20px; font-size:11px; font-weight:600; letter-spacing:.05em;
}
.pgc-body { padding: 20px; flex:1; display:flex; flex-direction:column; gap:8px; }
.pgc-body h3 { font-size:16px; font-weight:700; color:var(--p-ink); line-height:1.3; }
.pgc-body p { font-size:13px; color:var(--p-ink-soft); line-height:1.6; flex:1; }
.pgc-link { font-size:13px; font-weight:600; color:#027abf; }
.product-grid-card:hover .pgc-link { text-decoration:underline; }

.product-detail-hero { padding: 56px 0 48px; }

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .products-grid { grid-template-columns: 1fr; } }

/* ── Product Showcase (danh sách + chi tiết sản phẩm) ───────────── */
.pd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pd-wrap-narrow { max-width: 900px; }

/* Khung trình duyệt bao ảnh chụp màn hình */
.pd-frame {
  display: block; width: 100%; padding: 0; text-align: left;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid #dbe3ec; box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.pd-frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef2f6; border-bottom: 1px solid #dbe3ec; }
.pd-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.pd-frame-bar i:first-child { background: #f87171; }
.pd-frame-bar i:nth-child(2) { background: #fbbf24; }
.pd-frame-bar i:nth-child(3) { background: #34d399; }
.pd-frame img { display: block; width: 100%; height: auto; }

/* Danh sách sản phẩm */
.pl-page { padding-top: 40px; padding-bottom: 88px; }
.pl-list { display: flex; flex-direction: column; gap: 32px; }
.pl-item {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 36px; border-radius: 20px; background: var(--p-surface);
  border: 1px solid var(--p-border); border-top: 4px solid var(--pd-color, #027abf);
}
.pl-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pl-item:nth-child(even) .pl-media { order: 2; }
.pl-media { display: block; transition: transform .3s; }
.pl-media:hover { transform: translateY(-3px); }
.pl-media-placeholder { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #e0f2fe, #f1f5f9); }
.pl-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-code {
  padding: 4px 12px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; color: #fff; background: var(--pd-color, #027abf);
}
.pl-cat { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--p-ink-soft); background: var(--p-tag); }
.pl-body h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; }
.pl-body h2 a:hover { color: #027abf; }
.pl-desc { font-size: 15px; color: var(--p-ink-soft); line-height: 1.7; margin-bottom: 20px; }
.pl-highlights { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.pl-highlights li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--p-ink-soft); }
.pl-highlights strong {
  flex: 0 0 88px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #027abf;
}
.pl-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pl-actions .home-btn-primary, .pl-actions .home-btn-outline { padding: 11px 22px; font-size: 14px; }

/* Hero chi tiết */
.pd-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #060d1a 0%, #0d1f3c 60%, #0a1628 100%); }
.pd-hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 64px;
}
.pd-back { display: inline-block; font-size: 13px; color: #94a3b8; margin-bottom: 22px; }
.pd-back:hover { color: #fff; }
.pd-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-code {
  padding: 5px 14px; border-radius: 6px; font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; background: #027abf; color: #fff;
}
.pd-cat {
  padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: #7dd3fc; background: rgba(2,122,191,.15); border: 1px solid rgba(2,122,191,.35);
}
.pd-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.pd-tagline { font-size: 17px; line-height: 1.7; color: #cbd5e1; margin-bottom: 14px; }
.pd-subtitle { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #22d3ee; margin-bottom: 30px; }
.pd-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-hero-shot .pd-frame { border-color: rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pd-highlights { position: relative; z-index: 1; background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.08); }
.pd-highlights-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.pd-highlight { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.07); }
.pd-highlight:first-child { padding-left: 0; }
.pd-highlight:last-child { border-right: none; }
.pd-highlight strong { display: block; font-size: 24px; font-weight: 800; color: #22d3ee; text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: 6px; }
.pd-highlight span { font-size: 14px; color: #94a3b8; line-height: 1.55; }

/* Điều hướng trong trang */
.pd-subnav {
  position: sticky; top: var(--pd-sticky-top, 76px); z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--p-border);
}
.pd-subnav-inner { position: relative; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pd-subnav-inner::-webkit-scrollbar { display: none; }
.pd-subnav-code { font-family: var(--mono); font-size: 13px; font-weight: 700; color: #027abf; padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--p-border); white-space: nowrap; }
.pd-subnav a { padding: 15px 12px; font-size: 14px; font-weight: 500; color: var(--p-ink-soft); white-space: nowrap; border-bottom: 2px solid transparent; }
.pd-subnav a:hover { color: var(--p-ink); }
.pd-subnav a.active { color: #027abf; border-bottom-color: #027abf; }
.pd-subnav a.pd-subnav-cta {
  margin-left: auto; padding: 8px 16px; border-radius: 8px; border: none;
  background: #027abf; color: #fff; font-weight: 600;
}
.pd-subnav a.pd-subnav-cta:hover { background: #0369a1; }

/* Khối nội dung */
.pd-section { padding: 80px 0; scroll-margin-top: calc(var(--pd-sticky-top, 76px) + 52px); }
.pd-section-alt { background: #f4f8fb; }
.pd-head { max-width: 760px; margin-bottom: 40px; }
.pd-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #027abf; margin-bottom: 12px; }
.pd-eyebrow b { font-family: var(--mono); font-size: 13px; padding: 2px 8px; border-radius: 6px; background: #e0f2fe; }
.pd-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 14px; }
.pd-head p, .pd-lead { font-size: 16px; color: var(--p-ink-soft); line-height: 1.75; }
.pd-lead { max-width: 900px; margin-bottom: 8px; }
.pd-lead strong, .pd-note strong { color: #0b4f7c; }
.pd-subhead { font-size: 19px; font-weight: 700; color: #027abf; margin: 48px 0 20px; }

.pd-icon { width: 26px; height: 26px; }
.pd-icon-circle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%; background: #027abf; color: #fff;
}
.pd-icon-square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: #027abf; color: #fff;
}
.pd-icon-square .pd-icon { width: 22px; height: 22px; }

/* Thách thức + đối tượng */
.pd-challenges { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
.pd-challenge {
  padding: 28px 18px 24px; text-align: center; border-radius: 14px;
  background: #f0f7fc; border: 1px solid #dbeaf5; border-top: 4px solid #027abf;
}
.pd-challenge .pd-icon-circle { width: 64px; height: 64px; margin-bottom: 18px; }
.pd-challenge h3 { font-size: 16px; font-weight: 700; color: #0b3a5c; line-height: 1.35; margin-bottom: 10px; }
.pd-challenge p { font-size: 13.5px; color: var(--p-ink-soft); line-height: 1.6; }
.pd-conclusion {
  margin-top: 28px; padding: 22px 28px; border-radius: 14px; text-align: center;
  font-size: 17px; font-weight: 700; line-height: 1.6; color: #fff; background: #0b4f7c;
}
.pd-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pd-audience { padding: 26px 24px; border-radius: 14px; background: var(--p-surface); border: 1px solid var(--p-border); }
.pd-audience h4 { font-size: 16px; font-weight: 700; color: #027abf; margin-bottom: 8px; }
.pd-audience p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.65; }

/* Giải pháp: quy trình */
.pd-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.pd-step {
  position: relative; padding: 24px 18px 22px; text-align: center; border-radius: 14px;
  background: var(--p-surface); border: 1px solid #dbe3ec;
}
.pd-step-no {
  position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: #0b3a5c;
}
.pd-step .pd-icon-circle { margin-bottom: 14px; }
.pd-step h4 { font-size: 15px; font-weight: 700; color: #0b3a5c; margin-bottom: 6px; }
.pd-step p { font-size: 13px; color: var(--p-ink-muted); line-height: 1.55; }
.pd-note {
  margin-top: 32px; padding: 22px 26px; border-left: 4px solid #027abf; border-radius: 0 12px 12px 0;
  background: #e6f2fa; font-size: 16px; line-height: 1.75; color: var(--p-ink-soft);
}

/* Chức năng */
.pd-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pd-feature {
  padding: 22px 20px; border-radius: 14px; background: #f0f7fc;
  border: 1px solid #dbeaf5; border-left: 4px solid #027abf; transition: box-shadow .2s, transform .2s;
}
.pd-feature:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,122,191,.12); }
.pd-feature-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pd-feature-no { font-size: 30px; font-weight: 800; line-height: 1; color: #c9dcea; }
.pd-feature h3 { font-size: 16px; font-weight: 700; color: #0b3a5c; line-height: 1.35; margin-bottom: 10px; }
.pd-feature ul { list-style: none; display: grid; gap: 6px; }
.pd-feature li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--p-ink-soft); line-height: 1.5; }
.pd-feature li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #027abf; }

/* Lợi ích */
.pd-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pd-benefit {
  padding: 30px 24px; text-align: center; border-radius: 14px; background: var(--p-surface);
  border: 1px solid #dbe3ec; border-top: 4px solid #027abf;
}
.pd-benefit .pd-icon-circle { margin-bottom: 16px; }
.pd-benefit h3 { font-size: 17px; font-weight: 700; color: #0b3a5c; margin-bottom: 8px; }
.pd-benefit p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.6; }

/* So sánh */
.pd-compare { display: grid; gap: 10px; }
.pd-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: 10px; }
.pd-compare-row > div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.pd-compare-headrow > div {
  justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.pd-compare-headrow > div:nth-child(1) { background: #0b3a5c; }
.pd-compare-headrow > div:nth-child(2) { background: #5b6b7a; }
.pd-compare-headrow > div:nth-child(3) { background: #027abf; }
.pd-cmp-criterion { justify-content: center; text-align: center; font-weight: 700; color: #0b3a5c; background: #e6f2fa; border: 1px solid #d3e5f2; }
.pd-cmp-manual { color: #5b6b7a; background: #f3f4f6; border: 1px solid #e5e7eb; }
.pd-cmp-product { color: #14532d; font-weight: 500; background: #ecfdf3; border: 1px solid #c8eed6; }
.pd-compare svg { flex-shrink: 0; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; }
.pd-cmp-manual svg { background: #dc2626; }
.pd-cmp-product svg { background: #16a34a; }
.pd-cmp-label { display: none; }

/* Hình ảnh phần mềm */
.pd-shot-group + .pd-shot-group { margin-top: 44px; }
.pd-shot-group-title { font-size: 18px; font-weight: 700; color: #0b3a5c; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid #027abf; }
.pd-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pd-shots-single { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.pd-shot { margin: 0; }
.pd-shot-btn { cursor: zoom-in; transition: transform .25s, box-shadow .25s; }
.pd-shot-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.14); }
.pd-shot-btn:focus-visible { outline: 3px solid #027abf; outline-offset: 3px; }
.pd-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--p-ink-soft); line-height: 1.5; }

.pd-lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0;
  border: none; background: rgba(6,13,26,.94);
}
.pd-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pd-lightbox::backdrop { background: rgba(6,13,26,.7); }
.pd-lightbox figure { margin: 0; max-width: min(1400px, 88vw); text-align: center; }
.pd-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pd-lightbox figcaption { margin-top: 14px; font-size: 15px; color: #cbd5e1; }
.pd-lb-close, .pd-lb-nav { position: absolute; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; line-height: 1; }
.pd-lb-close:hover, .pd-lb-nav:hover { background: rgba(255,255,255,.2); }
.pd-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 28px; }
.pd-lb-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 32px; }
.pd-lb-prev { left: 20px; }
.pd-lb-next { right: 20px; }

/* CTA */
.pd-cta { background: #0b4f7c; color: #fff; padding: 56px 0; }
.pd-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pd-cta h2 { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.pd-cta p { font-size: 15px; color: #cfe3f1; line-height: 1.6; margin-bottom: 16px; }
.pd-cta-contacts { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; color: #cfe3f1; }
.pd-cta-contacts strong { color: #fff; }
.pd-cta-contacts a:hover strong { text-decoration: underline; }
.pd-cta-btn { flex-shrink: 0; background: #fff; color: #0b4f7c; }
.pd-cta-btn:hover { background: #e0f2fe; color: #0b4f7c; }

.pd-others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Sản phẩm chưa có nội dung trình bày */
.pd-simple-hero { padding: 56px 0 48px; background: radial-gradient(ellipse 60% 80% at 60% 0%, color-mix(in srgb, var(--pd-color) 20%, transparent), transparent 70%), linear-gradient(135deg, #f8fafc, #f0f4f8); }
.pd-simple-hero .pd-back { color: var(--p-ink-muted); }
.pd-simple-hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; line-height: 1.2; margin: 14px 0 16px; }
.pd-simple-hero p { font-size: 17px; color: var(--p-ink-soft); line-height: 1.7; max-width: 680px; }
.pd-chip { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--p-tag); color: var(--p-ink-soft); }
.pd-simple-thumb { width: 100%; border-radius: 12px; margin-bottom: 32px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.pd-simple-actions { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--p-border); display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .pl-item, .pl-item:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px; }
  .pl-item:nth-child(even) .pl-media { order: 0; }
  .pd-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pd-challenges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-flow, .pd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-benefits, .pd-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pd-wrap { padding: 0 16px; }
  .pl-item { padding: 20px; }
  .pl-highlights li { flex-direction: column; gap: 2px; }
  .pl-highlights strong { flex-basis: auto; }
  .pd-hero-inner { padding-top: 32px; padding-bottom: 40px; }
  .pd-highlights-inner { grid-template-columns: minmax(0, 1fr); }
  .pd-highlight, .pd-highlight:first-child { padding: 16px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .pd-highlight:last-child { border-bottom: none; }
  .pd-highlight strong { font-size: 20px; }
  .pd-section { padding: 56px 0; }
  .pd-challenges, .pd-audiences, .pd-benefits, .pd-others, .pd-shots { grid-template-columns: minmax(0, 1fr); }
  .pd-flow, .pd-features { grid-template-columns: minmax(0, 1fr); }
  .pd-compare-headrow { display: none; }
  .pd-compare { gap: 16px; }
  .pd-compare-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pd-cmp-criterion { justify-content: flex-start; text-align: left; }
  .pd-cmp-label { display: inline; font-weight: 700; }
  .pd-cta-inner { flex-direction: column; align-items: flex-start; }
  .pd-lb-nav { top: auto; bottom: 20px; margin-top: 0; }
}

/* ── Trang chủ (bố cục theo sản phẩm) ──────────────────────────── */
.hm-hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hm-hero-inner .home-hero-title { font-size: clamp(30px, 4.2vw, 46px); }
.hm-switcher-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-switcher-tabs button {
  padding: 7px 14px; border-radius: 8px; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: #94a3b8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: all .2s;
}
.hm-switcher-tabs button:hover { color: #fff; background: rgba(255,255,255,.12); }
.hm-switcher-tabs button[aria-selected="true"] { color: #fff; background: #027abf; border-color: #027abf; }
.hm-switcher-tabs button:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; }
.hm-switcher-panel { display: block; }
.hm-switcher-panel[hidden] { display: none; }
.hm-switcher-panel .pd-frame { border-color: rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: hm-fade .4s ease; }
@keyframes hm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hm-switcher-caption { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; color: #cbd5e1; }
.hm-switcher-caption b { color: #22d3ee; transition: margin .2s; }
.hm-switcher-panel:hover .hm-switcher-caption { color: #fff; }
.hm-switcher-panel:hover .hm-switcher-caption b { margin-left: 4px; }

.hm-head { max-width: 720px; margin-bottom: 36px; }
.hm-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 12px; }
.hm-head p { font-size: 16px; color: var(--p-ink-soft); line-height: 1.7; }
.hm-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hm-head-row .home-btn-outline { flex-shrink: 0; }

.hm-domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hm-domain { padding: 28px; border-radius: 16px; background: var(--p-surface); border: 1px solid var(--p-border); border-top: 4px solid #027abf; }
.hm-domain-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.hm-domain-head h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.hm-domain-head p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.6; }
.hm-domain-products { list-style: none; display: grid; gap: 10px; }
.hm-domain-products a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: #f4f8fb; border: 1px solid #e3edf5; transition: all .2s;
}
.hm-domain-products a:hover { background: #e6f2fa; border-color: #027abf55; }
.hm-domain-products .pl-code { flex-shrink: 0; min-width: 84px; text-align: center; }
.hm-domain-pname { flex: 1; font-size: 15px; font-weight: 600; color: var(--p-ink); line-height: 1.4; }
.hm-arrow { color: #027abf; font-weight: 700; transition: transform .2s; }
.hm-domain-products a:hover .hm-arrow { transform: translateX(3px); }

.hm-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-product {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--p-surface);
  border: 1px solid var(--p-border); border-top: 4px solid var(--pd-color, #027abf); transition: all .25s;
}
.hm-product:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,23,42,.1); }
.hm-product-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eef2f6; border-bottom: 1px solid var(--p-border); }
.hm-product-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s; }
.hm-product:hover .hm-product-thumb img { transform: scale(1.04); }
.hm-product-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.hm-product-body .pl-code { align-self: flex-start; }
.hm-product-title { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--p-ink); }
.hm-product-desc { flex: 1; font-size: 13px; color: var(--p-ink-soft); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-product-tags span { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0b4f7c; background: #e0f2fe; }
.hm-product-link { font-size: 13px; font-weight: 600; color: #027abf; margin-top: 4px; }

.hm-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-cap { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px; background: var(--p-surface); border: 1px solid var(--p-border); }
.hm-cap .pd-icon-circle { width: 48px; height: 48px; }
.hm-cap .pd-icon { width: 22px; height: 22px; }
.hm-cap h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.hm-cap p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.6; }

.hm-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.hm-step { position: relative; padding: 24px 22px; border-radius: 14px; background: var(--p-surface); border: 1px solid #dbe3ec; }
.hm-step:not(:last-child)::after {
  content: ''; position: absolute; top: 38px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid #027abf; border-right: 2px solid #027abf; transform: rotate(45deg);
}
.hm-step-no { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #fff; background: #027abf; padding: 3px 9px; border-radius: 6px; margin-bottom: 14px; }
.hm-step h3 { font-size: 16px; font-weight: 700; color: #0b3a5c; margin-bottom: 6px; }
.hm-step p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.6; }

.hm-services { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.hm-services .hm-head { margin-bottom: 0; }
.hm-service-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.hm-service-list li { display: flex; gap: 12px; align-items: flex-start; }
.hm-service-list svg { flex-shrink: 0; width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%; color: #fff; background: #027abf; }
.hm-service-list h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.hm-service-list p { font-size: 14px; color: var(--p-ink-soft); line-height: 1.6; }

@media (max-width: 1024px) {
  .hm-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .hm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-step::after { display: none; }
  .hm-services { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .hm-hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .hm-domains, .hm-products, .hm-caps, .hm-steps, .hm-service-list { grid-template-columns: minmax(0, 1fr); }
  .hm-head-row { flex-direction: column; align-items: flex-start; }
  .hm-domain { padding: 20px; }
  .hm-domain-products .pl-code { min-width: 0; }
}
