/* ===================================================================
   KH BUILDMART — Coming Soon
   Design tokens
=================================================================== */
:root{
  --navy: #15355E;
  --navy-light: #2C5488;
  --orange: #E37725;
  --orange-light: #F5934C;

  --bg: #0B0D10;
  --bg-elev: #13171C;
  --bg-elev-2: #191F26;

  --ink: #F4F5F6;
  --ink-soft: #A9B0B8;
  --ink-faint: #6B7480;

  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);

  --bp-grid: rgba(255,255,255,.05);
  --bp-line: rgba(255,255,255,.34);
  --bp-accent: var(--orange);
  --bp-dim: rgba(255,255,255,.30);

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-frame{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

::selection{ background: var(--orange); color: #fff; }

:focus-visible{
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   Status dot
=================================================================== */
.status-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  position: relative;
  flex: none;
}
.status-dot::after{
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  opacity: .55;
  animation: dotPulse 2.4s var(--ease) infinite;
}
@keyframes dotPulse{
  0%{ transform: scale(.6); opacity: .7; }
  70%{ transform: scale(1.9); opacity: 0; }
  100%{ opacity: 0; }
}

/* ===================================================================
   Header
=================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,13,16,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-mark{ display: inline-flex; align-items: center; }
.brand-logo{ height: 34px; width: auto; display: block; }

.nav-links{ gap: 2rem; }

.nav-status{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}

.nav-link-item{
  font-size: .9rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav-link-item:hover{ color: var(--ink); }

.nav-link-cta{
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: .5rem 1.1rem;
  border-radius: 100px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-link-cta:hover{
  border-color: var(--orange);
  background: rgba(227,119,37,.08);
}

.nav-link-mobile{
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--ink);
}

/* ===================================================================
   Hero
=================================================================== */
.hero-section{
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid{
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 30%, black 10%, transparent 75%);
}
.hero-glow{
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(227,119,37,.14) 0%, rgba(21,53,94,.10) 45%, transparent 72%);
  filter: blur(10px);
  animation: glowDrift 16s var(--ease) infinite alternate;
}
@keyframes glowDrift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-4%, 4%) scale(1.08); }
}

.hero-row{ position: relative; z-index: 1; }

.hero-left{ padding-block: 1.5rem; }

.pill-badge{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.03);
  margin-bottom: 1.5rem;
}

.brand-eyebrow{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--orange-light);
  font-size: clamp(.95rem, 1vw, 1.05rem);
  margin-bottom: .6rem;
}

