﻿/* ============================================
   NEON CORPORATION — core stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:            #f5f6f7;
  --charcoal:      #ffffff;
  --graphite:      #eef0f2;
  --graphite-2:    #e2e5e9;
  --line:          rgba(10,11,13,0.10);
  --line-strong:   rgba(10,11,13,0.20);
  --white:         #101216;
  --grey:          #555b64;
  --grey-dim:      #727780;
  --accent:        #3ddcff;
  --accent-dim:    rgba(61,220,255,0.14);
  --accent-line:   rgba(61,220,255,0.35);

  --f-display: 'Manrope', sans-serif;
  --f-body:    'Inter', sans-serif;

  --container: 1240px;
  --pad: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:auto; background:var(--bg);}
html.lenis{ scroll-behavior:auto; }

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

img,svg{display:block; max-width:100%;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
ul{list-style:none;}

::selection{ background:var(--accent); color:#04141a; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

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

/* ---------- layout helpers ---------- */
.wrap{ max-width:var(--container); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.section{ position:relative; padding:140px 0; }
.section-tight{ padding:90px 0; }

.eyebrow{
  font-family:var(--f-body);
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--grey);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}
.eyebrow::before{
  content:'';
  width:22px; height:1px;
  background:var(--accent);
  display:block;
}

h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.02;
  color:var(--white);
}
h1{ font-size:clamp(44px, 5.4vw, 108px); }
h2{ font-size:clamp(32px, 4.6vw, 62px); }
h3{ font-size:clamp(22px, 2.4vw, 30px); font-weight:700; }
h4{ font-size:18px; font-weight:700; }

