/* ─────────────────────────────────────────────────────────────
   PT AXION SAN VIRE — Main Stylesheet
   Fonts: Space Grotesk (sans) + Space Mono (mono) via Google Fonts
   ───────────────────────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d1220;
  --bg-alt:       #0b0f1c;
  --bg-card:      #111827;
  --fg:           #c8d4e8;
  --fg-muted:     #6b7f9e;
  --cyan:         #00d4ff;
  --cyan-dim:     rgba(0,212,255,.08);
  --cyan-border:  rgba(0,212,255,.22);
  --amber:        #f0a840;
  --border:       #1e2d42;
  --radius:       8px;
  --font-sans:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-sans);
  background:  var(--bg);
  color:       var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a       { color: inherit; text-decoration: none; }
button  { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
address { font-style: normal; }

/* ── Utility classes ── */
.mono    { font-family: var(--font-mono); }
.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 40px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.label {
  font-family:     var(--font-mono);
  font-size:       .65rem;
  letter-spacing:  .18em;
  text-transform:  uppercase;
  color:           var(--cyan);
}

.section-rule {
  display:     flex;
  align-items: center;
  gap:         12px;
  margin-bottom: 16px;
}
.section-rule .line {
  display:    block;
  height:     1px;
  width:      40px;
  background: var(--cyan);
}
.section-rule.center { justify-content: center; }

.accent-line-h {
  height:     1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,.4), transparent);
}

.grid-lines {
  background-image:
    linear-gradient(rgba(30,45,66,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,45,66,.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Buttons ── */
.btn-primary {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       12px 26px;
  font-family:   var(--font-sans);
  font-weight:   600;
  font-size:     .875rem;
  background:    var(--cyan);
  color:         var(--bg);
  border-radius: var(--radius);
  transition:    background .2s, box-shadow .2s;
  box-shadow:    0 0 20px rgba(0,212,255,.3), 0 0 60px rgba(0,212,255,.1);
}
.btn-primary:hover { background: #33deff; }

.btn-outline {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       12px 26px;
  font-family:   var(--font-sans);
  font-weight:   600;
  font-size:     .875rem;
  border:        1px solid rgba(0,212,255,.35);
  color:         var(--cyan);
  border-radius: var(--radius);
  transition:    background .2s;
}
.btn-outline:hover { background: rgba(0,212,255,.07); }

/* ── Card base ── */
.card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  transition:    border-color .2s;
}
.card:hover { border-color: rgba(0,212,255,.35); }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
#navbar {
  position:   fixed;
  top: 0; left: 0; right: 0;
  z-index:    100;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#navbar.scrolled {
  background:     rgba(13,18,32,.92);
  backdrop-filter: blur(20px);
  border-bottom:  1px solid var(--border);
  box-shadow:     0 4px 24px rgba(0,0,0,.4);
}
.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  height:          64px;
}
.nav-logo {
  display:     flex;
  align-items: center;
  gap:         12px;
}
.nav-logo-text    { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-pt      { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.nav-logo-name    { font-size: .875rem; font-weight: 700; letter-spacing: .05em; }
.nav-links        { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size:    .875rem;
  font-weight:  500;
  color:        var(--fg-muted);
  transition:   color .2s;
  position:     relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content:    '';
  position:   absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width .3s;
}
.nav-links a:hover           { color: var(--cyan); }
.nav-links a:hover::after    { width: 100%; }
.nav-cta  { margin-left: 8px; }

/* Hamburger */
#hamburger {
  display:         none;
  flex-direction:  column;
  gap:             5px;
  padding:         8px;
}
#hamburger span {
  display:    block;
  width:      22px;
  height:     1.5px;
  background: var(--fg);
  transition: .3s;
}

/* Mobile menu */
#mobile-menu {
  display:  none;
  position: fixed;
  inset:    0;
  z-index:  99;
}
#mobile-menu.open { display: block; }
.mm-backdrop {
  position: absolute;
  inset:    0;
  background:      rgba(13,18,32,.6);
  backdrop-filter: blur(4px);
}
.mm-panel {
  position:       absolute;
  right: 0; top: 0; bottom: 0;
  width:          280px;
  background:     var(--bg-card);
  border-left:    1px solid var(--border);
  display:        flex;
  flex-direction: column;
  padding:        80px 32px 32px;
  gap:            24px;
}
.mm-panel a { font-size: 1.1rem; font-weight: 500; color: var(--fg); transition: color .2s; }
.mm-panel a:hover { color: var(--cyan); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  #hamburger            { display: flex; }
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position:   relative;
  min-height: 100vh;
  display:    flex;
  align-items: center;
  overflow:   hidden;
  background: var(--bg);
}
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-circuit {
  position:  absolute;
  right: 0;
  top:   50%;
  transform: translateY(-50%);
  width:     380px;
  height:    380px;
  opacity:   .09;
  pointer-events: none;
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height:   120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-content {
  position:  relative;
  z-index:   10;
  padding:   120px 0 80px;
  max-width: 720px;
}
.hero-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       6px 14px;
  border-radius: 9999px;
  border:        1px solid rgba(0,212,255,.3);
  background:    rgba(0,212,255,.06);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation:  pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-h1 {
  font-size:       clamp(2.8rem, 6vw, 5rem);
  font-weight:     700;
  line-height:     1.08;
  letter-spacing:  -.02em;
  margin-bottom:   24px;
}
.hero-h1 .cyan {
  color:       var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,.5);
}
.hero-sub {
  font-size:     1.1rem;
  color:         var(--fg-muted);
  line-height:   1.7;
  max-width:     520px;
  margin-bottom: 40px;
}
.hero-ctas {
  display:       flex;
  flex-wrap:     wrap;
  gap:           16px;
  margin-bottom: 64px;
}
.hero-stats {
  display:     flex;
  flex-wrap:   wrap;
  gap:         32px;
  border-top:  1px solid rgba(255,255,255,.07);
  padding-top: 32px;
}
.hero-stat-val { font-size: 1.2rem; font-weight: 700; color: var(--fg); }
.hero-stat-lbl {
  font-family:    var(--font-mono);
  font-size:      .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color:          var(--fg-muted);
  margin-top:     2px;
}

