/* ================= TOKENS ================= */
:root{
  --ink:#050b16;            /* page ground */
  --ink-2:#0a1220;          /* raised surfaces */
  --blue:#2e7df7;           /* primary */
  --blue-soft:#5b9dff;
  --blue-rgb:46,125,247;

  --sand:#e7c795;           /* warm accent, from the street lamps */
  --amber:#c2915a;
  --amber-deep:#6f4a24;
  --amber-rgb:226,187,133;

  --text:#eef3fa;
  --muted:#9aa9bd;
  --muted-dim:#6d7c92;
  --line:rgba(140,170,215,.14);

  --font:'Space Grotesk',system-ui,sans-serif;
  --font-display:'Chakra Petch',sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font);
  background:var(--ink);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow:hidden;                       /* single screen */
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.accent{color:var(--blue)}

.screen{
  position:relative;
  height:100dvh;
  display:grid;
  grid-template-rows:auto 1fr auto;      /* nav | hero | dock */
  overflow:hidden;
  padding:0 clamp(20px,3.2vw,58px);
}

/* ================= BACKGROUND ================= */
.bg{position:absolute;inset:0;z-index:0;overflow:hidden}
.bg-img{
  position:absolute;top:0;right:0;
  width:64%;height:100%;
  object-fit:cover;object-position:center;
  filter:saturate(1.02) brightness(.92);
}
/* dissolve the photo's left edge into the page ground */
.bg-fade{
  position:absolute;top:0;right:0;width:64%;height:100%;
  background:
    linear-gradient(90deg,var(--ink) 0%,rgba(5,11,22,.92) 14%,rgba(5,11,22,.35) 42%,transparent 70%),
    linear-gradient(180deg,rgba(5,11,22,.55) 0%,transparent 22%,transparent 72%,rgba(5,11,22,.75) 100%);
}
.bg-vignette{
  position:absolute;inset:0;
  background:radial-gradient(140% 110% at 78% 45%,transparent 30%,rgba(5,11,22,.55) 100%);
}

/* ================= WOVEN LIGHT ================= */
/* centred inside .stage, which owns the middle of the left half.
   Deliberately wider than the column — the radial mask fades the overflow. */
