:root {
  --panova-primary: #1a1c20;
  --panova-primary-dark: #0a0a0b;
  --panova-secondary: #9aa3b2;
  --panova-accent: #D4AF37;
  --panova-violet: #1f3157;
  --panova-indigo: #101827;
  --panova-text: #1a1c20;
  --panova-muted: #607089;
  --panova-surface: #f7f8fb;
  --panova-surface-alt: #eef1f6;
  --panova-radius: 1rem;
}

html { font-size: 15px; min-height: 100%; }
@media (min-width: 992px) { html { font-size: 16px; } }

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--panova-text);
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 50%, #f8f9fc 100%);
}

.bg-soft { background: linear-gradient(180deg, #f4f6fa 0%, #ffffff 100%); }

.topbar {
  background: linear-gradient(90deg, #1a1f2b 0%, #222b3d 65%, #102a4d 100%);
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(200,165,106,.18) 100%);
  opacity: .9;
}
.topbar .container { position: relative; z-index: 1; }

.navbar { backdrop-filter: blur(10px); border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.navbar .nav-link { font-weight: 500; color: #4d5d76; position: relative; transition: color .25s ease; }
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link.active { color: var(--panova-primary); }
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--panova-primary), var(--panova-accent));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #18325d 0%, #0d1f3d 100%);
  box-shadow: 0 10px 25px -15px rgba(16, 24, 39, .9);
}

.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-text span:first-child { font-weight: 600; color: var(--panova-text); }
.brand-text small { color: #7a879d; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

.btn-rounded { border-radius: 999px; padding-inline: 1.25rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--panova-primary) 0%, #1f3b66 100%);
  border: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -18px rgba(15, 39, 74, .6);
}
.btn-light {
  border: 1px solid rgba(148, 163, 184, .35);
  background: #fff;
  color: var(--panova-primary);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-light:hover, .btn-light:focus {
  box-shadow: 0 12px 30px -18px rgba(21, 36, 67, .45);
  transform: translateY(-2px);
}

.footer {
  background: linear-gradient(135deg, #111827 0%, #1f2937 55%, #0f274a 100%);
}
.footer-links li, .footer-brand .brand-text small { color: rgba(226, 232, 240, .85); }
.footer-brand .brand-text span:first-child { color: #fff; }

.surface-grid { display: grid; gap: 1.5rem; }
.surface-grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.section-outline {
  border-radius: 2rem;
  padding: clamp(2rem, 3vw, 3.2rem);
  border: 1px solid rgba(148, 163, 184, .25);
  background: #fff;
  box-shadow: 0 18px 35px -30px rgba(15, 23, 42, .2);
}

.text-muted { color: #586a84 !important; }

/* Premium home */
.premium-home { position: relative; }
.hero-premium {
  background: linear-gradient(135deg, #131924 0%, #1a2333 45%, #0f274a 100%);
  overflow: hidden;
  border-radius: 0 0 24px 24px;
}
.premium-home .container { z-index: 2; }

.kicker {
  display: inline-flex;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232, 238, 252, .82);
  border: 1px solid rgba(200,165,106,.45);
  border-radius: 999px;
  padding: .35rem .8rem;
}
.gold { color: var(--panova-accent); }
.premium-lead { color: #d5dbe8; max-width: 720px; }

.btn-gold {
  background: linear-gradient(135deg, #b48a4a 0%, #d6b16d 100%);
  color: #1a1f2b;
  border: none;
  font-weight: 600;
}
.btn-gold:hover { color: #111827; filter: brightness(1.03); }

.btn-outline-lux {
  border: 1px solid rgba(214, 177, 109, .5);
  color: #f4e2bf;
  background: rgba(255,255,255,.04);
}
.btn-outline-lux:hover { background: rgba(214,177,109,.14); color: #fff; }

.glass-lux {
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.hero-slider-img {
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(1.05) contrast(1.02);
}

.petek-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hex-layer {
  position: absolute;
  inset: -20% -10%;
  opacity: .16;
  background-size: 120px 104px;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(30deg, rgba(255,255,255,.22) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.22) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.22) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.22) 87.5%),
    linear-gradient(90deg, rgba(255,255,255,.2) 2%, transparent 2.5%, transparent 97%, rgba(255,255,255,.2) 97.5%);
  animation: parallaxMove 30s linear infinite;
}
.layer-2 { opacity: .10; transform: scale(1.15); animation-duration: 42s; animation-direction: reverse; }
.layer-3 { opacity: .07; transform: scale(1.25); animation-duration: 54s; }

@keyframes parallaxMove {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-3%, -2%, 0); }
  100% { transform: translate3d(0,0,0); }
}

.section-clean {
  background: #fff;
  border-radius: 20px;
  padding: 6px;
}

.lux-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 18px 30px -24px rgba(15, 23, 42, .28);
  transition: transform .28s ease, box-shadow .28s ease;
}
.lux-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 42px -24px rgba(15, 39, 74, .35);
}
.lux-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.lux-card-body { padding: 1rem 1rem 1.2rem; }
.lux-card-body h5 { margin: 0 0 .45rem; font-weight: 600; color: #16243f; }
.lux-card-body p { margin: 0; color: #4b5a74; font-size: .94rem; line-height: 1.55; }

.lux-banner {
  background: linear-gradient(135deg, rgba(15,39,74,.04), rgba(200,165,106,.08));
}

.blueprint-section {
  background: linear-gradient(135deg, rgba(10,10,11,.03), rgba(212,175,55,.06));
}

.kicker-dark {
  display: inline-flex;
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(26,28,32,.78);
  border: 1px solid rgba(26,28,32,.14);
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 24px -18px rgba(15,23,42,.35);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: .32rem .78rem;
}

.blueprint-title {
  font-weight: 300;
  letter-spacing: .01em;
  color: #15171b;
}

.blueprint-copy {
  color: #4f596a;
  max-width: 56ch;
}

.blueprint-panel {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(212,175,55,.16), transparent 36%),
    linear-gradient(140deg, #0a0a0b, #1a1c20 54%, #111827);
  min-height: 320px;
  perspective: 1000px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 40px -30px rgba(5,8,13,.95);
}

.honey-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(117,141,195,.12) 12%, transparent 12.5%, transparent 87%, rgba(117,141,195,.12) 87.5%),
    linear-gradient(150deg, rgba(117,141,195,.12) 12%, transparent 12.5%, transparent 87%, rgba(117,141,195,.12) 87.5%),
    linear-gradient(90deg, rgba(117,141,195,.1) 2%, transparent 2.5%, transparent 97%, rgba(117,141,195,.1) 97.5%);
  background-size: 52px 44px;
  filter: blur(.4px);
  opacity: .55;
  animation: gridPulse 5s ease-in-out infinite;
}

.honey-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 26%, rgba(90,152,255,.38), transparent 8%),
    radial-gradient(circle at 43% 58%, rgba(90,152,255,.32), transparent 7%),
    radial-gradient(circle at 72% 30%, rgba(90,152,255,.34), transparent 8%),
    radial-gradient(circle at 84% 70%, rgba(90,152,255,.28), transparent 7%);
  opacity: .4;
  animation: neonBlink 4.4s linear infinite;
}

.panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transform: scale(1.03);
  transition: transform .25s ease;
}

