/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Rubik:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --color-primary: #222;
  --color-lime: #c7e51f;
  --color-bg: #f3f3f3;
  --color-bg-warm: #f1eee9;
  --color-text-muted: #504f4d;
  --color-text-light: #959595;
  --color-gray-40: #a7a7a7;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Rubik', sans-serif;
}

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

body {
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coinRotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

.animate-coin-rotate {
  animation: coinRotate 6s linear infinite;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── Layout Helpers ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1242px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(243,243,243,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-btn {
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-btn:hover {
  opacity: 0.85;
}

/* ── HERO ── */
.hero {
  padding: 60px 20px 0;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 620px;
}

.hero-text-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 28px;
  line-height: 1.25;
  color: var(--color-primary);
  max-width: 500px;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-input {
  height: 42px;
  width: 240px;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
  color: var(--color-primary);
  outline: none;
  transition: border-color 0.2s;
}

.hero-input::placeholder {
  color: var(--color-text-light);
}

.hero-input:focus {
  border-color: var(--color-primary);
}

.hero-submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border-radius: 8px;
  background: var(--color-lime);
  color: var(--color-primary);
  padding: 0 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-error {
  font-size: 14px;
  color: #e53935;
}

/* ── SKYLINE ── */
.skkyline-section {
  position: relative;
  margin-top: 40px;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.skkyline-img {
  width: 100%;
  display: block;
  mix-blend-mode: darken;
}

.skkyline-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.skkyline-scroll-label {
  border-radius: 20px;
  background: rgba(241,238,233,0.6);
  padding: 4px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* ── PILL / TAG ── */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: var(--color-bg-warm);
  padding: 4px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.pill-left {
  align-self: flex-start;
  border-top-left-radius: 32px;
}

/* ── SECTION WRAPPER ── */
.section-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HOAsection ── */
.hoa-section {
  display: flex;
  gap: 48px;
  margin: 100px 0;
}

.hoa-section.reverse {
  flex-direction: row-reverse;
}

.hoa-left {
  width: 428px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 280px;
}

.hoa-left-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hoa-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
}

.hoa-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hoa-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bullet-dot {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}

.bullet-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary);
}

.hoa-visual {
  position: relative;
  aspect-ratio: 661 / 527;
  min-width: 0;
  flex: 1;
}

.hoa-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}

.hoa-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hoa-visual-overlay1 {
  position: absolute;
  left: 3.5%;
  top: 30.2%;
  width: 93%;
  height: 63.8%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.hoa-visual-overlay1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hoa-visual-overlay2 {
  position: absolute;
  left: 38.1%;
  top: 2.8%;
  width: 59.8%;
  height: 60.5%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.hoa-visual-overlay2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── RESIDENTSsection ── */
.residents-visual {
  position: relative;
  aspect-ratio: 661 / 527;
  min-width: 0;
  flex: 1;
}

.residents-visual-bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}

.residents-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.residents-visual-overlay {
  position: absolute;
  left: 15.3%;
  top: 50%;
  transform: translateY(-50%);
  width: 69.4%;
  height: 100%;
  overflow: hidden;
}

.residents-visual-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── GAMIFICATIONsection ── */
.gamification-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  margin: 100px 0;
}

.gamification-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
  max-width: 760px;
}

.gamification-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 848px;
}

.coin-container {
  height: 267px;
  width: 267px;
  flex-shrink: 0;
}

.coin-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── CTA section ── */
.cta-section {
  position: relative;
  margin-bottom: 80px;
  border-radius: 24px;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 20px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-primary);
}

.cta-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.cta-btn {
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.85;
}

/* ── FOOTER ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1242px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.footer-text {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

/* ── OVERLAY (backdrop) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  padding: 20px;
}

.modal-backdrop-light {
  background: rgba(0,0,0,0.45);
}

/* ── CONFIRM POPUP ── */
.confirm-popup {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  background: #fff;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.confirm-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-lime);
  margin: 0 auto 20px;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.confirm-msg {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.confirm-btn {
  width: 100%;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.confirm-btn:hover {
  opacity: 0.85;
}

/* ── DEMO MODAL ── */
.demo-modal {
  position: relative;
  max-height: 90vh;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  background: #fff;
  padding: 40px;
  overflow-y: auto;
}

.demo-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
}

.demo-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.demo-subtitle {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.demo-demo-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-gray-40);
  margin-bottom: 28px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.form-label-required {
  color: #e53935;
}

.form-input {
  height: 44px;
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #d4d4d4;
  background: #fafafa;
  padding: 0 14px;
  font-size: 14px;
  color: var(--color-primary);
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: var(--color-gray-40);
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-select {
  height: 44px;
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #d4d4d4;
  background: #fafafa;
  padding: 0 14px;
  font-size: 14px;
  color: var(--color-primary);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--color-primary);
}

.form-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #d4d4d4;
  background: #fafafa;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-primary);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-textarea::placeholder {
  color: var(--color-gray-40);
}

.form-textarea:focus {
  border-color: var(--color-primary);
}

.demo-submit-btn {
  height: 52px;
  width: 100%;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.demo-submit-btn:hover:not(:disabled) {
  opacity: 0.85;
}

.demo-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.demo-error {
  text-align: center;
  font-size: 14px;
  color: #e53935;
}

.demo-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--color-gray-40);
}

.demo-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  text-align: center;
}

.demo-success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-lime);
}

.demo-success-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
}

.demo-success-msg {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-input {
    width: 100%;
  }

  .hoa-section {
    flex-direction: column;
    gap: 40px;
    margin: 80px 0;
  }

  .hoa-section.reverse {
    flex-direction: column;
  }

  .hoa-left {
    width: 100%;
  }

  .hoa-title {
    font-size: 26px;
  }

  .gamification-title {
    font-size: 26px;
  }

  .cta-title {
    font-size: 26px;
  }

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

  .skkyline-section {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .nav-logo {
    height: 28px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .coin-container {
    height: 200px;
    width: 200px;
  }
}