:root {
  --dark: #0e0d0b;
  --black: #050504;
  --gold: #b89b6a;
  --gold2: #d8bd83;
  --text: #f7f2e9;
  --muted: #bdb5a7;
  --paper: #f7f3ea;
  --ink: #1d1a16;
  --graphite: #2b2b2b;
  --line: #d7c8ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 5vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  transition: .3s ease;
}
.topbar.scrolled {
  background: rgba(8, 7, 6, .94);
  backdrop-filter: blur(16px);
  padding: 12px 5vw;
  border-bottom: 1px solid rgba(184, 155, 106, .22);
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}
.brand-logo-dark { display: none; }
.topbar.scrolled .brand-logo { height: 58px; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e7dfd2;
  font-size: 14px;
}
.nav a { opacity: .84; transition: .2s ease; }
.nav a:hover, .nav a:focus-visible { opacity: 1; color: var(--gold2); }
.nav-system-link {
  padding: 7px 10px;
  border: 1px solid rgba(216, 189, 131, .32);
  border-radius: 999px;
  font-size: 12px;
  opacity: .72;
}
.nav-system-link:hover,
.nav-system-link:focus-visible {
  border-color: rgba(216, 189, 131, .72);
}
.mobile-system-link {
  display: none;
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 189, 131, .38);
  background: rgba(0, 0, 0, .16);
  color: white;
  font-size: 25px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #17120a;
  padding: 14px 22px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  transition: .25s ease;
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(198, 161, 91, .2);
}
.btn-small { min-height: 42px; padding: 10px 15px; }
.btn-ghost { background: transparent; color: white; }
.btn-dark { background: #17120a; color: white; border-color: #17120a; }
.btn-outline-dark { background: transparent; color: #17120a; border-color: #17120a; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 124px 8vw 88px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(5, 5, 4, .55), rgba(5, 5, 4, .25)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1900&q=80") center / cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 55%, rgba(198, 161, 91, .18), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .18));
}
.hero-content {
  position: relative;
  max-width: 850px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--gold2);
  font-weight: 800;
  font-size: 12px;
}
.hero h1, .section h2, .quote h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 82px);
  line-height: .98;
  margin: 14px 0 22px;
}
.hero-text {
  max-width: 660px;
  color: #ded6c8;
  font-size: 20px;
  line-height: 1.7;
}
.hero-actions, .portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.hero-badges span {
  border: 1px solid rgba(216, 189, 131, .36);
  color: #ead7a3;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, .22);
}
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 8vw;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section {
  padding: 110px 8vw;
  background: var(--paper);
  color: var(--ink);
}
.section.dark { background: var(--dark); color: white; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.section-title h2, .section-head h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  margin: 10px 0;
}
.section-head {
  max-width: 820px;
  margin-bottom: 48px;
}
.text-block {
  color: #4b443b;
  font-size: 18px;
  line-height: 1.85;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ambient-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(198, 161, 91, .08), rgba(0, 0, 0, .92)),
    url("https://images.unsplash.com/photo-1556912167-f556f1f39fdf?auto=format&fit=crop&w=900&q=80") center / cover;
}
.ambient-card:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 91, .08), rgba(0, 0, 0, .92)),
    url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=900&q=80");
}
.ambient-card:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 91, .08), rgba(0, 0, 0, .92)),
    url("https://images.unsplash.com/photo-1595428774223-ef52624120d2?auto=format&fit=crop&w=900&q=80");
}
.ambient-card:nth-child(4) {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 91, .08), rgba(0, 0, 0, .92)),
    url("https://images.unsplash.com/photo-1552321554-5fefe8c9ef14?auto=format&fit=crop&w=900&q=80");
}
.ambient-card:nth-child(5) {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 91, .08), rgba(0, 0, 0, .92)),
    url("https://images.unsplash.com/photo-1600566753151-384129cf4e3e?auto=format&fit=crop&w=900&q=80");
}
.ambient-card span {
  font-family: "Playfair Display", serif;
  font-size: 30px;
}
.ambient-card p {
  color: #d6ccbc;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.feature strong {
  color: var(--gold);
  font-size: 28px;
}
.feature h3 { font-size: 20px; }
.feature p {
  color: #5b5347;
  line-height: 1.65;
}
.dark .feature p, .factory .feature p { color: #d6ccbc; }

.factory {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, .86), rgba(23, 18, 10, .74)),
    repeating-linear-gradient(90deg, rgba(216, 189, 131, .05) 0 1px, transparent 1px 84px),
    #17120a;
  color: white;
}

