/* RESET */

* {
  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.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  padding: 72px 7vw 88px;
  overflow: hidden;
}

/* GRID BACKGROUND */

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 217, 204, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 217, 204, 0.34) 1px, transparent 1px);
  background-size: 25px 25px;
  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.72;
  pointer-events: none;
}

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

/* LOGO SUPERIOR */

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

.hero-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* GILA */

.hero-image {
  position: absolute;
  top: 570px;
  left: 20vw;
  width: 400px;
  z-index: 6;
  opacity: 0.80;
  pointer-events: none;
}

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

/* CONTENT */

.hero-content {
  position: relative;
  z-index: 10;
  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(54px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: #123A4A;
}

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

.micro {
  margin: 0 0 22px;
  font-size: 10px;
  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.58);
  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: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  align-self: center;
}

.demo-card {
  min-height: 128px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(216,206,192,0.95);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: #111827;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-card span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #A87952;
}

.demo-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  color: #123A4A;
}

.demo-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #5F6673;
}

.demo-card:hover {
  transform: translateY(-4px);
  border-color: #2F6F7E;
  background: rgba(234,242,245,0.92);
  box-shadow: 0 18px 40px rgba(18, 58, 74, 0.08);
}

/* FOOTER */

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

.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;
  pointer-events: auto;
}

.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: #123A4A;
  font-size: 1.25em;
}

.footer-text {
  opacity: 0.8;
}

/* RESPONSIVE */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 88px 6vw 96px;
    align-items: start;
  }

  .hero-content {
    max-width: 620px;
  }

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

  .hero-image {
    top: 120px;
    left: 48vw;
    width: 340px;
    opacity: 0.28;
  }
}

@media (max-width: 680px) {
  .grid-bg {
    background-image:
      linear-gradient(rgba(226, 217, 204, 0.16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(226, 217, 204, 0.16) 1px, transparent 1px);
    background-size: 52px 52px;
    animation-duration: 70s;
  }

  .hero {
    padding: 82px 24px 96px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .demo-panel {
    grid-template-columns: 1fr;
  }

  .hero-image {
    top: 90px;
    left: 44vw;
    width: 280px;
    opacity: 0.22;
  }

  .footer-inner {
    font-size: 10px;
    gap: 7px;
  }

  .footer-logo {
    height: 15px;
  }
}