.weave{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(56vw,780px);
  aspect-ratio:1/1;
  pointer-events:none;
  -webkit-mask-image:radial-gradient(closest-side,#000 46%,transparent 92%);
          mask-image:radial-gradient(closest-side,#000 46%,transparent 92%);
  opacity:0;
  animation:fadeIn 1.8s .4s ease forwards;
}
.weave canvas{width:100%!important;height:100%!important;display:block}
@keyframes fadeIn{to{opacity:1}}

/* ================= NAV ================= */
.nav{
  position:relative;z-index:3;
  display:flex;align-items:center;
  height:clamp(76px,9vh,104px);
}
/* wordmark rebuilt as type: outlined caps + a ruled subtitle, blue bloom */
.logo{
  display:inline-flex;flex-direction:column;align-items:center;gap:.28em;
  font-family:var(--font-display);
  filter:drop-shadow(0 0 26px rgba(var(--blue-rgb),.35));
  transition:filter .3s ease;
}
.logo:hover{filter:drop-shadow(0 0 38px rgba(var(--blue-rgb),.6))}

.logo-main{
  font-size:clamp(22px,2.05vw,34px);
  font-weight:700;letter-spacing:.14em;line-height:1;
  color:transparent;
  -webkit-text-stroke:1.1px rgba(255,255,255,.92);
  text-shadow:0 0 18px rgba(255,255,255,.28);
  white-space:nowrap;
}
.logo-ai{
  -webkit-text-stroke:1.3px var(--blue-soft);
  text-shadow:0 0 22px rgba(var(--blue-rgb),.85);
}

.logo-sub{
  display:flex;align-items:center;gap:.7em;
  font-size:clamp(8.5px,.72vw,12px);
  font-weight:500;letter-spacing:.42em;text-transform:uppercase;
  color:var(--blue-soft);
  text-shadow:0 0 14px rgba(var(--blue-rgb),.7);
  padding-left:.42em;                       /* optical: last letter's tracking */
  white-space:nowrap;
}
.logo-sub i{
  width:clamp(14px,1.5vw,26px);height:1px;
  background:linear-gradient(90deg,transparent,var(--blue-soft));
}
.logo-sub i:last-child{background:linear-gradient(90deg,var(--blue-soft),transparent)}

/* ================= HERO ================= */
.hero{
  position:relative;z-index:2;
  display:flex;align-items:stretch;
  min-height:0;
}
/* the left half of the screen */
.hero-col{
  width:50%;
  display:flex;flex-direction:column;
  padding:clamp(4px,1.4vh,22px) 0 clamp(10px,2.4vh,34px);
  min-height:0;
}
.hero-col>*{opacity:0;animation:riseIn .9s cubic-bezier(.2,.65,.3,.9) forwards}
.hero-col>*:nth-child(1){animation-delay:.2s}
.hero-col>*:nth-child(2){animation-delay:.4s}
.hero-col>*:nth-child(3){animation-delay:.55s}
@keyframes riseIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}

/* ---- stage: particle field, with the copy stacked on top of it ---- */
.stage{
  position:relative;
  flex:1 1 auto;min-height:0;
  display:grid;place-items:center;
  margin:clamp(6px,1.6vh,20px) 0;
}
.stage-copy{
  position:relative;z-index:1;
  pointer-events:none;
  display:flex;flex-direction:column;align-items:center;
  gap:clamp(8px,1.6vh,20px);
  text-align:center;
}

/* ---- typed line: bottom of the column, centred in the left half ---- */
.typed{
  flex:0 0 auto;
  align-self:center;
  text-align:center;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(24px,2.8vw,44px);
  line-height:1.24;
  letter-spacing:.1em;
  text-transform:uppercase;
  min-height:2.5em;                       /* two lines reserved: no jump */
  margin-top:clamp(26px,5.2vh,66px);      /* pushed down, away from the knot */
  margin-bottom:clamp(2px,.5vh,7px);      /* tucked against the lead */
  text-shadow:0 0 40px rgba(5,11,22,.9),0 2px 24px rgba(5,11,22,.8);
}
.t-ai{
  background:linear-gradient(160deg,#f6e1bd 0%,var(--amber) 62%,var(--amber-deep) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 30px rgba(var(--amber-rgb),.35));
  font-weight:700;
}
.t-rest{color:#fff}
.t-rest:not(:empty){padding-left:.34em}
/* "AIParking" — identical face/weight/tracking to "AI POWERED BARRIER GATE",
   only the word-space is dropped so it reads as one wordmark */
.t-rest.as-logo:not(:empty){padding-left:0}

.caret{
  display:inline-block;
  width:3px;height:.95em;
  margin-left:.16em;vertical-align:-.12em;
  background:var(--sand);
  box-shadow:0 0 12px rgba(var(--amber-rgb),.8);
  animation:blink 1s steps(1) infinite;
}
.caret.typing{animation:none}
@keyframes blink{50%{opacity:0}}

/* ---- headline: centred over the particle field ---- */
.headline{
  font-size:clamp(40px,4.6vw,74px);
  font-weight:700;letter-spacing:-.025em;line-height:1.08;
  text-shadow:0 0 46px rgba(5,11,22,.92),0 2px 26px rgba(5,11,22,.8);
}

/* ---- lead: under the typed line, one line ---- */
.lead{
  flex:0 0 auto;
  align-self:center;
  text-align:center;
  color:var(--muted);
  font-size:clamp(11px,.86vw,15px);
  line-height:1.75;
  white-space:nowrap;                     /* one line, always */
}

/* ================= CTA (chamfered HUD panel) ================= */
@property --angle{syntax:'<angle>';initial-value:0deg;inherits:false}
@property --cut{syntax:'<length>';initial-value:16px;inherits:true}

.cta{
  --cut:16px;
  position:absolute;z-index:2;
  right:clamp(20px,17vw,300px);
  bottom:clamp(14px,4vh,44px);
  display:inline-flex;
  isolation:isolate;
  opacity:0;
  animation:fadeIn .9s 1.5s ease forwards;
  transition:transform .35s cubic-bezier(.2,.65,.3,.9),--cut .35s ease;
}
.cta:hover{transform:translateY(-3px);--cut:22px}
.cta:active{transform:translateY(-1px)}

.cta-frame{
  --angle:0deg;
  display:inline-flex;
  padding:1.5px;                     /* this ring of background *is* the border */
  clip-path:polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
  background:
    conic-gradient(from var(--angle),
      transparent 0%,
      rgba(255,255,255,.85) 8%,
      rgba(var(--amber-rgb),.6) 18%,
      transparent 34%,
      transparent 58%,
      rgba(var(--amber-rgb),.85) 72%,
      rgba(255,255,255,.6) 80%,
      transparent 92%);
  animation:spinBorder 5s linear infinite;
}
@keyframes spinBorder{to{--angle:360deg}}

.cta-face{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;gap:20px;
  padding:11px 12px 11px 0;
  clip-path:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 60%),rgba(4,12,24,.8);
  backdrop-filter:blur(16px);
  transition:background .35s ease;
}
.cta:hover .cta-face{background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,0) 60%),rgba(4,12,24,.62)}

.cta-bar{
  width:4px;align-self:stretch;
  background:linear-gradient(180deg,var(--sand),var(--amber));
  box-shadow:0 0 18px rgba(var(--amber-rgb),.6);
  transition:width .35s cubic-bezier(.2,.65,.3,.9);
}
.cta:hover .cta-bar{width:7px}