p{ color:var(--grey); max-width:52ch; }
p.lead{ font-size:clamp(17px,1.6vw,20px); color:#c7c9cd; }

.split-line{ overflow:hidden; display:block; }
.split-line > span{ display:inline-block; will-change:transform; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:15px 26px;
  font-family:var(--f-body);
  font-size:14px;
  font-weight:600;
  border-radius:2px;
  border:1px solid var(--line-strong);
  color:var(--white);
  background:transparent;
  transition:border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  white-space:nowrap;
}
.btn:hover{ border-color:var(--accent); color:var(--accent); }
.btn-solid{ background:#101216; color:#f5f6f7; border-color:#101216; }
.btn-solid:hover{ background:var(--accent); border-color:var(--accent); color:#04141a; }
.btn-ghost{ border-color:transparent; padding-left:0; padding-right:0; }
.btn-ghost:hover{ border-color:transparent; }
.btn-arrow{ transition:transform .35s var(--ease); }
.btn:hover .btn-arrow{ transform:translateX(4px); }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  padding:22px var(--pad);
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid transparent;
  transition:background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-scrolled{
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.brand{
  display:flex; align-items:center; gap:11px;
  font-family:var(--f-display); font-weight:800; font-size:17px; letter-spacing:-0.01em;
}
.brand-mark{ width:30px; height:30px; }
.brand-name{ line-height:1; }
.brand-name small{ display:block; font-family:var(--f-body); font-weight:500; font-size:9.5px; letter-spacing:0.14em; color:var(--grey); margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:38px; }
.main-nav a{
  font-size:13.5px; font-weight:500; color:var(--grey);
  position:relative; padding-bottom:4px;
  transition:color .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active{ color:var(--white); }
.main-nav a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--accent);
}
.header-cta{ display:flex; align-items:center; gap:22px; }
.header-cta .btn{ padding:12px 22px; font-size:13px; }

.menu-btn{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:6px;
}
.menu-btn span{ width:22px; height:1.5px; background:var(--white); display:block; transition:transform .3s var(--ease), opacity .3s var(--ease); }

/* mobile nav */
.mobile-nav{
  position:fixed; inset:0; z-index:190; background:var(--bg);
  display:flex; flex-direction:column; justify-content:flex-start; padding:120px var(--pad) var(--pad); overflow-y:auto;
  transform:translateY(-100%); transition:transform .5s var(--ease);
}
.mobile-nav.open{ transform:translateY(0); }
.mobile-nav a{ font-family:var(--f-display); font-size:34px; font-weight:700; color:var(--white); padding:12px 0; border-bottom:1px solid var(--line); }
.mobile-nav .header-cta{ margin-top:30px; }

@media (max-width:920px){
  .main-nav, .header-cta .btn-ghost{ display:none; }
  .menu-btn{ display:flex; }
}

/* ---------- footer ---------- */
.site-footer{
  background:var(--charcoal);
  border-top:1px solid var(--line);
  padding:90px 0 28px;
}
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:48px;
  padding-bottom:64px;
}
.footer-brand p{ margin-top:18px; font-size:14px; max-width:32ch; }
.footer-col h4{ font-size:12px; letter-spacing:0.08em; color:var(--grey); font-weight:600; margin-bottom:18px; font-family:var(--f-body); }
.footer-col a, .footer-col li{ display:block; font-size:14.5px; color:var(--grey); margin-bottom:12px; transition:color .3s; }
.footer-col a:hover{ color:var(--accent); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  padding-top:26px; border-top:1px solid var(--line);
  font-size:12.5px; color:var(--grey-dim);
}
.footer-social{ display:flex; gap:16px; }
.footer-social a{ color:var(--grey); transition:color .3s; }
.footer-social a:hover{ color:var(--accent); }

@media (max-width:820px){
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:36px; }
}

/* ---------- page hero (non-home pages) ---------- */
.page-hero{
  padding:180px 0 100px;
  border-bottom:1px solid var(--line);
  position:relative;
}
.page-hero .eyebrow{ margin-bottom:26px; }
.page-hero h1{ max-width:16ch; }
.page-hero p.lead{ margin-top:24px; }

/* ---------- reveal utility (scroll-triggered) ---------- */
.reveal{ opacity:0; transform:translateY(26px); }

/* ---------- cards ---------- */
.card{
  border:1px solid var(--line);
  background:var(--charcoal);
  padding:34px 30px;
  position:relative;
  transition:border-color .35s var(--ease);
}
.card:hover{ border-color:var(--accent-line); }
.card .num{ font-family:var(--f-display); font-size:13px; color:var(--accent); font-weight:700; margin-bottom:22px; display:block; }
.product-art{ height:150px; margin:-34px -30px 26px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#edf2f5,#f7f9fa); }
.product-art svg{ width:100%; height:100%; padding:8px 18px; }
.project-art{ height:160px; margin:-36px -36px 26px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#edf2f5,#f7f9fa); }
.project-art svg{ width:100%; height:100%; padding:8px 18px; }
.card h3{ margin-bottom:12px; }
.card p{ font-size:14.5px; }
.spec-list{ display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; margin-top:24px; }
.spec-list span{ display:flex; align-items:center; gap:8px; color:var(--grey); font-size:12.5px; line-height:1.35; }
.spec-list i{ display:grid; place-items:center; flex:0 0 17px; width:17px; height:17px; border-radius:50%; color:#007f99; background:rgba(61,220,255,.16); font-size:11px; font-style:normal; font-weight:700; }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; }
.grid-3 .card{ border:none; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.grid-4 .card{ border:none; }
@media (max-width:920px){ .grid-3, .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .grid-3, .grid-4{ grid-template-columns:1fr; } }

.tag{
  display:inline-block; font-size:11.5px; letter-spacing:0.04em; color:var(--accent);
  border:1px solid var(--accent-line); background:var(--accent-dim); padding:5px 11px; border-radius:2px;
}

hr.rule{ border:none; border-top:1px solid var(--line); margin:0; }

/* scroll indicator */
.scroll-cue{
  position:absolute; bottom:38px; left:var(--pad);
  display:flex; align-items:center; gap:12px; color:var(--grey); font-size:11.5px; letter-spacing:0.08em;
}
.scroll-cue .bar{ width:1px; height:34px; background:var(--line-strong); position:relative; overflow:hidden; }
.scroll-cue .bar::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--accent);
  animation:cue 1.8s ease-in-out infinite;
}
@keyframes cue{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

/* loader */
.loader{
  position:fixed; inset:0; z-index:999; background:var(--bg);
  display:flex; align-items:center; justify-content:center;
}
.loader-mark{ font-family:var(--f-display); font-weight:800; font-size:15px; letter-spacing:0.3em; color:var(--white); opacity:0; }

/* contact / form */
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:12.5px; color:var(--grey); margin-bottom:9px; letter-spacing:0.02em; }
.field input, .field textarea, .field select{
  width:100%; background:var(--charcoal); border:1px solid var(--line-strong); color:var(--white);
  padding:14px 16px; font-family:var(--f-body); font-size:14.5px; border-radius:2px;
  transition:border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--accent); outline:none; }
.field textarea{ resize:vertical; min-height:130px; }

.stat{ }
.stat .n{ font-family:var(--f-display); font-size:clamp(34px,3.6vw,50px); font-weight:800; color:var(--white); }
.stat .l{ font-size:13px; color:var(--grey); margin-top:6px; }

/* ---------- responsive plain grids (used with inline gap) ---------- */
.grid-plain-2{ display:grid; grid-template-columns:1fr 1fr; }
.grid-plain-4{ display:grid; grid-template-columns:repeat(4,1fr); }
@media (max-width:760px){
  .grid-plain-2{ grid-template-columns:1fr; }
}
@media (max-width:920px){
  .grid-plain-4{ grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .grid-plain-4{ grid-template-columns:1fr; }
}

/* ---------- line-divided tile grids (no .card children) ---------- */
.tile-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:920px){ .tile-grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .tile-grid-3{ grid-template-columns:1fr; } }

.grid-6{ display:grid; grid-template-columns:repeat(6,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:920px){ .grid-6{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .grid-6{ grid-template-columns:repeat(2,1fr); } }

/* ---------- services list rows ---------- */
.service-row{ display:grid; grid-template-columns:80px 1fr 1fr; gap:32px; padding:36px 0; border-bottom:1px solid var(--line); align-items:start; }
.service-row:last-child{ border-bottom:none; }
@media (max-width:760px){
  .service-row{ grid-template-columns:1fr; gap:8px; padding:24px 0; }
}

/* ---------- hero decorative illustration ---------- */
@media (max-width:920px){
  .hero-illustration{ display:none; }
}

/* ---------- cinematic hardware journey: desktop-only pinned version ---------- */
.journey-mobile{ display:none; }
#journey h3, .journey-mobile h3{ color:#f5f6f7 !important; }
#journey p, .journey-mobile p{ color:#d7dce4 !important; }
#journey .eyebrow, .journey-mobile .eyebrow{ color:#e4e8ee !important; }
.journey-copy-panel{ position:relative; z-index:9; padding:18px 20px; background:rgba(10,12,16,.82); border:1px solid rgba(210,220,232,.16); border-radius:4px; box-shadow:0 12px 36px rgba(0,0,0,.28); }
@media (max-width:920px){
  #journey{ display:none; }
  .journey-mobile{ display:block; }
}
.journey-row{ display:flex; align-items:center; gap:22px; }
.journey-row .journey-icon{ width:80px; flex-shrink:0; }
.journey-row .journey-icon svg{ width:100%; height:auto; }
@media (max-width:480px){
  .journey-row{ align-items:flex-start; gap:16px; }
  .journey-row .journey-icon{ width:56px; }
}
/* Light palette: dark text on a light surface, with cyan accents. */
.btn{ color:#101216; }
.btn:hover{ color:#007f99; }
.btn-solid{ color:#f5f6f7; }
.btn-solid:hover{ color:#04141a; }
.menu-btn span{ background:#101216; }
.mobile-nav{ background:var(--bg); }
.site-footer{ color:#101216; }
input, textarea, select{ color:#101216; }
svg [stroke="#eef0f2"]{ stroke:#17191d; }