.hero-headline{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-copy{
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  max-width: 46ch;
  margin-bottom: 2.1rem;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.2rem;
}

/* Buttons */
.btn-premium{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .94rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-premium i{ font-size: 1rem; }

.btn-premium-primary{
  background: linear-gradient(135deg, var(--orange) 0%, #C7631A 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(227,119,37,.55);
}
.btn-premium-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(227,119,37,.65);
  color: #fff;
}

.btn-premium-outline{
  background: rgba(255,255,255,.02);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-premium-outline:hover{
  border-color: var(--ink-soft);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-premium-ghost{
  background: var(--navy);
  color: #fff;
  padding: .85rem 1.4rem;
}
.btn-premium-ghost:hover{
  background: var(--navy-light);
  transform: translateY(-2px);
  color: #fff;
}

/* Inline contact */
.contact-inline{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-block: 1.4rem;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-inline-item{ display: flex; flex-direction: column; gap: .15rem; }
.contact-inline-label{
  font-size: .72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-inline-item a{
  font-size: .95rem;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.contact-inline-item a:hover{ color: var(--orange-light); }
.contact-inline-divider{
  width: 1px;
  height: 30px;
  background: var(--line-strong);
}

/* Notify form */
.notify-block{
  padding-top: .3rem;
  max-width: 440px;
}
.notify-label{
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.notify-form{
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.notify-input{
  flex: 1 1 auto;
  min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  color: var(--ink);
  font-size: .92rem;
  font-family: var(--font-body);
  transition: border-color .2s var(--ease);
}
.notify-input::placeholder{ color: var(--ink-faint); }
.notify-input:focus{
  outline: none;
  border-color: var(--orange);
}
.notify-input.is-invalid{ border-color: #d9534f; }

.notify-submit{ flex: 0 0 auto; }

.notify-feedback{
  font-size: .84rem;
  margin-top: .7rem;
  min-height: 1.2em;
}
.notify-feedback.success{ color: #6fcf97; }
.notify-feedback.error{ color: #e08a86; }

/* ===================================================================
   Blueprint visual (right side)
=================================================================== */
.hero-right{
  display: flex;
  justify-content: center;
  padding-block: 2rem;
}

.blueprint-frame{
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(21,53,94,.35), rgba(19,23,28,.5));
  backdrop-filter: blur(6px);
  padding: 1.4rem;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.7);
}

.blueprint-coords{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ink-faint);
  margin-bottom: .4rem;
}

.blueprint-svg{ width: 100%; height: auto; display: block; }

.bp-grid{ opacity: .5; }

.bp-draw{
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: bpDraw 2.6s var(--ease) forwards;
}
.bp-d1{ animation-delay: .2s; }
.bp-d2{ animation-delay: .5s; }
.bp-d3{ animation-delay: .7s; }
.bp-d4{ animation-delay: .9s; }
.bp-d5{ animation-delay: 1s; }
.bp-d6{ animation-delay: .35s; }
@keyframes bpDraw{
  to{ stroke-dashoffset: 0; }
}

.bp-node{
  fill: var(--bg-elev);
  stroke: var(--orange);
  stroke-width: 2;
  opacity: 0;
  animation: bpNode .5s var(--ease) forwards;
  animation-delay: 1.7s;
}
@keyframes bpNode{
  to{ opacity: 1; }
}

.bp-dim{ opacity: .55; }
.bp-label{ font-size: 11px; font-family: var(--font-body); letter-spacing: .05em; opacity: .55; }

.blueprint-badge{
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  right: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: var(--ink-soft);
  padding: .6rem .9rem;
  border-radius: 10px;
  background: rgba(11,13,16,.6);
  border: 1px solid var(--line);
  width: fit-content;
}

/* ===================================================================
   Reveal animation (single orchestrated load sequence)
=================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible{
  animation: revealUp .8s var(--ease) forwards;
}
.reveal-1.is-visible{ animation-delay: .05s; }
.reveal-2.is-visible{ animation-delay: .15s; }
.reveal-3.is-visible{ animation-delay: .25s; }
.reveal-4.is-visible{ animation-delay: .35s; }
.reveal-5.is-visible{ animation-delay: .45s; }
.reveal-6.is-visible{ animation-delay: .55s; }
@keyframes revealUp{
  to{ opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   Footer
=================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-logo{ height: 26px; width: auto; opacity: .9; }
.footer-contact{
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--ink-soft);
}
.footer-contact a{ display: inline-flex; align-items: center; gap: .45rem; transition: color .2s var(--ease); }
.footer-contact a:hover{ color: var(--orange-light); }
.footer-copy{
  font-size: .82rem;
  color: var(--ink-faint);
  margin: 0;
  width: 100%;
  order: 3;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px){
  .footer-copy{ width: auto; order: 0; border-top: none; padding-top: 0; }
}

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 991.98px){
  .hero-right{ order: -1; }
  .blueprint-frame{ max-width: 380px; margin-inline: auto; }
  .hero-left{ text-align: left; }
  .contact-inline{ gap: .9rem; }
}

@media (max-width: 575.98px){
  .blueprint-frame{ max-width: 300px; padding: 1rem; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .btn-premium{ justify-content: center; }
  .notify-form{ flex-direction: column; }
  .notify-input{ min-width: 0; }
  .notify-submit{ width: 100%; justify-content: center; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   Reduced motion
=================================================================== */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .bp-draw{ stroke-dashoffset: 0; }
  .bp-node{ opacity: 1; }
}
