/* TekCapitol homepage visual refinement — spacing, hierarchy, restrained surfaces */

:root {
  --home-max: 1200px;
  --home-pad: clamp(20px, 4vw, 48px);
  --home-section-y: clamp(56px, 8vw, 112px);
  --home-gap-sm: 0.5rem;
  --home-gap-md: 1rem;
  --home-gap-lg: 1.5rem;
  --home-gap-xl: 2.5rem;
  --home-surface: rgba(15, 23, 42, 0.35);
  --home-border: rgba(148, 163, 184, 0.1);
  --home-radius: 10px;
  --home-text-muted: rgba(255, 255, 255, 0.58);
  --home-text-soft: rgba(255, 255, 255, 0.45);
}

/* Quieter backgrounds on content-heavy bands */
.home-section--calm {
  background: #080e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-section--calm .hero-img,
.home-section--calm + .home-section--calm {
  /* sections after hero are calm */
}

#consequential.home-section,
#products.home-section,
#production-trust.home-section {
  background: #080e1a;
}

.home-container {
  max-width: var(--home-max);
  margin: 0 auto;
  padding-left: var(--home-pad);
  padding-right: var(--home-pad);
}

.home-section {
  padding: var(--home-section-y) 0;
}

.home-section--cta {
  padding-bottom: clamp(72px, 10vw, 120px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 40%, rgba(8, 14, 26, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.home-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.75rem;
  text-align: center;
}

.home-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f0f4ff;
  margin: 0 0 0.65rem;
  text-align: center;
}

.home-lead {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--home-text-muted);
  max-width: 34rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-text-link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
}

.home-text-link:hover {
  text-decoration: underline;
}

.home-section-center {
  text-align: center;
  margin-top: 1.5rem;
}

/* Unified surface card */
.home-surface {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  padding: 1.35rem 1.25rem;
}

.home-surface--clickable {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-surface--clickable:hover {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.48);
}

/* Consequential: three grouped cards */
.home-conseq-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--home-gap-lg);
  margin-top: 0.25rem;
}

.home-group-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
  color: #e2e8f0;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.home-group-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--home-text-muted);
  margin: 0 0 0.85rem;
}

.home-group-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.home-group-examples li {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  line-height: 1.4;
}

.home-group-examples li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Platform */
#products.home-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #080e1a 0%, rgba(8, 14, 26, 0.98) 100%);
}

.home-platform-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 auto 1.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #64748b;
}

.home-platform-meta span {
  color: #94a3b8;
}

.home-suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--home-gap-md);
  margin-bottom: 1rem;
}

.home-suite-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.35rem;
}

.home-suite-card .suite-lead {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0 0 0.35rem;
}

.home-suite-card .suite-body {
  font-size: 0.84rem;
  color: var(--home-text-muted);
  line-height: 1.5;
  margin: 0;
}

.home-suite-card .suite-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #93c5fd;
  text-decoration: none;
  font-weight: 550;
}

.home-suite-card .suite-link:hover {
  text-decoration: underline;
}

.home-suite-card--protect {
  border-color: rgba(248, 113, 113, 0.15);
}

.suite-nested {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.suite-nested-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.suite-nested p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--home-text-muted);
  margin: 0 0 0.5rem;
}

.home-tc360-line {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--home-text-soft);
}

.home-tc360-line a {
  color: #94a3b8;
  text-decoration: none;
}

.home-tc360-line a:hover {
  color: #cbd5e1;
  text-decoration: underline;
}

/* Production trust — open tiles */
.home-trust-grid--open {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--home-gap-lg) var(--home-gap-md);
  margin-top: 0.5rem;
  text-align: left;
}

.home-trust-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.home-trust-item p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--home-text-muted);
  margin: 0;
}

#production-trust .home-section-center .btn-secondary {
  margin-top: 0.25rem;
  opacity: 0.92;
}

/* Developer CTA — open */
.home-dev-cta {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
}

.home-dev-cta .home-heading {
  margin-bottom: 0.5rem;
}

.home-dev-cta .home-lead {
  margin-bottom: 1.25rem;
}

.home-dev-cta pre {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 2vw, 0.84rem);
  color: #93c5fd;
  line-height: 1.4;
}

.home-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.home-dev-meta {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--home-text-soft);
}

/* Hero refinements */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.42) 0%,
    rgba(10, 22, 40, 0.72) 45%,
    rgba(8, 14, 26, 0.97) 100%
  );
}

.hero-img {
  opacity: 0.28;
}

.hero-grid {
  opacity: 0.45;
}

.hero-intent-line {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.65rem;
  line-height: 1.5;
  max-width: 36rem;
}

nav {
  background: rgba(8, 14, 26, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section overrides inside homepage bands */
.readiness-pillars-section.home-section {
  border-top: none;
  border-bottom: none;
  padding: var(--home-section-y) 0;
  background: transparent;
}

.k360-products-section.home-section {
  padding: var(--home-section-y) 0;
  border-bottom: none;
  background: transparent;
}

.proof-section.home-section {
  padding: var(--home-section-y) var(--home-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: none;
  background: #080e1a;
}

.proof-section.home-section .container {
  max-width: var(--home-max);
}

/* Responsive */
@media (max-width: 1024px) {
  .home-trust-grid--open {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }
}

@media (max-width: 900px) {
  .home-conseq-groups,
  .home-suite-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .home-trust-grid--open {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .home-dev-actions .btn-primary,
  .home-dev-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