.cta-body{
  position:relative;z-index:1;
  display:flex;flex-direction:column;align-items:flex-start;gap:1px;
  padding-left:20px;
}
.cta-kicker{
  font-family:var(--font-display);
  font-size:10.5px;font-weight:600;letter-spacing:.26em;
  color:var(--sand);line-height:1;opacity:.85;
}
.cta-text{font-size:15px;font-weight:600;color:#fff;line-height:1.35;white-space:nowrap}

.cta-face::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.18) 50%,transparent 65%);
  transform:translateX(-120%);
  transition:transform .85s cubic-bezier(.2,.65,.3,.9);
}
.cta:hover .cta-face::after{transform:translateX(120%)}

.cta-chip{
  position:relative;z-index:1;overflow:hidden;
  display:grid;place-items:center;
  width:36px;height:36px;
  clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  background:linear-gradient(140deg,rgba(255,255,255,.14),rgba(255,255,255,.03));
  outline:1px solid rgba(255,255,255,.14);outline-offset:-1px;
  transition:background .35s ease;
}
.cta:hover .cta-chip{background:linear-gradient(140deg,rgba(var(--amber-rgb),.34),rgba(var(--amber-rgb),.1))}
.cta-chip svg{
  grid-area:1/1;width:16px;height:16px;
  fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .4s cubic-bezier(.2,.65,.3,.9);
}
.cta-chip svg:nth-child(2){transform:translateX(-150%)}
.cta:hover .cta-chip svg:nth-child(1){transform:translateX(150%)}
.cta:hover .cta-chip svg:nth-child(2){transform:translateX(0)}

/* brackets on the two square corners (the cut corners have no corner) */
.cta-tick{
  position:absolute;width:11px;height:11px;z-index:2;pointer-events:none;
  border:1px solid var(--sand);opacity:.5;
  transition:opacity .35s ease,transform .35s ease;
}
.tick-tr{top:-5px;right:-5px;border-left:0;border-bottom:0}
.tick-bl{bottom:-5px;left:-5px;border-right:0;border-top:0}
.cta:hover .cta-tick{opacity:1}
.cta:hover .tick-tr{transform:translate(3px,-3px)}
.cta:hover .tick-bl{transform:translate(-3px,3px)}

.cta-glow{
  position:absolute;inset:-3px;z-index:-1;
  background:radial-gradient(60% 130% at 50% 50%,rgba(var(--amber-rgb),.42),transparent 70%);
  filter:blur(16px);
  opacity:.5;transition:opacity .35s ease;
}
.cta:hover .cta-glow{opacity:1}

/* ================= FEATURE DOCK ================= */
.dock{
  position:relative;z-index:2;
  margin-bottom:clamp(14px,2.6vh,30px);
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(16,26,44,.72),rgba(8,15,28,.72));
  backdrop-filter:blur(10px);
  opacity:0;
  animation:riseIn .9s .9s cubic-bezier(.2,.65,.3,.9) forwards;
}
.dock-list{
  display:flex;justify-content:space-between;flex-wrap:wrap;
  gap:14px clamp(16px,2vw,40px);
  padding:clamp(14px,2.2vh,24px) clamp(20px,3vw,54px);
}
.dock-list li{
  display:flex;align-items:center;gap:12px;
  font-size:clamp(13.5px,1.02vw,16px);color:#dbe3ee;
  transition:color .25s;
}
.dock-list li svg{
  width:22px;height:22px;flex:0 0 auto;
  fill:none;stroke:#c3cede;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .25s;
}
.dock-list li:hover{color:#fff}
.dock-list li:hover svg{stroke:var(--blue)}

/* ================= RESPONSIVE ================= */
@media(max-width:1180px){
  .hero-col{width:58%}
  .cta{right:clamp(16px,4vw,60px)}
}

@media(max-width:900px){
  body{overflow:auto}
  .screen{height:auto;min-height:100dvh}
  .bg-img,.bg-fade{width:100%}
  .bg-fade{background:linear-gradient(180deg,rgba(5,11,22,.86) 0%,rgba(5,11,22,.7) 40%,rgba(5,11,22,.95) 100%)}
  .hero{padding:20px 0 40px;flex-direction:column;align-items:flex-start}
  .hero-col{width:100%}
  .lead{white-space:normal;font-size:15px}
  .cta{position:static;margin:34px auto 0;display:inline-flex}
  .stage{min-height:76vw;margin:26px 0 30px}
  .weave{width:min(120vw,640px)}
  .dock-list{justify-content:flex-start;gap:16px 26px}
}

@media(max-height:700px) and (min-width:901px){
  .typed{font-size:clamp(20px,2.2vw,32px);margin-top:clamp(14px,2.4vh,26px)}
  .headline{font-size:clamp(32px,3.6vw,52px)}
  .weave{width:min(44vw,580px)}
}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .hero-col>*,.weave,.cta,.dock{opacity:1}
  .caret{display:none}
}
