/* ============ PAGE HERO (SUBPAGES) ============ */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10rem 48px 5rem;
}
.page-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.page-hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  margin-bottom: 1.5rem;
}
.page-hero-content p {
  font-size: 1.25rem;
  line-height: 1.75;
  max-width: 55ch;
}

/* ============ CONTAINER ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
section.page-section {
  padding: 6rem 0;
  position: relative;
}

/* ============ SECTION HEADERS ============ */
.section-header { margin-bottom: 4rem; }
.section-header .label-mint { margin-bottom: 1rem; display: inline-block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; line-height: 1.8; }

/* ============ LEGAL PAGES ============ */
.legal { max-width: 840px; }
.legal-updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint-500, #14e89c);
  margin-bottom: 3.5rem;
}
.legal-block { margin-bottom: 2.75rem; }
.legal-block h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.legal-block p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}
.legal-block p + p { margin-top: 0.85rem; }

/* ============ MARQUEE STRIP ============ */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-track span.dot { color: var(--mint-500); opacity: 0.7; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ GLASS CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.card:hover {
  border-color: rgba(20, 232, 156, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 40px rgba(20, 232, 156, 0.05);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(20, 232, 156, 0.1), rgba(20, 232, 156, 0.2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--mint-500);
  border: 1px solid rgba(20, 232, 156, 0.2);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; color: rgba(255,255,255,0.75); }
.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint-500);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s;
  letter-spacing: 0.02em;
}
.card-link:hover { gap: 0.7rem; }

/* ============ IDENTITY LAYERS ============ */
.identity-layers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.layer {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.4s;
}
.layer:hover {
  background: var(--glass);
  border-color: var(--glass-border);
  transform: translateX(8px);
}
.layer-num {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(20, 232, 156, 0.3) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.layer h3 { margin-bottom: 0.5rem; }
.layer-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============ PILLARS ============ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.pillar {
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s;
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.pillar:hover {
  border-color: rgba(20, 232, 156, 0.2);
  background: var(--glass-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px var(--mint-glow));
}
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.95rem; color: rgba(255,255,255,0.75); }

/* ============ CLIENT GRID ============ */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.client-type {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  background: var(--glass);
}
.client-type::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, var(--mint-500), var(--mint-300));
  transition: height 0.4s;
}
.client-type:hover {
  border-color: rgba(20, 232, 156, 0.2);
  transform: translateY(-4px);
}
.client-type:hover::before { height: 100%; }
.client-type h4 { margin-bottom: 0.5rem; }
.client-type p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ============ RULES (COMPACT) ============ */
.rules { display: flex; flex-direction: column; gap: 3rem; }
.rule {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2rem;
  align-items: start;
}
.rule-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mint-500), var(--mint-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.rule h3 { margin-bottom: 0.5rem; }
.rule p { font-size: 0.95rem; line-height: 1.7; }

/* ============ QUOTE / PROMISE ============ */
.quote-section {
  text-align: center;
  padding: 8rem 0;
}
.quote-section blockquote {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.02em;
}
.quote-section cite {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ SERVICE BLOCKS ============ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-block:last-child { border-bottom: none; }
.service-meta { display: flex; flex-direction: column; gap: 1.5rem; }
.service-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mint-500);
  line-height: 1.4;
}
.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============ TIER CARDS (SERVICES) ============ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tier {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  background: var(--glass);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.tier.featured {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 1px var(--mint-500), 0 0 30px rgba(20, 232, 156, 0.08);
}
.tier.featured::after {
  content: attr(data-badge);
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--mint-500), var(--mint-300));
  color: var(--ink-900);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 0 0 10px 10px;
}
.tier:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.tier-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.tier-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--mint-500);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.tier-price span { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.35); }
.tier-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tier-features { display: flex; flex-direction: column; gap: 0.75rem; }
.tier-features li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tier-features li::before {
  content: '\2713';
  color: var(--mint-500);
  font-weight: 800;
  flex-shrink: 0;
}

/* ============ PHASES ============ */
.phases { display: flex; flex-direction: column; }
.phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.phase:last-child { border-bottom: none; }
.phase:hover { padding-left: 0.5rem; }
.phase-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(20, 232, 156, 0.3) 0%, rgba(20, 232, 156, 0.05) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.phase h3 { margin-bottom: 0.5rem; }
.phase p { font-size: 0.95rem; }
.phase-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

/* ============ ENTERPRISE CARD ============ */
.enterprise-card {
  border: 1px solid rgba(20, 232, 156, 0.25);
  background: linear-gradient(135deg, var(--glass) 0%, rgba(20, 232, 156, 0.04) 100%);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.enterprise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint-500), var(--mint-300), var(--mint-500));
}
.enterprise-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--mint-500), var(--mint-300));
  color: var(--ink-900);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

/* ============ CONTACT FORM ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #fff;
  transition: all 0.3s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group select { color: rgba(255,255,255,0.6); }
.form-group select option { background: var(--ink-900); color: #fff; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(20, 232, 156, 0.08), 0 0 20px rgba(20, 232, 156, 0.05);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}
.contact-item h4 { margin-bottom: 0.5rem; }
.contact-item p { font-size: 0.95rem; color: rgba(255,255,255,0.75); }
.contact-item a {
  color: var(--mint-500);
  font-weight: 600;
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--mint-300); }

/* ============ PRELOADER (SUBPAGES) ============ */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-logo {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.preloader-bar {
  width: 80px; height: 2px;
  background: rgba(255,255,255,0.06);
  margin: 2rem auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  width: 100%;
  background: var(--mint-500);
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 2px;
}

/* ============ SCROLL ANIMATION CLASSES ============ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s, transform 0.8s; }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); transition: opacity 0.8s, transform 0.8s; }

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; gap: 3rem; }
  .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 8rem 24px 4rem; min-height: auto; }
  .container { padding: 0 24px; }
  section.page-section { padding: 4rem 0; }
  .card-grid, .tier-grid, .client-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .meta-grid { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 60px 1fr; padding: 1.5rem; }
  .phase { grid-template-columns: 60px 1fr; }
  .rule { grid-template-columns: 50px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal, .reveal-left { opacity: 1 !important; transform: none !important; }
}