.scroll-cue {
  position:       absolute;
  bottom:         32px;
  left:           50%;
  transform:      translateX(-50%);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  color:          var(--fg-muted);
  transition:     color .2s;
  font-size:      .75rem;
  font-family:    var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-arrow { animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  position: relative;
  padding:  112px 0;
  background: var(--bg);
  overflow: hidden;
}
.about-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   64px;
  align-items:           center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-visual {
  position:      relative;
  height:        440px;
  border-radius: var(--radius);
  border:        1px solid var(--border);
  overflow:      hidden;
  background:    #0e1627;
}
.about-visual img,
.about-visual svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .about-visual { height: 300px; } }

.about-h2 {
  font-size:     clamp(2rem, 4vw, 3rem);
  font-weight:   700;
  line-height:   1.15;
  margin-bottom: 24px;
}
.about-h2 .cyan { color: var(--cyan); }
.about-body           { color: var(--fg-muted); line-height: 1.75; }
.about-body p + p     { margin-top: 16px; }

.about-chips {
  display:               grid;
  grid-template-columns: repeat(3,1fr);
  gap:                   12px;
  margin-top:            40px;
}
@media (max-width: 560px) { .about-chips { grid-template-columns: 1fr; } }

.chip {
  display:       flex;
  align-items:   flex-start;
  gap:           10px;
  padding:       14px;
  border-radius: var(--radius);
  border:        1px solid var(--border);
  background:    var(--bg-card);
  transition:    border-color .2s;
}
.chip:hover     { border-color: rgba(0,212,255,.35); }
.chip-icon      { color: var(--cyan); margin-top: 2px; flex-shrink: 0; }
.chip-label     { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.chip-val       { font-size: .875rem; font-weight: 600; color: var(--fg); margin-top: 2px; }

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  position:  relative;
  padding:   112px 0;
  background: var(--bg-alt);
  overflow:  hidden;
}
.services-header  { text-align: center; margin-bottom: 64px; }
.services-h2      { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: 16px; }
.services-sub     { color: var(--fg-muted); max-width: 480px; margin: 0 auto; line-height: 1.7; }

