/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:          #0d0c0b;
  --bg-2:        #141311;
  --bg-3:        #1c1a18;
  --text:        #f0ede8;
  --text-2:      #8a8580;
  --text-3:      #5a5652;
  --accent:      #c4a882;
  --light-bg:    #f0ede8;
  --light-text:  #1a1815;
  --light-text-2:#6b6560;
  --nav-h:       64px;
  --max-w:       1280px;
  --pad-x:       clamp(1.5rem, 5vw, 5rem);
  --radius:      20px;
  --radius-sm:   12px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; }

p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.75;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.section-label.dark { color: var(--light-text-2); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--light-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #d4b892;
  transform: translateY(-1px);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  background: var(--light-text);
  color: var(--light-bg);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-dark:hover {
  background: #2e2b28;
  transform: translateY(-1px);
}

/* ── Render frame (hero — image with own background) ─────── */
.render-frame {
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.render-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero render: show full product without crop, side-biased */
.hero-image-wrap .render-frame img {
  object-fit: contain;
  object-position: right center;
}

/* ── Product panels ───────────────────────────────────────── */
.product-panel {
  background: #f5f2ed;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.product-panel img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  object-position: center;
}

.product-panel-dark {
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.product-panel-dark img {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  object-position: center;
}

/* ── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(13, 12, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Language toggle ─────────────────────────────────────── */
.lang-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 5rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(196, 168, 130, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(196, 168, 130, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text);
}

.hero-tagline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-2);
  max-width: 36ch;
  line-height: 1.7;
}

.hero-image-wrap {
  height: clamp(380px, 70vh, 640px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  overflow: hidden;
  opacity: 0.35;
}

.scroll-line {
  width: 1px;
  height: 100%;
  background: var(--text);
  animation: scrollDown 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0) translateY(0); opacity: 1; }
  50%  { transform: scaleY(1) translateY(0); opacity: 1; }
  100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}

/* ── Showcase ─────────────────────────────────────────────── */
#showcase {
  background: var(--bg-2);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 90vh;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem var(--pad-x);
  gap: clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.showcase-row:last-child { border-bottom: none; }

.showcase-row.reverse {
  direction: rtl;
}
.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-image {
  height: clamp(340px, 55vh, 560px);
}

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.showcase-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.showcase-text p {
  max-width: 42ch;
}

/* ── Configurations strip ─────────────────────────────────── */
#configurations {
  padding: 6rem var(--pad-x);
  background: var(--bg);
}

.config-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.config-header h2 { margin-bottom: 1rem; }

.config-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--text-2);
  max-width: 52ch;
}

.config-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.config-item .product-panel {
  min-height: 240px;
  padding: 1.5rem;
}

.config-item .product-panel img {
  max-height: 260px;
}

/* ── Features ─────────────────────────────────────────────── */
#features {
  padding: 7rem var(--pad-x);
  background: var(--bg-2);
}

.features-header {
  max-width: var(--max-w);
  margin: 0 auto 5rem;
}

.features-header h2 { margin-top: 0.5rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-2);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.2s ease;
}

.feature-card:hover { background: var(--bg-3); }

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ── App CTA (light section) ──────────────────────────────── */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}

#app {
  padding: 7rem var(--pad-x);
}

.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.app-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-text h2 {
  color: var(--light-text);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.app-text p {
  color: var(--light-text-2);
  max-width: 46ch;
}

.app-note {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--light-text-2);
  max-width: 46ch;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.platform-note {
  font-size: 0.8rem;
  color: var(--light-text-2);
  letter-spacing: 0.03em;
}

/* App duo — two screenshots stacked with offset */
.app-duo-wrap {
  position: relative;
}

.app-duo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-duo-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.app-duo-img img {
  width: 100%;
  height: auto;
  display: block;
}

.app-duo-offset {
  margin-left: 2.5rem;
}

/* ── Context gallery ──────────────────────────────────────── */
#context {
  padding: 7rem var(--pad-x);
  background: var(--bg);
}

.context-header {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}

.context-header h2 { margin-top: 0.5rem; }

.context-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 400px;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
}

.context-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.context-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.context-item:hover img { transform: scale(1.03); }

/* Slides strip */
.slides-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.slide-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.slide-item:hover img { transform: scale(1.05); }

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  padding: 8rem var(--pad-x);
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-email {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.contact-email:hover { color: var(--text); }

.contact-note {
  font-size: 0.9rem;
  color: var(--text-3);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem var(--pad-x);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-3);
  transition: color 0.2s ease;
}

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

/* ── Reveal animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .slides-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 105;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--text);
  }

  /* Hero stacked */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text { align-items: center; }

  .hero-image-wrap {
    height: clamp(280px, 55vw, 420px);
    order: -1;
  }

  .hero-sub { max-width: 100%; }

  /* Showcase stacked */
  .showcase-row {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem var(--pad-x);
    direction: ltr;
  }

  .showcase-row.reverse { direction: ltr; }

  .showcase-image {
    height: clamp(260px, 60vw, 380px);
    order: -1;
  }

  /* App CTA stacked */
  .app-inner {
    grid-template-columns: 1fr;
  }

  .app-duo-wrap {
    order: -1;
  }

  .app-duo-offset {
    margin-left: 1.25rem;
  }

  /* Features single column */
  .features-grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
  }

  /* Config 2-col stays, then 1 */
  .config-strip {
    grid-template-columns: repeat(2, 1fr);
  }



  .context-item:not(.context-large) {
    height: 200px;
  }

  /* Slides 3-col → 2-col */
  .slides-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer stacked */
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .config-strip {
    grid-template-columns: 1fr 1fr;
  }

  .slides-strip {
    grid-template-columns: 1fr 1fr;
  }

  .app-actions { flex-direction: column; align-items: flex-start; }
}
