/* ============================================================
   MyHuni.My - Landing Page Styles
   Design system: "The Architectural Concierge"
   ============================================================ */

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

:root {
  --primary:             #004bce;
  --primary-container:   #1061ff;
  --on-primary:          #ffffff;
  --background:          #f8f9ff;
  --surface-low:         #eff4ff;
  --surface-lowest:      #ffffff;
  --surface-highest:     #d3e4fe;
  --on-surface:          #0b1c30;
  --on-surface-variant:  #424656;
  --tertiary:            #006443;
  --on-tertiary:         #ffffff;
  --outline-variant:     #c3c5d9;
  --error:               #ba1a1a;

  --font-headline: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --shadow-ambient: 0 12px 40px rgba(11, 28, 48, 0.06);
  --shadow-card:    0 4px 20px rgba(11, 28, 48, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ── Typography ───────────────────────────────────────────── */
.display-lg { font-family: var(--font-headline); font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.headline-md { font-family: var(--font-headline); font-size: clamp(1.5rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.headline-sm { font-family: var(--font-headline); font-size: 1.25rem; font-weight: 700; }
.title-md { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; }
.body-lg { font-size: 1rem; font-weight: 400; }
.label-md { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #004bce 0%, #1061ff 100%);
  color: #fff;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 48px rgba(11, 28, 48, 0.12); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(11, 28, 48, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(11, 28, 48, 0.16); }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title .label-md { color: var(--primary); margin-bottom: 12px; }
.section-title .headline-md { color: var(--on-surface); margin-bottom: 16px; }
.section-title p { color: var(--on-surface-variant); max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

/* ── Navigation ───────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.landing-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-ambient);
}
.landing-nav.nav-scrolled .nav-links a,
.landing-nav.nav-scrolled .nav-logo { color: var(--on-surface); }
.landing-nav.nav-scrolled .nav-logo-dot { color: var(--primary); }
.landing-nav.nav-scrolled .nav-burger span { background: var(--on-surface); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  padding: 20px 24px;
}
.nav-logo {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 5px 10px;
  transition: background 0.3s ease;
}
.nav-logo-img { height: 44px; width: auto; display: block; }
/* On scrolled (light) nav, remove the pill background */
.landing-nav.nav-scrolled .nav-logo { background: transparent; padding: 0; }

.nav-links { display: flex; list-style: none; gap: 36px; margin-left: auto; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: rgba(255,255,255,0.85); transition: color 0.15s ease; }
.nav-links a:hover { color: #fff; }
.landing-nav.nav-scrolled .nav-links a { color: var(--on-surface-variant); }
.landing-nav.nav-scrolled .nav-links a:hover { color: var(--on-surface); }

.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: 0.875rem; }
.nav-login {
  margin-left: 16px; font-size: 0.875rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none; transition: color 0.2s ease;
}
.nav-login:hover { color: #fff; }
.landing-nav.nav-scrolled .nav-login { color: var(--on-surface-variant); }
.landing-nav.nav-scrolled .nav-login:hover { color: var(--on-surface); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(195,197,217,0.2);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-menu a { display: block; padding: 10px 0; font-size: 1rem; font-weight: 500; color: var(--on-surface); border-bottom: 1px solid rgba(195,197,217,0.3); }
.nav-mobile-cta { margin-top: 12px; text-align: center; }

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, #004bce 0%, #1061ff 100%);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,30,90,0.3) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4edea3; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title { color: #fff; margin-bottom: 24px; }
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.125rem; line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phone-frame {
  width: 280px; height: 520px; border-radius: 36px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  overflow: hidden; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
}
.hero-phone-img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-phone-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem; text-align: center; padding: 24px;
}
.hero-phone-placeholder svg { opacity: 0.4; }

/* Floating visitor pass */
.visitor-pass {
  position: absolute; right: -20px; bottom: 80px;
  width: 200px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 16px 48px rgba(11, 28, 48, 0.2);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.visitor-pass-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.visitor-pass-name { font-family: var(--font-headline); font-size: 0.875rem; font-weight: 700; color: var(--on-surface); }
.approved-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e6f9f0; color: var(--tertiary);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--radius-full);
}
.approved-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); }
.visitor-pass-qr {
  width: 80px; height: 80px; border-radius: 8px;
  background: var(--on-surface);
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.visitor-pass-qr svg { color: #fff; }
.visitor-pass-unit { text-align: center; font-size: 0.75rem; color: var(--on-surface-variant); }

/* ── Pain Points ──────────────────────────────────────────── */
#pain-points { background: var(--surface-low); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(11, 28, 48, 0.1); }
.pain-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--surface-low);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.pain-icon svg { width: 26px; height: 26px; }
.pain-card h3 { font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; color: var(--on-surface); margin-bottom: 10px; }
.pain-card p { font-size: 0.9375rem; color: var(--on-surface-variant); line-height: 1.65; }

/* ── Features ─────────────────────────────────────────────── */
#features { background: var(--surface-lowest); }
.features-list { display: flex; flex-direction: column; gap: 80px; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-visual {
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  aspect-ratio: 4/3;
  overflow: hidden; position: relative;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--on-surface-variant); font-size: 0.875rem; text-align: center; padding: 24px;
  min-height: 280px;
}
.feature-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e6f9f0; color: var(--tertiary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.feature-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); }
.feature-text h3 { font-family: var(--font-headline); font-size: 1.5rem; font-weight: 700; color: var(--on-surface); margin-bottom: 16px; }
.feature-text p { color: var(--on-surface-variant); font-size: 1rem; line-height: 1.7; }

/* ── Roadmap ──────────────────────────────────────────────── */
#roadmap {
  background: linear-gradient(135deg, #003ba3 0%, #004bce 50%, #0d5ce6 100%);
  position: relative; overflow: hidden;
}
#roadmap::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}
#roadmap .section-title .label-md { color: rgba(255,255,255,0.6); }
#roadmap .section-title .headline-md { color: #fff; }
#roadmap .section-title p { color: rgba(255,255,255,0.7); }

.roadmap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; z-index: 1; }
.roadmap-col {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.roadmap-col-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.roadmap-col-header h3 { font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; color: #fff; }
.roadmap-live-badge {
  background: rgba(78, 222, 163, 0.2); color: #4edea3;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.roadmap-soon-badge {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: var(--radius-full);
}

.roadmap-items { display: flex; flex-direction: column; gap: 14px; }
.roadmap-item { display: flex; align-items: flex-start; gap: 12px; }
.roadmap-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(78, 222, 163, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.roadmap-check svg { color: #4edea3; }
.roadmap-lock {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.roadmap-lock svg { color: rgba(255,255,255,0.4); }
.roadmap-item-text strong { display: block; font-size: 0.9375rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.roadmap-item-text span { font-size: 0.8125rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

.roadmap-tagline { text-align: center; margin-top: 48px; position: relative; z-index: 1; }
.roadmap-tagline p { font-family: var(--font-headline); font-size: 1.25rem; font-weight: 700; color: rgba(255,255,255,0.9); }

/* ── How It Works ─────────────────────────────────────────── */
#how-it-works { background: var(--background); }
.steps-track { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: start; gap: 0; }
.step-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #004bce, #1061ff);
  color: #fff;
  font-family: var(--font-headline); font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-family: var(--font-headline); font-size: 1.0625rem; font-weight: 700; color: var(--on-surface); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--on-surface-variant); line-height: 1.65; }
.step-quote { font-style: italic; font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-top: 12px; }
.step-arrow { display: flex; align-items: center; justify-content: center; padding-top: 40px; color: var(--outline-variant); }
.steps-closing { text-align: center; margin-top: 48px; font-size: 1rem; color: var(--on-surface-variant); font-style: italic; }

/* ── Portals ──────────────────────────────────────────────── */
#portals { background: var(--surface-low); }
.portals-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.portal-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(195,197,217,0.4);
  background: transparent;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.15s ease;
}
.portal-tab.active,
.portal-tab:hover {
  background: linear-gradient(135deg, #004bce, #1061ff);
  color: #fff; border-color: transparent;
}

.portals-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.portal-panel { display: none; }
.portal-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.portal-screenshot {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-highest);
  aspect-ratio: 16/10;
}
.portal-screenshot img { width: 100%; height: 100%; object-fit: cover; }
.portal-screenshot-placeholder {
  width: 100%; height: 100%; min-height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--on-surface-variant); font-size: 0.875rem; text-align: center; padding: 24px;
}
.portal-info { padding: 8px 0; }
.portal-role { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.portal-info h3 { font-family: var(--font-headline); font-size: 1.5rem; font-weight: 700; color: var(--on-surface); margin-bottom: 16px; }
.portal-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.portal-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9375rem; color: var(--on-surface-variant); }
.portal-bullet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 8px; }

/* ── Why MyHuni.My ────────────────────────────────────────── */
#why { background: var(--surface-lowest); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--surface-low);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease;
}
.why-card:hover { transform: translateY(-4px); }
.why-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.why-logo { height: 36px; width: auto; }
.why-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,75,206,0.1), rgba(16,97,255,0.15));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-family: var(--font-headline); font-size: 1rem; font-weight: 700; color: var(--on-surface); margin-bottom: 8px; }
.why-card p { font-size: 0.875rem; color: var(--on-surface-variant); line-height: 1.6; }

/* ── Early Access CTA ─────────────────────────────────────── */
#early-access {
  background: var(--primary);
  padding: 96px 0;
}
.cta-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-family: var(--font-headline); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.cta-inner p { color: rgba(255,255,255,0.75); font-size: 1.0625rem; margin-bottom: 40px; line-height: 1.65; }
.cta-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto 16px; }
.cta-input {
  flex: 1;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-family: var(--font-body); font-size: 0.9375rem; color: #fff;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cta-input::placeholder { color: rgba(255,255,255,0.45); }
.cta-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.18); }
.cta-note { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.cta-success { display: none; }
.cta-success.show { display: block; color: #4edea3; font-weight: 600; font-size: 0.9375rem; margin-top: 12px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #071526;
  padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo-img { height: 36px; width: auto; display: block; margin-bottom: 12px; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.15s ease; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.35); transition: color 0.15s ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; }
  .hero-subtitle { max-width: 100%; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta, .nav-login { display: none; }
  .nav-burger { display: flex; }
  .pain-grid { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .steps-track { grid-template-columns: 1fr; gap: 24px; }
  .step-arrow { display: none; }
  .portal-panel.active { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .visitor-pass { right: -10px; width: 170px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .why-grid { grid-template-columns: 1fr; }
  .portals-tabs { gap: 6px; }
  .portal-tab { font-size: 0.8125rem; padding: 8px 16px; }
}

/* ── Legal Pages ──────────────────────────────────────────── */
.legal-header {
  background: linear-gradient(135deg, #004bce 0%, #1061ff 100%);
  padding: 120px 0 48px;
  position: relative;
  overflow: hidden;
}
.legal-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.legal-header .container { position: relative; z-index: 1; }
.legal-header .label-md { color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.legal-header h1 { color: #fff; }
.legal-meta { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-top: 10px; }
.legal-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.legal-links a {
  font-size: 0.8125rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.15s ease;
}
.legal-links a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.legal-links a.active { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }

.legal-body { padding: 64px 0 96px; }

/* Two-column layout: sticky sidebar TOC left, content right */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-sidebar {
  position: sticky;
  top: 90px;
}
.legal-content { min-width: 0; }

.legal-toc .label-md {
  color: var(--on-surface-variant);
  font-size: 0.6875rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(195,197,217,0.35);
}
.legal-toc ol {
  list-style: none;
  padding-left: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.legal-toc ol li a {
  display: block;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-toc ol li a:hover {
  color: var(--on-surface);
  border-left-color: rgba(195,197,217,0.7);
}
.legal-toc ol li a.toc-active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

/* Mobile: sidebar stacks above content as a compact TOC box */
@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 40px;
  }
  .legal-toc {
    background: var(--surface-low);
    border-radius: var(--radius-md);
    padding: 20px 24px;
  }
  .legal-toc .label-md {
    color: var(--primary);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 12px;
  }
  .legal-toc ol { list-style: decimal; padding-left: 20px; }
  .legal-toc ol li a { padding: 4px 0; border-left: none; }
  .legal-toc ol li a.toc-active { color: var(--primary); font-weight: 600; }
}

.legal-content h2 {
  font-family: var(--font-headline);
  font-size: 1.25rem; font-weight: 700;
  color: var(--on-surface);
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(195,197,217,0.35);
  scroll-margin-top: 90px;
}
.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 {
  font-family: var(--font-headline);
  font-size: 1rem; font-weight: 700;
  color: var(--on-surface);
  margin: 24px 0 8px;
}
.legal-content p { color: var(--on-surface-variant); line-height: 1.75; margin-bottom: 16px; }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-content li { color: var(--on-surface-variant); line-height: 1.65; }
.legal-content strong { color: var(--on-surface); font-weight: 600; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* Role blocks */
.legal-role-badge {
  display: inline-flex; align-items: center;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-management { background: rgba(0,75,206,0.1); color: var(--primary); }
.badge-resident   { background: rgba(0,100,67,0.1);  color: var(--tertiary); }
.badge-guard      { background: rgba(66,70,86,0.1);  color: var(--on-surface-variant); }

.legal-role-block {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.legal-role-block.management { background: rgba(0,75,206,0.04); border-left: 3px solid var(--primary); }
.legal-role-block.resident   { background: rgba(0,100,67,0.04); border-left: 3px solid var(--tertiary); }
.legal-role-block.guard      { background: rgba(66,70,86,0.05); border-left: 3px solid var(--on-surface-variant); }
.legal-role-block h3 { margin-top: 0; margin-bottom: 10px; }
.legal-role-block ul { margin-bottom: 0; }

/* Data table */
.legal-table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 24px; font-size: 0.9rem;
}
.legal-table th {
  background: var(--surface-low);
  color: var(--on-surface); font-weight: 700;
  text-align: left; padding: 10px 16px;
  border-bottom: 2px solid var(--outline-variant);
}
.legal-table td {
  padding: 10px 16px;
  color: var(--on-surface-variant);
  border-bottom: 1px solid rgba(195,197,217,0.25);
  vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }

/* Contact block */
.legal-contact-block {
  background: var(--surface-low);
  border-radius: var(--radius-md);
  padding: 24px; margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-contact-block p { margin-bottom: 0; }
.legal-contact-block a { color: var(--primary); font-weight: 600; }
.legal-contact-block a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-header { padding: 100px 0 40px; }
  .legal-body { padding: 40px 0 64px; }
  .legal-table { font-size: 0.8125rem; display: block; overflow-x: auto; }
  .legal-table th, .legal-table td { padding: 8px 12px; }
}
