/* ==========================================================================
   TECHOXI — Blueprint / CAD-inspired industrial design system
   ========================================================================== */

:root{
  --bg:            #14181B;
  --bg-panel:      #1A1F23;
  --blueprint:     #0F3A5C;
  --blueprint-2:   #123F63;
  --accent:        #F2A900;
  --accent-dim:    #B87F12;
  --steel:         #8A97A0;
  --steel-dim:     #5A656C;
  --paper:         #ECE8E1;
  --paper-dim:     #C7C3BB;
  --line:          rgba(236,232,225,0.10);
  --line-strong:   rgba(236,232,225,0.22);

  --font-display: 'Oswald', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

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

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
img,svg{ display:block; max-width:100%; }

::selection{ background: var(--accent); color: #1B1F23; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Blueprint grid background ---------- */
.blueprint-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 120% 70% at 50% 0%, black 40%, transparent 85%);
}

main, header, footer{ position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.section{
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px;
}
.section-alt{ background: linear-gradient(180deg, transparent, rgba(15,58,92,0.15) 15%, rgba(15,58,92,0.15) 85%, transparent); max-width: none; }
.section-alt > *{ max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-head{ max-width: 640px; margin-bottom: 64px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow-dot{
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(242,169,0,0.18);
  flex-shrink: 0;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--paper);
}

.section-desc{
  color: var(--steel);
  font-size: 16px;
  max-width: 52ch;
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary{
  background: var(--accent);
  color: #1B1400;
  font-weight: 500;
}
.btn-primary:hover{ transform: translateY(-2px); background: #FFBB1A; }

.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(20,24,27,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.header-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{ display: flex; align-items: center; gap: 12px; }
.brand-mark{ color: var(--accent); display:flex; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; }
.brand-name{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-sub{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--steel);
}

.main-nav{ display: flex; align-items: center; gap: 36px; }
.main-nav a{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a:not(.nav-cta):hover{ color: var(--accent); }
.main-nav a:not(.nav-cta)::after{
  content:'';
  position: absolute; left:0; bottom:0;
  width:0; height:1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after{ width: 100%; }

.nav-cta{
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  text-transform: uppercase;
  font-size: 12px;
}
.nav-cta:hover{ background: var(--accent); color: #1B1400 !important; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 24px; height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.corner-frame{ position: absolute; inset: 24px; pointer-events: none; }
.cf{ position: absolute; width: 22px; height: 22px; border-color: var(--steel-dim); }
.cf.tl{ top:0; left:0; border-top:1px solid; border-left:1px solid; }
.cf.tr{ top:0; right:0; border-top:1px solid; border-right:1px solid; }
.cf.bl{ bottom:0; left:0; border-bottom:1px solid; border-left:1px solid; }
.cf.br{ bottom:0; right:0; border-bottom:1px solid; border-right:1px solid; }

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-title{
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.outline-text{
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero-desc{
  color: var(--steel);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero-actions{ display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-meta{ display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.meta-item{ display: flex; flex-direction: column; gap: 4px; }
.meta-num{
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
}
.meta-num small{ font-size: 12px; color: var(--steel); margin-left: 2px; }
.meta-label{
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.meta-divider{ width: 1px; height: 32px; background: var(--line-strong); }

.hero-drawing{
  position: relative;
  color: var(--steel);
  aspect-ratio: 1/1;
}
#blueprintSvg{ width: 100%; height: 100%; }
#blueprintSvg text{
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--accent);
  stroke: none;
}
#blueprintSvg text.small{ font-size: 9px; fill: var(--steel); }

.draw-path{
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.6s var(--ease) forwards;
}
.draw-path:nth-of-type(2){ animation-delay: 0.2s; }
.draw-path:nth-of-type(3){ animation-delay: 0.5s; }
.dim-lines{ animation-delay: 1.4s !important; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }

#blueprintSvg text{
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) forwards;
  animation-delay: 1.8s;
}
#blueprintSvg text.small{ animation-delay: 2.1s; }
@keyframes fadeIn{ to{ opacity: 1; } }

.crosshair{
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.crosshair::before, .crosshair::after{
  content:'';
  position: absolute;
  background: var(--accent);
}
.crosshair::before{ width: 1px; height: 8px; left: 50%; top: -10px; transform: translateX(-50%); }
.crosshair::after{ width: 8px; height: 1px; top: 50%; left: -10px; transform: translateY(-50%); }
.hero-drawing:hover .crosshair{ opacity: 0.7; }

.scroll-cue{
  position: absolute;
  bottom: 28px; left: 32px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel-dim);
}
.scroll-cue span{
  width: 1px; height: 26px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{ 0%,100%{ transform: scaleY(1); opacity:1;} 50%{ transform: scaleY(0.4); opacity:0.4; } }

/* ==========================================================================
   MARQUEE STRIP
   ========================================================================== */
.strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
  padding: 18px 0;
}
.strip-track{
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--steel);
}
.strip-track span:nth-child(2n){ color: var(--accent-dim); }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */
.cap-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cap-card{
  background: var(--bg);
  padding: 36px 28px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.cap-card:hover{ background: var(--bg-panel); }
.cap-code{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.cap-icon{ width: 40px; height: 40px; color: var(--accent); margin-bottom: 22px; }
.cap-card h3{
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.cap-card p{ color: var(--steel); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-line{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-line::before{
  content:'';
  position: absolute;
  top: 24px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.process-step{ padding: 0 24px 0 0; position: relative; }
.ps-top{ display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; position: relative; z-index: 1; }
.ps-num{
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--accent);
  background: var(--bg);
  padding-right: 4px;
}
.ps-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel-dim);
  background: var(--bg);
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.process-step h3{
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.process-step p{ color: var(--steel); font-size: 14.5px; margin:0; }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.product-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-card:hover{ border-color: var(--accent-dim); transform: translateY(-4px); }
.product-art{
  width: 96px; height: 96px;
  margin: 0 auto 20px;
  color: var(--steel);
  transition: color 0.3s;
}
.product-card:hover .product-art{ color: var(--accent); }
.product-card h3{
  font-family: var(--font-display);
  font-size: 17px;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.product-spec{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--steel-dim);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industry-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 72px;
}
.industry-chip{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  color: var(--paper-dim);
  transition: border-color 0.3s, color 0.3s;
}
.industry-chip:hover{ border-color: var(--accent); color: var(--accent); }

.stat-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.stat-block{ display: flex; flex-direction: column; gap: 6px; }
.stat-num{
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}
.stat-unit{ font-family: var(--font-mono); font-size: 24px; color: var(--accent); margin-left: -8px; }
.stat-label{ color: var(--steel); font-size: 13.5px; margin-top: 8px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-details{ margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-details li{ display: flex; flex-direction: column; gap: 4px; color: var(--steel); font-size: 14.5px; }
.contact-details strong{ color: var(--paper); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.contact-form{ display: flex; flex-direction: column; gap: 18px; }
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.form-row input, .form-row textarea{
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.25s;
}
.form-row input:focus, .form-row textarea:focus{
  border-color: var(--accent);
  outline: none;
}
.form-row input::placeholder, .form-row textarea::placeholder{ color: var(--steel-dim); }
.form-submit{ margin-top: 8px; align-self: flex-start; }
.form-note{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  min-height: 18px;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ border-top: 1px solid var(--line); background: var(--bg-panel); }
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand{ max-width: 320px; }
.footer-brand p{ color: var(--steel); font-size: 14px; margin-top: 12px; }
.footer-links{ display: flex; gap: 64px; }
.footer-links h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 16px;
}
.footer-links a{ display: block; color: var(--paper-dim); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover{ color: var(--accent); }

.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-dim);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-drawing{ max-width: 380px; margin: 0 auto; order: -1; }
  .cap-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-line{ grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process-line::before{ display: none; }
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-strip{ grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .main-nav{
    position: fixed;
    top: 71px; left: 0; right: 0;
    background: rgba(20,24,27,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 32px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .main-nav.open{ transform: translateY(0); opacity: 1; }
  .main-nav a{ padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child{ border-bottom: none; }
  .nav-cta{ margin-top: 8px; text-align: center; }
  .nav-toggle{ display: flex; }

  .hero{ padding-top: 120px; }
  .hero-meta{ gap: 16px; }
  .meta-divider{ display: none; }

  .cap-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: 1fr; }
  .process-line{ grid-template-columns: 1fr; }
  .section{ padding: 80px 24px; }
}
