/* Fluid Performance — Liquid Crystal Futurism
   Units: rem / % — layout: flex + grid */

:root {
  --color-primary: #e0e7ff;
  --color-secondary: #4f46e5;
  --color-accent: #10b981;
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --font-sans: "Lexend", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-soft: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
  --shadow-glass: 0 0.5rem 1.5rem rgba(79, 70, 229, 0.12);
  --header-h: 4.25rem;
  --max-w: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-secondary);
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #3730a3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header — burger last */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-main {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  margin-left: auto;
  margin-right: 0;
}

.nav-main a {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav-main a:hover {
  color: var(--color-secondary);
}

.burger-toggle {
  order: 99;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.burger-toggle:hover {
  background: var(--color-primary);
  border-color: var(--color-secondary);
}

.burger-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-secondary);
  border-radius: 2px;
}

@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }

  .nav-main {
    display: flex;
    flex: 1;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand-text {
    margin-right: 1rem;
  }
}

/* Drawer — separate layer below header */
.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 40;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(14px);
  padding: 1.5rem var(--gutter) 2rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-drawer-inner a {
  font-size: 1.05rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--color-text);
  text-decoration: none;
}

.nav-drawer-inner a:hover {
  color: var(--color-secondary);
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-drawer {
    display: none;
  }
}

/* Sections */
.section {
  position: relative;
}

.section--padded {
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}

.section--muted {
  background: linear-gradient(180deg, rgba(224, 231, 255, 0.35) 0%, rgba(248, 250, 252, 0) 100%);
}

.layout-tight {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-intro {
  max-width: 42rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.section-copy p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.mono-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 1rem;
}

/* Hero — image under text */
.section--hero {
  padding: 0;
}

.hero-banner {
  position: relative;
  min-height: min(88vh, 52rem);
  width: 100%;
  overflow: hidden;
  display: grid;
  align-items: stretch;
}

.hero-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner__media--css {
  background: linear-gradient(125deg, #e0e7ff 0%, #f8fafc 42%, #c7d2fe 58%, #ecfdf5 100%);
  background-size: 200% 200%;
  animation: hero-bg-shift 20s ease-in-out infinite alternate;
}

.hero-banner__media--css::after {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 28% 38%, rgba(79, 70, 229, 0.14), transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(16, 185, 129, 0.1), transparent 38%);
  pointer-events: none;
}

@keyframes hero-bg-shift {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

.hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s ease-out;
}

.section--hero:hover .hero-banner__img {
  transform: scale(1.06);
}

.section--hero:hover .hero-banner__media--css {
  filter: brightness(1.02);
}

.hero-banner__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.92) 0%,
    rgba(248, 250, 252, 0.55) 45%,
    rgba(248, 250, 252, 0.88) 100%
  );
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(5rem, 12vw, 8rem) var(--gutter) clamp(4rem, 10vw, 6rem);
}

.hero-banner--legal {
  min-height: min(42vh, 28rem);
}

.hero-banner--legal .hero-banner__content {
  padding-top: clamp(3.5rem, 10vw, 5rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
}

.hero-banner--legal h1 {
  margin: 0 0 0.75rem;
}

.hero-banner--legal .date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

.hero-banner--compact {
  min-height: min(70vh, 36rem);
}

.section--thank .thank-panel {
  margin-top: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 18ch;
  margin: 0 0 1rem;
}

.hero-lead {
  max-width: 36rem;
  color: var(--color-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Grid layouts */
.layout-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.layout-grid--split {
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 56rem) {
  .layout-grid--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .layout-grid--reverse {
    direction: rtl;
  }

  .layout-grid--reverse > * {
    direction: ltr;
  }
}

.layout-grid--cards {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .layout-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .layout-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-glass);
}

.media-frame--ratio {
  aspect-ratio: 4 / 3;
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card .media-frame {
  margin: -0.25rem -0.25rem 1rem;
}

.media-frame--hotspot {
  aspect-ratio: 4 / 3;
}

.media-frame__img--parallax {
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.glass-card:hover .media-frame__img--parallax {
  transform: scale(1.06);
}

/* Hotspots */
.media-frame--hotspot {
  isolation: isolate;
}

.hotspot {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: rgba(16, 185, 129, 0.25);
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: transform 0.2s ease;
}

.hotspot:hover {
  transform: translateX(2px);
}

.hotspot--a {
  left: 22%;
  top: 38%;
}

.hotspot-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.hotspot-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Product grid */
.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card .price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin: 1rem 0 0;
}

/* Contact */
.layout-grid--contact {
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 56rem) {
  .layout-grid--contact {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin: 0.75rem 0 0.35rem;
  color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  margin-top: 1.25rem;
  background: transparent;
  color: var(--color-secondary);
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.btn-primary:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #3730a3;
}

.contact-card .h3 {
  margin-top: 1.25rem;
}

.contact-card .h3:first-child {
  margin-top: 0;
}

.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(1rem);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2.5rem var(--gutter) 3rem;
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-secondary);
}

.footer-meta p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.legal-footer-links {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.legal-footer-links a {
  margin-right: 0.75rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.92);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner .btn-primary {
  margin-top: 0;
  color: var(--color-primary);
  border-color: rgba(224, 231, 255, 0.45);
}

.cookie-banner .btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Thank you + legal article layout */
.page-main {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.article-block {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.article-block h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.article-block p,
.article-block li {
  color: var(--color-muted);
}


.legal-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 52rem) {
  .legal-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legal-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.legal-card__accent {
  height: 0.35rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.55), rgba(16, 185, 129, 0.45));
  opacity: 0.9;
}

.thank-panel {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.thank-panel .btn-primary {
  margin-top: 1.5rem;
}