.services-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   24px;
}
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position:      relative;
  padding:       32px;
  border-radius: var(--radius);
  border:        1px solid var(--border);
  background:    var(--bg-card);
  overflow:      hidden;
  transition:    border-color .3s;
}
.svc-card:hover { border-color: rgba(0,212,255,.35); }
.svc-card::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 100%;
  height:     2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  transition: right .5s;
}
.svc-card:hover::before { right: 0; }
.svc-card.amber::before { background: linear-gradient(to right, var(--amber), transparent); }

.svc-icon   { margin-bottom: 20px; }
.svc-title  { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.svc-desc   { font-size: .875rem; color: var(--fg-muted); line-height: 1.75; }
.svc-more   { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.svc-more-line { height: 1px; width: 24px; background: var(--cyan); opacity: .6; }
.svc-more-lbl  {
  font-family:    var(--font-mono);
  font-size:      .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:          var(--cyan);
  opacity:        .8;
}
.svc-card.amber .svc-more-line { background: var(--amber); }
.svc-card.amber .svc-more-lbl  { color: var(--amber); }

/* ═══════════════════════════════════════════════
   WHY AXION
═══════════════════════════════════════════════ */
#why-axion {
  position:  relative;
  padding:   112px 0;
  background: var(--bg);
  overflow:  hidden;
}
.why-header   { max-width: 580px; margin-bottom: 64px; }
.why-h2       { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: 16px; }
.why-sub      { color: var(--fg-muted); line-height: 1.7; }

.pillars-grid {
  display:               grid;
  grid-template-columns: repeat(4,1fr);
  gap:                   24px;
}
@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:  560px) { .pillars-grid { grid-template-columns: 1fr; } }

.pillar {
  position:       relative;
  display:        flex;
  flex-direction: column;
  padding:        28px;
  border-radius:  var(--radius);
  border:         1px solid var(--border);
  background:     var(--bg-card);
  overflow:       hidden;
  transition:     border-color .3s;
}
.pillar:hover { border-color: rgba(0,212,255,.3); }
.pillar::before {
  content:    '';
  position:   absolute;
  top: 0; left: 0; right: 0;
  height:     2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  opacity:    0;
  transition: opacity .4s;
}
.pillar:hover::before       { opacity: 1; }
.pillar.amber::before       { background: linear-gradient(to right, var(--amber), transparent); }

.pillar-icon-wrap {
  width:         48px;
  height:        48px;
  border-radius: var(--radius);
  display:       flex;
  align-items:   center;
  justify-content: center;
  background:    rgba(0,212,255,.1);
  border:        1px solid rgba(0,212,255,.2);
  margin-bottom: 20px;
  transition:    transform .3s;
}
.pillar:hover .pillar-icon-wrap { transform: scale(1.1); }
.pillar.amber .pillar-icon-wrap {
  background:  rgba(240,168,64,.1);
  border-color: rgba(240,168,64,.2);
}

.pillar-num {
  position:   absolute;
  bottom:     16px;
  right:      20px;
  font-size:  2.5rem;
  font-weight: 900;
  color:      var(--cyan);
  opacity:    .04;
  font-family: var(--font-mono);
  user-select: none;
}
.pillar.amber .pillar-num { color: var(--amber); }

