/* ═══════════════════════════════════════════════════════════════
   AngelDust LLC — professional home
   Clean landing layout (no portal / black-hole gimmicks)
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

body.portal-home {
  --home-ink: #f4f5f7;
  --home-muted: rgba(244, 245, 247, 0.68);
  --home-faint: rgba(244, 245, 247, 0.48);
  --home-bg: #0b0d12;
  --home-elevated: #12151c;
  --home-card: #151922;
  --home-border: rgba(255, 255, 255, 0.08);
  --home-border-strong: rgba(255, 255, 255, 0.14);
  --halo-gold: #c4a35a;
  --halo-soft: #d4b56a;
  --halo-deep: #9a7830;
  --seraph-cyan: #00d4ff;
  --seraph-soft: #7aeeff;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1120px;

  margin: 0;
  min-height: 100vh;
  font-family: var(--font) !important;
  color: var(--home-ink) !important;
  background: var(--home-bg) !important;
  overflow-x: hidden;
  overflow-y: auto;
}

body.portal-home::before,
body.portal-home::after {
  display: none !important;
}

body.portal-home.liquid-glass #matrix-canvas,
body.portal-home #theme-assets {
  display: none !important;
}

/* ── Nav (professional, sticky glass) ── */
body.portal-home .site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.78);
  border-bottom: 1px solid var(--home-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
}

body.portal-home .glass-nav,
body.portal-home .nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.portal-home .nav-brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(244, 245, 247, 0.95) !important;
  text-decoration: none;
}

body.portal-home .nav-brand-accent {
  color: var(--halo-gold);
  font-weight: 600;
}

body.portal-home .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

body.portal-home .nav-links a {
  color: var(--home-faint) !important;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

body.portal-home .nav-links a:hover,
body.portal-home .nav-links a.active {
  color: #fff !important;
}

body.portal-home .nav-user-area {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.portal-home .nav-user-area .btn,
body.portal-home .nav-user-area a.btn {
  border-radius: 999px;
  border: 1px solid var(--home-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 245, 247, 0.92) !important;
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none;
}

body.portal-home .nav-user-area a.btn-primary {
  background: #f4f5f7;
  color: #12151c !important;
  border-color: transparent;
}

body.portal-home .nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
}

body.portal-home .nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(244, 245, 247, 0.9);
  border-radius: 2px;
}

/* ── Layout ── */
.home {
  position: relative;
  z-index: 1;
}

.home-container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.home-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--halo-soft);
}

/* ── Hero ── */
.home-hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 50% at 90% 20%, rgba(0, 212, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(21, 25, 34, 0.9), transparent 60%),
    linear-gradient(180deg, #0e1118 0%, #0b0d12 100%);
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.45;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.home-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-title em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(110deg, #e8d5a3 0%, #fff 42%, #7aeeff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--home-muted);
}

.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

.home-btn-primary {
  background: #f4f5f7;
  color: #12151c !important;
}

.home-btn-primary:hover {
  background: #fff;
}

.home-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--home-border-strong);
  color: var(--home-ink) !important;
}

.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.home-trust li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--home-faint);
}

.home-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--halo-gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}

/* ── Sections ── */
.home-section {
  padding: 4.25rem 0;
}

.home-section-alt {
  background: linear-gradient(180deg, rgba(18, 21, 28, 0.55) 0%, rgba(11, 13, 18, 0) 100%);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
}

.home-section-head {
  max-width: 560px;
  margin-bottom: 2rem;
}

.home-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  letter-spacing: -0.015em;
  color: #fff;
}

.home-section-head p {
  margin: 0.65rem 0 0;
  color: var(--home-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ── Service cards ── */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow);
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.home-card-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.85;
}

.home-card-title {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.home-card-copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  opacity: 0.86;
  flex: 1;
}

.home-card-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.home-card-list li {
  font-size: 0.84rem;
  font-weight: 550;
  opacity: 0.88;
  padding-left: 0.95rem;
  position: relative;
}

.home-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  opacity: 0.75;
}

.home-card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-card-go::after {
  content: "→";
  transition: transform 0.18s ease;
}

.home-card:hover .home-card-go::after {
  transform: translateX(4px);
}

