* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #F7F7F2;
  color: #111827;
  overflow-x: hidden;
}

.portal-screen {
  min-height: 100vh;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 48px;
  padding: 72px 7vw 64px;
  overflow: hidden;
}

/* GRID BACKGROUND */

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 217, 204, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 217, 204, 0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: drift 40s linear infinite;
  z-index: 0;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50px, -50px);
  }
}

/* CANVAS */

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.75;
  pointer-events: none;
}

canvas {
  width: 100%;
  height: 100%;
}

/* CONTENT */

.hero-content {
  position: relative;
  z-index: 12;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A87952;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #123A4A;
}

.sub {
  margin: 0 0 14px;
  font-size: 19px;
  color: #344054;
}

.micro {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A87952;
}

.intro {
  margin: 0 0 30px;
  font-size: 14px;
  color: #5F6673;
}

/* BUTTON */

.hero-actions {
  display: flex;
}

.btn.secondary {
  border: 1px solid #CBBBA8;
  color: #5F6673;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn.secondary:hover {
  background: #EAF2F5;
  border-color: #2F6F7E;
  color: #123A4A;
  transform: translateY(-1px);
}

/* DEMO PANEL */

.demo-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.demo-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(216,206,192,0.9);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: #111827;
  transition: all 0.25s ease;
}

.demo-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A87952;
}

.demo-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 26px;
  color: #123A4A;
}

.demo-card p {
  font-size: 13px;
  color: #5F6673;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: #2F6F7E;
  background: rgba(234,242,245,0.9);
}

.footer {
  position: fixed;
  bottom: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 20;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168,121,82,0.7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-logo {
  height: 18px;
  width: auto;
  display: block;
  transform: translateY(1px);
}

.alis {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 800;
  text-transform: lowercase;
  color: #111827;
  font-size: 1.25em;
}

.footer-text {
  opacity: 0.8;
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 6vw;
  }

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

@media (max-width: 680px) {
  .demo-panel {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 46px;
  }
}
.hero-image {
  position: absolute;
  top: 500px;
  left: 17vw;
  width: 400px;
  z-index: 0;
  opacity: 0.78;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo {
  position: absolute;
  top: 28px;
  left: 7vw;
  z-index: 6;
  opacity: 0.9;
}

.hero-logo img {
  height: 22px;   /* apenas más grande que "alis" */
  width: auto;
  display: block;
}