.region { background: #f5f0e7; }
.region-intro {
  color: #5b5347;
  font-size: 18px;
  line-height: 1.7;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}
.service-grid article, .region-grid span {
  background: #fffaf1;
  border: 1px solid var(--line);
}
.service-grid article {
  min-height: 170px;
  padding: 28px;
}
.service-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #1d1a16;
  font-family: "Playfair Display", serif;
  font-size: 28px;
}
.service-grid p {
  color: #5b5347;
  line-height: 1.65;
  margin: 0;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.region-grid span {
  color: #2a241c;
  font-weight: 700;
  padding: 18px;
}

.beach {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .20)),
    url("https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?auto=format&fit=crop&w=1600&q=80") center / cover;
  color: white;
}
.factory-card {
  max-width: 620px;
  background: rgba(0, 0, 0, .52);
  border: 1px solid rgba(198, 161, 91, .3);
  padding: 45px;
  backdrop-filter: blur(10px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 18px;
}
.gallery-item {
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=900&q=80") center / cover;
  font-family: "Playfair Display", serif;
  font-size: 26px;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item:nth-child(2) {
  background-image:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)),
    url("https://images.unsplash.com/photo-1595428774223-ef52624120d2?auto=format&fit=crop&w=900&q=80");
}
.gallery-item:nth-child(3) {
  background-image:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)),
    url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=900&q=80");
}
.gallery-item:nth-child(4) {
  background-image:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)),
    url("https://images.unsplash.com/photo-1556912173-3bb406ef7e77?auto=format&fit=crop&w=900&q=80");
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.steps div {
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  text-align: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}
.steps div:last-child { border-right: 0; }
.steps span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 40px;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 60px;
  align-items: center;
  background: #f0e7d9;
}
.app-copy p {
  color: #50483d;
  font-size: 18px;
  line-height: 1.8;
}
.app-copy .portal-note {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid rgba(198, 161, 91, .42);
  background: rgba(255, 250, 241, .72);
  color: #302a22;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
.portal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.portal-list li {
  border: 1px solid rgba(23, 18, 10, .18);
  padding: 12px 14px;
  color: #302a22;
  font-weight: 700;
  background: rgba(255, 250, 241, .68);
}
.phone {
  width: min(360px, 100%);
  min-height: 560px;
  margin: auto;
  padding: 34px 22px;
  background: #111;
  border: 10px solid #1f1b17;
  border-radius: 36px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .28);
}
.phone-top {
  width: 90px;
  height: 6px;
  margin: 0 auto 40px;
  background: #333;
  border-radius: 99px;
}
.phone-card {
  margin-bottom: 16px;
  border: 1px solid rgba(198, 161, 91, .32);
  border-radius: 18px;
  background: #1c1814;
  color: white;
  padding: 20px;
}
.phone-card b { display: block; }
.phone-card span {
  color: var(--gold2);
  font-size: 13px;
}

.quote {
  padding: 120px 8vw;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .72)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1700&q=80") center / cover;
  color: white;
  text-align: center;
}
.quote-inner {
  max-width: 760px;
  margin: auto;
}
.quote p {
  color: #ded6c8;
  font-size: 18px;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: #050504;
  color: #bdb5a7;
  padding: 48px 8vw;
}
.footer strong { color: white; }
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border-radius: 999px;
  background: #25d366;
  color: white;
  font-weight: 800;
  padding: 15px 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .nav { gap: 12px; font-size: 13px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .topbar { gap: 12px; padding: 14px 5vw; }
  .brand-logo { height: 44px; }
  .topbar.scrolled .brand-logo { height: 42px; }
  .nav, .topbar > .btn { display: none; }
  .mobile-system-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(216, 189, 131, .42);
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: #f7f2e9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .menu { display: inline-grid; place-items: center; }
  .nav.open {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: rgba(9, 8, 7, .98);
    border-top: 1px solid rgba(184, 155, 106, .22);
    padding: 10px 6vw 18px;
  }
  .nav.open a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .split, .app, .footer { grid-template-columns: 1fr; }
  .cards-grid, .service-grid { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item.large, .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps div:nth-child(2n) { border-right: 0; }
  .hero {
    min-height: 92vh;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .section { padding: 80px 6vw; }
  .hero h1 { font-size: 44px; }
  .hero-text, .text-block, .app-copy p { font-size: 16px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 38px; }
  .hero-actions, .portal-actions { display: grid; }
  .btn { width: 100%; }
  .features, .region-grid, .portal-list { grid-template-columns: 1fr; }
  .factory-card { padding: 28px; }
  .phone {
    min-height: 0;
    padding: 28px 18px;
    border-width: 8px;
  }
  .footer { gap: 12px; }
  .whatsapp {
    left: 18px;
    right: 18px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .mobile-system-link {
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }
}