.panel-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(120deg, rgba(255,255,255,.16), transparent 34%),
    radial-gradient(circle at 74% 28%, rgba(255,255,255,.12), transparent 36%);
  mix-blend-mode: screen;
}

.exploded-model {
  position: absolute;
  inset: 52px 44px;
  transform-style: preserve-3d;
  transition: transform .22s ease;
}

.layer {
  position: absolute;
  left: 5%;
  right: 5%;
  border-radius: 3px;
}

.top-skin,
.bottom-skin {
  height: 28px;
  background: linear-gradient(100deg, #6f7682, #d7dde6 45%, #767e8a 70%, #c5ccd6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 20px -16px rgba(0,0,0,.9), 0 0 18px rgba(90,150,255,.2);
}

.top-skin {
  top: 6px;
  transform: translateZ(34px) translateY(-30px);
}

.mid-gold {
  top: 56px;
  height: 22px;
  background: linear-gradient(100deg, #8d6c20, #d4af37 45%, #8a6720 70%, #e1c36a 100%);
  box-shadow: inset 0 1px 0 rgba(255,245,214,.5), 0 10px 16px -12px rgba(0,0,0,.85), 0 0 18px rgba(212,175,55,.35);
  transform: translateZ(22px) translateY(-12px);
}

.bottom-skin {
  bottom: 8px;
  transform: translateZ(34px) translateY(30px);
}

.connector {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.95), transparent);
  box-shadow: 0 0 14px rgba(212,175,55,.48);
}

.connector-top { top: 88px; }
.connector-bottom { bottom: 84px; }

.core {
  top: 102px;
  bottom: 98px;
  border: 1px solid rgba(182,198,224,.45);
  background: linear-gradient(180deg, rgba(14,27,44,.35), rgba(19,29,43,.22));
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 8px 10px;
  padding: 10px 12px;
  transform: translateZ(12px);
  box-shadow: inset 0 0 28px rgba(124,170,255,.12), 0 0 20px rgba(212,175,55,.18);
}