.pillar-title { font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.pillar-body  { font-size: .8125rem; color: var(--fg-muted); line-height: 1.75; flex: 1; }

.cta-strip {
  margin-top:      64px;
  padding:         32px;
  border-radius:   var(--radius);
  border:          1px solid rgba(0,212,255,.25);
  background:      rgba(0,212,255,.04);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             24px;
  flex-wrap:       wrap;
}
.cta-strip-text p:first-child { font-weight: 600; font-size: 1.05rem; }
.cta-strip-text p:last-child  { font-size: .875rem; color: var(--fg-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  position:  relative;
  padding:   112px 0;
  background: var(--bg-alt);
  overflow:  hidden;
}
.contact-header   { text-align: center; margin-bottom: 64px; }
.contact-h2       { font-size: clamp(2rem,4vw,3rem); font-weight: 700; margin-bottom: 16px; }
.contact-sub      { color: var(--fg-muted); max-width: 440px; margin: 0 auto; line-height: 1.7; }

.contact-grid {
  display:               grid;
  grid-template-columns: 2fr 3fr;
  gap:                   40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.info-card        { padding: 24px; }
.info-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.info-icon {
  width:         36px;
  height:        36px;
  border-radius: 6px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  background:    rgba(0,212,255,.1);
  border:        1px solid rgba(0,212,255,.2);
}
.info-icon svg { width: 16px; height: 16px; }
.info-title    { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); }
.info-val      { font-size: 1rem; font-weight: 600; transition: color .2s; }
.info-val:hover { color: var(--cyan); }
.info-note     { font-size: .8rem; color: var(--fg-muted); margin-top: 4px; }
.info-addr     { font-size: .875rem; color: var(--fg); line-height: 1.7; }

.map-card     { flex: 1; min-height: 128px; overflow: hidden; }
.map-card svg { width: 100%; height: 100%; }

/* Contact form */
.form-wrap { padding: 32px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field         { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label   {
  font-family:    var(--font-mono);
  font-size:      .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color:          var(--fg-muted);
}
.form-field input,
.form-field textarea {
  width:         100%;
  padding:       12px 16px;
  background:    var(--bg-alt);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  color:         var(--fg);
  font-family:   var(--font-sans);
  font-size:     .875rem;
  transition:    border-color .2s, box-shadow .2s;
  outline:       none;
  resize:        none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-muted); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0,212,255,.6);
  box-shadow:   0 0 0 3px rgba(0,212,255,.12);
}

.form-note     { font-size: .75rem; color: var(--fg-muted); margin-bottom: 20px; }
.form-note a   { color: var(--cyan); }
.form-note a:hover { text-decoration: underline; }

#submit-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       12px 32px;
  font-family:   var(--font-sans);
  font-weight:   600;
  font-size:     .875rem;
  background:    var(--cyan);
  color:         var(--bg);
  border-radius: var(--radius);
  transition:    background .2s;
  box-shadow:    0 0 20px rgba(0,212,255,.25);
}
#submit-btn:hover    { background: #33deff; }
#submit-btn:disabled { opacity: .6; cursor: not-allowed; }

#success-msg {
  display:         none;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  min-height:      320px;
  gap:             16px;
  text-align:      center;
  padding:         32px;
}
#success-msg.shown  { display: flex; }
#success-msg svg    { color: var(--cyan); }
#success-msg h3     { font-size: 1.3rem; font-weight: 700; }
#success-msg p      { color: var(--fg-muted); max-width: 300px; font-size: .875rem; line-height: 1.7; }
#success-msg button { font-size: .875rem; color: var(--cyan); }
#success-msg button:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer            { background: #080d18; border-top: 1px solid var(--border); }
.footer-inner     { padding: 56px 0 0; }
.footer-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-tag    { font-size: .875rem; color: var(--fg-muted); line-height: 1.7; margin-top: 16px; }
.footer-col-title    {
  font-family:    var(--font-mono);
  font-size:      .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:          var(--cyan);
  margin-bottom:  16px;
}
.footer-nav-list          { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a        { font-size: .875rem; color: var(--fg-muted); transition: color .2s; }
.footer-nav-list a:hover  { color: var(--cyan); }

.footer-contact-item {
  display:     flex;
  align-items: flex-start;
  gap:         8px;
  font-size:   .875rem;
  color:       var(--fg-muted);
  margin-bottom: 14px;
}
.footer-contact-item svg { color: var(--cyan); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top:      48px;
  padding:         24px 0;
  border-top:      1px solid #1a2436;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             12px;
  flex-wrap:       wrap;
  font-size:       .75rem;
  color:           var(--fg-muted);
}
.footer-bottom-tag {
  font-family:    var(--font-mono);
  letter-spacing: .15em;
  color:          rgba(0,212,255,.45);
  font-size:      .65rem;
}

/* ── Spinner (used by contact form JS) ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width:        14px;
  height:       14px;
  border:       2px solid rgba(13,18,32,.4);
  border-top-color: #0d1220;
  border-radius: 50%;
  display:      inline-block;
  animation:    spin .8s linear infinite;
}
