:root {
  --color-primary: #ffffff; /* primary now white */
  --color-accent: #000000; /* accent now black */
  --color-bg: #0a0a0a; /* near-black page bg */
  --color-surface: #111111; /* dark panels */
  --color-text: #e5e5e5; /* light gray text */
  --radius: 16px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* site-wide visual effect canvas */
.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: lighten;
}
/* Lift content above effect */
.page,
.site-header,
.section,
.hero,
.cards,
.grid,
.site-footer {
  position: relative;
  z-index: 1;
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-canvas {
    opacity: 0.25;
  }
}

.page--gallery {
  background-image: url("/placeholder.svg?height=1200&width=1600");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand__logo {
  border-radius: 8px;
}
.brand__name {
  font-weight: 700;
  letter-spacing: .2px;
}

/* simple unique AI indicator */
.ai-badge {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35), 0 0 10px 2px rgba(255, 255, 255, 0.15);
  animation: aiPulse 1.8s ease-in-out infinite;
}
@keyframes aiPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35), 0 0 10px 2px rgba(255, 255, 255, 0.15);
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.0), 0 0 16px 6px rgba(255, 255, 255, 0.22);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35), 0 0 10px 2px rgba(255, 255, 255, 0.15);
  }
}

.nav {
  display: flex;
  list-style: none;
  gap: .75rem;
  margin: 0;
  padding: 0;
}
.nav__link {
  text-decoration: none;
  color: var(--color-text);
  padding: .5rem .75rem;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav__link--active {
  background: var(--color-surface);
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

.section {
  max-width: 1100px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: center;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1.25rem;
}
.hero__content {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.title {
  line-height: 1.2;
  margin: 0 0 .75rem;
}
.title--xl {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
}
.title--lg {
  font-size: 1.5rem;
  font-weight: 700;
}
.title--md {
  font-size: 1.125rem;
  font-weight: 700;
}
.lead {
  color: var(--color-text);
  opacity: 0.9;
  margin: .5rem 0 1rem;
}
.muted {
  opacity: 0.75;
}
.small {
  font-size: .9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-accent);
}
.btn--primary:hover {
  filter: brightness(1.05);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn--inline {
  color: var(--color-primary);
  text-decoration: none;
}
.btn--inline:hover {
  text-decoration: underline;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: auto;
  display: block;
}
.card__body {
  padding: 1rem;
}

.list {
  padding-left: 1.25rem;
}
.list--check li {
  margin: .4rem 0;
}
.list--ordered {
  padding-left: 1.25rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}
.table th,
.table td {
  padding: .75rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.table thead th {
  background: rgba(255, 255, 255, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.grid__item {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.grid__item img {
  width: 100%;
  height: auto;
  display: block;
}
.grid__item figcaption {
  padding: .6rem .8rem;
}

/* About figure */
.about-figure {
  margin: 1rem 0;
}
.about-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Chat */
.chat {
  display: grid;
  gap: .75rem;
  max-width: 750px;
  margin: 0 auto;
}
.chat__messages {
  height: 380px;
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.msg {
  display: flex;
  gap: .6rem;
  margin-bottom: .6rem;
  align-items: flex-start;
}
.msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.msg__bubble {
  padding: .6rem .8rem;
  border-radius: 12px;
  max-width: 80%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.msg--user .msg__bubble {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.msg--ai .msg__bubble {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat__form {
  display: flex;
  gap: .5rem;
}
.input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--color-surface);
  color: var(--color-text);
}
.input::placeholder {
  color: rgba(226, 232, 240, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--color-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 17, 17, 0.85);
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