.core span {
  height: 34px;
  border: 1px solid rgba(188,205,228,.86);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: linear-gradient(180deg, rgba(234,245,255,.18), rgba(140,176,216,.08));
  box-shadow: inset 0 0 10px rgba(234,245,255,.22), 0 0 6px rgba(201,229,255,.14);
}

.core span:nth-child(even) { transform: translateX(52%); }
.core span:nth-child(3n) { animation: cellBlink 5s ease-in-out infinite; }
.core span:nth-child(4n) { animation: cellBlink 6.5s ease-in-out infinite 1.4s; }

@keyframes gridPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: .7; }
}

@keyframes neonBlink {
  0%, 100% { opacity: .25; }
  48% { opacity: .48; }
  55% { opacity: .2; }
}

@keyframes cellBlink {
  0%, 100% { box-shadow: inset 0 0 10px rgba(245,245,247,.08); }
  50% { box-shadow: inset 0 0 18px rgba(90,152,255,.35), 0 0 10px rgba(90,152,255,.2); }
}

.kpi-lux {
  background: linear-gradient(135deg, rgba(12,18,31,.96), rgba(20,30,48,.94));
  border-color: rgba(148,163,184,.22);
}

.kpi-box {
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 14px;
  padding: .95rem .7rem;
  background: rgba(255,255,255,.03);
}

.kpi-box strong {
  display: block;
  color: #f5f5f7;
  font-weight: 600;
}

.kpi-box span {
  font-size: .82rem;
  color: rgba(226,232,240,.82);
}

.process-lux {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(249,250,252,.95));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.process-grid article {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 24px -20px rgba(15,23,42,.4);
}

.process-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.process-grid h6 {
  margin: .8rem .8rem .3rem;
  font-weight: 600;
  color: #1a2438;
}

.process-grid p {
  margin: 0 .8rem .9rem;
  font-size: .88rem;
  color: #4e5f79;
}

.visual-gallery {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,248,252,.95));
}

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

.gallery-item {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 28px -22px rgba(15,23,42,.38);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: .65rem .8rem;
  font-size: .83rem;
  color: #43546f;
  border-top: 1px solid rgba(148,163,184,.2);
  background: linear-gradient(180deg, #fff, #f8fafd);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 34px -20px rgba(15,39,74,.45);
}

@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item img { height: 180px; }
  .navbar .nav-link.active::after { display: none; }
  .hero-slider-img { height: 280px; }
  .exploded-model { inset: 40px 24px; }
  .core { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.quote-simulator {
  background: linear-gradient(135deg, rgba(15, 39, 74, .04), rgba(212,175,55,.1));
}

.simulator-card {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .28);
  padding: 1rem;
  box-shadow: 0 20px 36px -28px rgba(15, 23, 42, .35);
}

.simulator-card .form-label {
  font-size: .82rem;
  color: #4f5f7a;
  margin-bottom: .35rem;
}

.sim-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.sim-result > div {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 12px;
  padding: .7rem .8rem;
  background: rgba(247, 248, 251, .9);
}

.sim-result small {
  display: block;
  color: #667892;
  font-size: .72rem;
  margin-bottom: .2rem;
}

.sim-result strong {
  color: #16243f;
  font-size: 1.02rem;
}

@media (max-width: 575.98px) {
  .sim-result {
    grid-template-columns: 1fr;
  }
}

/* 21st-inspired improvements */
.bento-premium {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,248,253,.96));
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.bento-card {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 12px 24px -20px rgba(15,23,42,.32);
}

.bento-card.large {
  background: linear-gradient(135deg, rgba(26,28,32,.96), rgba(20,37,67,.92));
  color: #e7eefc;
}

.bento-card h5 {
  margin: 0 0 .45rem;
  font-weight: 600;
}

.bento-card p {
  margin: 0;
  color: #51627e;
  line-height: 1.55;
}

.bento-card.large p {
  color: #c6d2ec;
}

.testimonial-lux {
  background: linear-gradient(135deg, rgba(15,39,74,.04), rgba(212,175,55,.08));
}

.quote-card {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 22px -18px rgba(15,23,42,.38);
}

.quote-card p {
  margin: 0 0 .6rem;
  color: #1e2f4b;
  line-height: 1.6;
}

.quote-card strong {
  display: block;
  font-size: .94rem;
  color: #18263f;
}

.quote-card span {
  color: #60708c;
  font-size: .83rem;
}

@media (max-width: 991.98px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}
