/* ============================================================
   DMAE Smart Products — Dark Theme · Shared Styles
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --bg-dark: #050209;
  --red: #ff2b3d;
  --red-soft: #ff4b5d;
  --accent: #ffdd55;
  --text-main: #ffffff;
  --text-muted: #f3f3f7;
  --card-radius: 20px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --nav-h: 64px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #3c0014 0, #050209 55%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ----- Layout ----- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  padding-top: calc(var(--nav-h) + clamp(20px, 4vw, 32px));
}

/* ----- Typography ----- */
h1, h2, h3 {
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.7rem); }

p { margin: 0 0 1em; font-size: clamp(0.98rem, 1.05rem, 1.1rem); }

/* ============ SITE HEADER ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(5, 2, 9, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(5, 2, 9, 0.97);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.nav-logo-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(255, 221, 85, 0.1);
}

.nav-cta {
  flex-shrink: 0;
  padding: 9px 20px !important;
  font-size: 0.82rem !important;
}

/* ============ BURGER BUTTON ============ */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ MOBILE DROPDOWN ============ */

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(5, 2, 9, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:last-child { border-bottom: none; }

.nav-mobile a:hover,
.nav-mobile a:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-mobile a.active {
  color: var(--accent);
  background: rgba(255, 221, 85, 0.08);
}

/* ============ PILL ============ */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  gap: 8px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ BUTTON ============ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 43, 61, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(255, 43, 61, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(255, 43, 61, 0.5);
}

/* ============ HERO ============ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 56px);
}

.hero-left { position: relative; z-index: 2; }

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.18em;
}

.hero-description {
  max-width: 28rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-highlight {
  margin: 18px 0 22px;
  padding: 12px 16px;
  max-width: 31rem;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, rgba(255, 43, 61, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-highlight img { width: 52px; flex-shrink: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.hero-note {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-right {
  position: relative;
  min-height: 260px;
}

.hero-main-photo {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #ff0022 0, #150211 55%);
}

.hero-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.09), transparent 55%);
  mix-blend-mode: screen;
}

.hero-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 1;
}

/* ============ SECTIONS ============ */

.section {
  margin-bottom: clamp(40px, 7vw, 60px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.8));
  border-radius: 32px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(255, 43, 61, 0.16), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.section-inner { position: relative; z-index: 1; }

.section-header { margin-bottom: clamp(18px, 3vw, 24px); }

.section-header p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============ GRID & CARDS ============ */

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

.card {
  background: rgba(5, 2, 9, 0.9);
  border-radius: var(--card-radius);
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.card ul li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
}

.rd-photo {
  border-radius: var(--card-radius);
  overflow: hidden;
  height: 100%;
  min-height: 210px;
}

.rd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.format-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.format-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* ============ EXPERT SECTION ============ */

.expert-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 32px);
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 60px);
}

.expert-main {
  background: linear-gradient(160deg, #1a020c, #050209);
  border-radius: 32px;
  padding: clamp(20px, 4vw, 30px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.expert-main::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(255, 43, 61, 0.35), transparent 60%),
    radial-gradient(circle at bottom, rgba(255, 43, 61, 0.25), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.expert-main-inner { position: relative; z-index: 1; }

.expert-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}

.expert-sub {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 16px;
}

.expert-cta-line {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 10px;
}

.expert-photo-block { position: relative; }

.expert-photo-wrapper {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at top, #ff0022 0, #150211 55%);
}

.expert-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-quote-card {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -12%;
  background: rgba(5, 2, 9, 0.96);
  border-radius: 20px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.expert-quote-name {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.expert-quote-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.footer strong { font-weight: 600; }

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  white-space: nowrap;
  align-self: end;
}

/* ============ FADE ANIMATIONS ============ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-right { order: -1; }

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

  .expert-photo-block {
    max-width: 420px;
    margin: 0 auto;
    padding-bottom: 80px;
  }

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

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

  .footer-copy { text-align: left; }

  .nav-logo-sub { display: none; }
  .nav-links a { font-size: 0.74rem; padding: 5px 10px; }
}

@media (max-width: 640px) {
  .section, .expert-main { border-radius: 24px; }

  .expert-photo-block {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .expert-quote-card {
    position: static;
    font-size: 0.86rem;
    border-radius: 20px;
    margin-top: -10px;
  }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { font-size: 0.76rem !important; padding: 8px 14px !important; }
}
