:root {
  --bg: #07111f;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #5f6b7d;
  --line: rgba(15, 23, 42, 0.08);
  --accent: #ef4444;
  --accent-dark: #c81e1e;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.18);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(239, 68, 68, 0.15), transparent 24%),
    linear-gradient(180deg, #eef3f8 0%, #f6f9fc 52%, #eef2f7 100%);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff5a5a, #d61c1c 60%, #8f0f0f);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.main-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

.main-nav a:hover { color: var(--text); }

.header-button,
.primary-button,
.secondary-button,
.chat-close {
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-button,
.primary-button {
  background: linear-gradient(135deg, #101826, #0b1220);
  color: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.22);
}

.header-button:hover,
.primary-button:hover,
.secondary-button:hover,
.chat-close:hover {
  transform: translateY(-1px);
}

.header-button,
.primary-button,
.secondary-button {
  padding: 14px 22px;
  font-weight: 600;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero {
  padding: 52px 0 26px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-copy,
.hero-card,
.search-panel,
.catalog-card,
.featured-card,
.info-card,
.chat-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.eyebrow.light { color: rgba(255, 255, 255, 0.7); }

.hero h1,
.section-heading h2,
.hero-card h2,
.featured-copy h3,
.info-card h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.hero p,
.hero-card p,
.card-content p,
.featured-copy p,
.info-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p {
  max-width: 62ch;
  margin: 20px 0 28px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points li,
.product-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.95rem;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-card img {
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
}

.hero-card-body {
  padding: 26px;
}

.section-heading {
  margin-top: 34px;
  margin-bottom: 18px;
}

.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }

.search-panel {
  padding: 18px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.search-box {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.search-box span { color: var(--muted); font-size: 0.95rem; }

.search-box input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.card-grid,
.featured-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card,
.featured-card,
.info-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.catalog-card {
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.catalog-card:hover,
.featured-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.22);
}

.catalog-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-content {
  padding: 18px 18px 22px;
}

.card-content h3,
.featured-copy h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.featured {
  padding: 16px 0 90px;
}

.featured-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.featured-large {
  grid-row: span 2;
}

.featured-card {
  display: grid;
  min-height: 100%;
}

.featured-large img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.featured-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-copy,
.info-card {
  padding: 24px;
}

.featured-copy.compact { padding-bottom: 0; }

.info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #0b1320);
  color: #fff;
  box-shadow: 0 26px 50px rgba(2, 6, 23, 0.35);
}

.chat-fab-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.chat-fab-text {
  display: grid;
  text-align: left;
}

.chat-fab-text small {
  color: rgba(255, 255, 255, 0.72);
}

.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.chat-overlay[hidden] {
  display: none !important;
}

.chat-panel {
  width: min(420px, 100%);
  height: min(780px, calc(100vh - 48px));
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(135deg, #121d2d 0%, #0e1522 70%, #0a0f18 100%);
}

.chat-panel-header h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.chat-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chat-frame-wrap {
  min-height: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-inline-fallback,
.chat-error-message {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-inline-fallback p,
.chat-error-message p {
  margin: 0 0 12px;
  color: var(--muted);
}

.chat-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-frame-wrap iframe {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  display: block;
}

.chat-panel-footer {
  padding: 14px 20px 18px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-panel-footer a {
  color: var(--accent-dark);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

.is-hidden { display: none !important; }

@media (max-width: 1080px) {
  .hero,
  .featured-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .featured-large {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-button {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .card-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .chat-fab {
    right: 16px;
    left: 16px;
    bottom: 16px;
    justify-content: center;
  }

  .chat-overlay {
    padding: 0;
    place-items: end stretch;
  }

  .chat-panel {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}