.home-card-halo {
  background: linear-gradient(160deg, #fbf8f1 0%, #f3ecdf 100%);
  border: 1px solid rgba(196, 163, 90, 0.35);
  color: #1a1812;
}

.home-card-halo .home-card-icon {
  background: rgba(196, 163, 90, 0.15);
  color: var(--halo-deep);
}

.home-card-halo .home-card-tag { color: var(--halo-deep); }
.home-card-halo .home-card-go { color: var(--halo-deep); }

.home-card-halo:hover,
.home-card-halo:focus-visible {
  border-color: rgba(154, 120, 48, 0.55);
  box-shadow: 0 22px 56px rgba(154, 120, 48, 0.16);
}

.home-card-seraph {
  background: linear-gradient(160deg, #121722 0%, #0d111a 100%);
  border: 1px solid rgba(0, 212, 255, 0.28);
  color: #f0f3ff;
}

.home-card-seraph .home-card-icon {
  background: rgba(0, 212, 255, 0.1);
  color: var(--seraph-cyan);
}

.home-card-seraph .home-card-tag { color: var(--seraph-cyan); }
.home-card-seraph .home-card-go { color: var(--seraph-cyan); }

.home-card-seraph:hover,
.home-card-seraph:focus-visible {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 22px 56px rgba(0, 212, 255, 0.12);
}

/* ── Features ── */
.home-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.home-feature {
  padding: 1.25rem 1.15rem;
  border-radius: var(--radius);
  background: var(--home-card);
  border: 1px solid var(--home-border);
  min-height: 100%;
}

.home-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  color: #fff;
}

.home-feature p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-feature-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--seraph-soft) !important;
  text-decoration: none;
}

.home-feature-link:hover {
  color: #fff !important;
}

/* ── About strip ── */
.home-about {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.home-about-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  color: #fff;
}

.home-about-copy p:not(.home-eyebrow) {
  margin: 0.8rem 0 1.35rem;
  color: var(--home-muted);
  line-height: 1.65;
  max-width: 34rem;
}

.home-about-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--home-elevated);
  border: 1px solid var(--home-border);
}

.home-about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--home-border);
}

.home-about-stat strong {
  font-size: 1rem;
  color: #fff;
}

.home-about-stat span {
  font-size: 0.84rem;
  color: var(--home-faint);
}

/* ── Bottom CTA ── */
.home-cta-band {
  padding: 3.5rem 0 4.5rem;
}

.home-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(0, 212, 255, 0.1), transparent 55%),
    var(--home-elevated);
  border: 1px solid var(--home-border);
}

.home-cta-band-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: #fff;
}

.home-cta-band-inner p {
  margin: 0.4rem 0 0;
  color: var(--home-muted);
  font-size: 0.95rem;
}

.home-cta-band-inner .home-cta {
  margin-top: 0;
  flex-shrink: 0;
}

/* ── Footer on home ── */
body.portal-home .site-footer {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: 1px solid var(--home-border);
  margin-top: 0;
}

body.portal-home .site-footer .footer-content,
body.portal-home .site-footer .glass-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.25rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
}

body.portal-home .footer-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: rgba(244, 245, 247, 0.9);
  margin-bottom: 0.55rem;
}

body.portal-home .footer-text,
body.portal-home .footer-links {
  color: var(--home-faint);
  font-size: 0.84rem;
}

body.portal-home .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  margin-top: 0.85rem;
}

body.portal-home .footer-links a,
body.portal-home .footer-text a {
  color: var(--home-muted) !important;
  text-decoration: none;
}

body.portal-home .footer-links a:hover,
body.portal-home .footer-text a:hover {
  color: #fff !important;
}

body.portal-home .back-to-top {
  background: rgba(21, 25, 34, 0.9);
  border: 1px solid var(--home-border-strong);
  color: var(--home-ink);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .home-btn,
  .home-card {
    transition: none !important;
  }

  .home-btn:hover,
  .home-card:hover {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .home-features {
    grid-template-columns: 1fr 1fr;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .home-cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  body.portal-home .nav-links {
    display: none;
  }

  body.portal-home .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 13, 18, 0.96);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--home-border);
    align-items: flex-start;
    gap: 0.65rem;
  }

  body.portal-home .nav-hamburger {
    display: flex;
  }

  body.portal-home .nav {
    position: relative;
    flex-wrap: wrap;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 4rem 0 3.25rem;
  }
}

@media (max-width: 560px) {
  .home-features {
    grid-template-columns: 1fr;
  }

  .home-container {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  .home-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .home-card {
    padding: 1.25rem 1.15rem;
  }
}
