/* HumanRequired AI — site styles */
@font-face{font-family:'Barlow';font-weight:400;font-style:normal;font-display:swap;src:url('../assets/fonts/barlow-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Barlow';font-weight:500;font-style:normal;font-display:swap;src:url('../assets/fonts/barlow-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'Barlow';font-weight:600;font-style:normal;font-display:swap;src:url('../assets/fonts/barlow-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'Barlow';font-weight:700;font-style:normal;font-display:swap;src:url('../assets/fonts/barlow-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Barlow';font-weight:800;font-style:normal;font-display:swap;src:url('../assets/fonts/barlow-latin-800-normal.woff2') format('woff2')}

:root{
  --bg:#08080A;
  --card:#111114;
  --line:#1c1c1c;
  --accent:#4A90FF;
  --text:#fff;
  --muted:#a8a8a8;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  background:var(--bg);
  font-family:'Barlow',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  -webkit-tap-highlight-color:rgba(74,144,255,0.15);
}
body.nav-locked{
  overflow:hidden;
}

a{color:#fff;text-decoration:none;transition:color .2s ease}
@media (hover:hover) and (pointer:fine){
  a:hover{color:#bbb}
}
img{display:block;max-width:100%;height:auto}

.wrap{
  max-width:1440px;
  margin:0 auto;
  padding-left:max(48px,calc(var(--safe-left) + 24px));
  padding-right:max(48px,calc(var(--safe-right) + 24px));
  width:100%;
}

.eyebrow{
  font-size:clamp(13px,1.6vw,16px);
  font-weight:600;
  letter-spacing:.14em;
  color:var(--accent);
  text-transform:uppercase;
}
h1,h2,h3{margin:0}
h2.section{
  font-size:clamp(36px,5.5vw,72px);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.05;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:14px 28px;
  border-radius:999px;
  font-family:inherit;
  font-size:clamp(16px,1.8vw,18px);
  font-weight:700;
  line-height:1.2;
  border:0;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  -webkit-user-select:none;
  white-space:nowrap;
  transition:transform .2s ease,background-color .2s ease,filter .2s ease,border-color .2s ease;
}
.btn-primary{
  background:var(--accent);
  color:#000;
}
@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{color:#000;filter:brightness(1.1);transform:translateY(-1px)}
}
.btn-primary:active{
  filter:brightness(0.95);
  transform:scale(0.98);
}
.btn-ghost{
  border:1px solid #555;
  color:#fff;
  font-weight:600;
  background:none;
}
@media (hover:hover) and (pointer:fine){
  .btn-ghost:hover{border-color:#888;color:#fff;transform:translateY(-1px)}
}
.btn-ghost:active{
  background:rgba(255,255,255,0.06);
  transform:scale(0.98);
}

/* site header & navigation */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  background:rgba(8,8,10,0.85);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,0.08);
  padding-top:var(--safe-top);
  transition:background-color .25s ease,border-color .25s ease;
}
.site-header.nav-open{
  background:rgba(8,8,10,0.98);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
  min-height:64px;
  position:relative;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  min-height:44px;
  text-decoration:none;
  z-index:1002;
  flex-shrink:0;
}
.brand img{
  height:clamp(34px,5vw,44px);
  width:auto;
  flex-shrink:0;
}
.brand span{
  font-size:clamp(16px,2.4vw,20px);
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:clamp(18px,2.5vw,32px);
  font-size:16px;
  font-weight:500;
}
.nav-links a{
  color:#ccc;
  display:inline-flex;
  align-items:center;
  min-height:44px;
}
@media (hover:hover) and (pointer:fine){
  .nav-links a:hover{color:#fff}
}
.nav-cta{
  display:none;
}
.nav-toggle{
  display:none;
}

/* mobile nav dropdown */
@media (max-width:767px){
  .nav-toggle{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    width:44px;
    height:44px;
    padding:10px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.14);
    border-radius:10px;
    cursor:pointer;
    z-index:1002;
    transition:background-color .2s ease,border-color .2s ease;
    -webkit-tap-highlight-color:transparent;
  }
  .nav-toggle:active{
    background:rgba(255,255,255,0.1);
  }
  .nav-toggle-bar{
    display:block;
    width:20px;
    height:2px;
    background:#fff;
    border-radius:2px;
    transition:transform .25s ease,opacity .25s ease;
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(1){
    transform:translateY(3.5px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle-bar:nth-child(2){
    transform:translateY(-3.5px) rotate(-45deg);
  }

  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:12px max(20px,calc(var(--safe-right) + 16px)) 24px max(20px,calc(var(--safe-left) + 16px));
    background:rgba(10,11,14,0.98);
    -webkit-backdrop-filter:blur(24px);
    backdrop-filter:blur(24px);
    border-bottom:1px solid rgba(255,255,255,0.12);
    box-shadow:0 24px 48px rgba(0,0,0,0.85);
    opacity:0;
    pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .25s ease,transform .25s ease;
    z-index:1001;
  }
  .nav-links.is-open{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }
  .nav-links a{
    display:flex;
    align-items:center;
    min-height:50px;
    font-size:18px;
    font-weight:600;
    color:#e5e5e5;
    border-bottom:1px solid rgba(255,255,255,0.07);
    padding:6px 4px;
    width:100%;
  }
  .nav-links a:active{
    color:var(--accent);
  }
  .nav-cta{
    display:inline-flex !important;
    justify-content:center;
    align-items:center;
    margin-top:16px;
    width:100%;
    text-align:center;
    min-height:48px;
    border-bottom:none !important;
  }
}

/* hero */
.hero{
  position:relative;
  overflow:hidden;
  min-height:calc(100svh - 65px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media (max-height:640px){
  .hero{
    min-height:auto;
    padding-top:36px;
    padding-bottom:36px;
  }
}
.hero-inner{
  position:relative;
  width:100%;
  padding-top:clamp(40px,7vw,96px);
  padding-bottom:clamp(40px,7vw,96px);
  background:radial-gradient(ellipse 70% 60% at 30% 50%,rgba(8,8,10,.82),rgba(8,8,10,0) 75%);
}
.hero h1{
  font-size:clamp(42px,12vw,196px);
  line-height:.93;
  font-weight:800;
  letter-spacing:-.035em;
  text-shadow:0 0 48px rgba(8,8,10,.9);
  word-break:normal;
}
.hero .sub{
  margin:clamp(18px,3vw,32px) 0 0;
  font-size:clamp(18px,2.8vw,36px);
  font-weight:500;
  color:#9a9a9a;
  line-height:1.25;
  text-shadow:0 0 24px rgba(8,8,10,.95);
}
.hero .cta{
  margin-top:clamp(28px,4.5vw,48px);
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
@media (max-width:520px){
  .hero .cta{
    flex-direction:column;
    width:100%;
  }
  .hero .cta .btn{
    width:100%;
    text-align:center;
  }
}

/* marquee / proof */
.proof{
  padding:clamp(36px,5.5vw,56px) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:clamp(20px,3.5vw,32px);
  background:rgba(8,8,10,.78);
}
.proof-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
}
.proof-label{
  font-size:clamp(11px,1.4vw,12px);
  font-weight:600;
  letter-spacing:.22em;
  color:var(--accent);
}
.proof-track{
  width:100%;
  overflow:hidden;
  position:relative;
  mask-image:linear-gradient(to right,transparent 0%,black 5%,black 95%,transparent 100%);
  -webkit-mask-image:linear-gradient(to right,transparent 0%,black 5%,black 95%,transparent 100%);
}
.mq{
  display:flex;
  gap:clamp(36px,5vw,64px);
  width:max-content;
  white-space:nowrap;
  animation:marquee linear infinite;
  will-change:transform;
}
.mq-a{animation-duration:38s}
.mq-b{animation-name:marqueeRev;animation-duration:42s}
.mq-c{animation-duration:34s}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes marqueeRev{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.mqi{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:clamp(16px,2.2vw,22px);
  font-weight:600;
  letter-spacing:.02em;
  opacity:.5;
  transition:opacity .2s;
  cursor:default;
}
@media (hover:hover) and (pointer:fine){
  .mqi:hover{opacity:1}
}
.mqi img{
  width:clamp(20px,2.5vw,24px);
  height:clamp(20px,2.5vw,24px);
}

/* products */
.products{
  padding-top:clamp(64px,9vw,120px);
  padding-bottom:clamp(64px,9vw,120px);
}
.products h2{
  margin-bottom:clamp(32px,5vw,56px);
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));
  gap:clamp(24px,3.5vw,32px);
  align-items:stretch;
}
.product{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
  width:100%;
}
.tile{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:auto;
  padding:clamp(24px,4vw,40px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:clamp(18px,2.8vw,28px);
  background:rgba(17,17,20,.96);
  color:#fff;
  transition:border-color .25s ease,transform .25s ease;
}
@media (hover:hover) and (pointer:fine){
  .tile:hover{border-color:rgba(255,255,255,.5);transform:translateY(-4px);color:#fff}
}
.tile:active{
  border-color:rgba(255,255,255,.3);
}
.tile-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}
.tile-head img{
  width:clamp(44px,6vw,56px);
  height:clamp(44px,6vw,56px);
}
.tile-name{
  font-size:clamp(32px,4.4vw,60px);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1;
}
.tile-hook{
  margin-top:14px;
  font-size:clamp(19px,2.8vw,28px);
  font-weight:500;
  color:#b8b8c0;
  line-height:1.25;
}
.tile-os{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
}
.tile-os span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:clamp(14px,1.8vw,16px);
  font-weight:600;
}
.tile-os img{
  width:20px;
  height:20px;
}
.tile-link{
  margin-top:24px;
  font-size:16px;
  font-weight:600;
  color:var(--accent);
}

/* terminals */
.term-win{
  background:#0b0c10;
  border:1px solid #23252d;
  border-radius:10px;
  box-shadow:0 24px 48px -18px rgba(0,0,0,.6);
  overflow:hidden;
  width:100%;
}
.term-titlebar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  background:#1a1b22;
}
.term-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  flex-shrink:0;
}
.term-title{
  font-family:var(--mono);
  font-size:clamp(10.5px,1.5vw,11.5px);
  color:#9ea0ad;
  margin-left:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.term-body{
  padding:14px 14px 16px;
  font-family:var(--mono);
  font-size:clamp(11px,1.5vw,12.5px);
  line-height:1.6;
  min-height:200px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.term-line{
  white-space:pre-wrap;
  word-break:break-word;
}
.term-prompt{color:#8fe3a0}.term-comment{color:#5b6270}.term-log{color:#7aa2e8}.term-ok{color:#6fd49a}
.term-cursor{display:inline-block;color:#8fe3a0;animation:cursorBlink 1s step-end infinite}
@keyframes cursorBlink{0%,49%{opacity:1}50%,100%{opacity:0}}

/* culture / kinetiq */
.culture,.kinetiq,.contact{
  border-top:1px solid var(--line);
  padding-top:clamp(64px,9vw,120px);
}
.culture{
  padding-bottom:clamp(64px,9vw,120px);
}
.split{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap:clamp(32px,5vw,80px);
  align-items:start;
}
.split>*{
  min-width:0;
  width:100%;
}
.culture h2,.kinetiq h2{
  margin-top:16px;
  font-size:clamp(34px,5vw,80px);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.05;
}
.culture-copy{
  display:flex;
  flex-direction:column;
  gap:clamp(18px,2.8vw,28px);
  font-size:clamp(18px,2.4vw,24px);
  line-height:1.45;
  color:#b5b5b5;
  font-weight:500;
}
.culture-copy p{margin:0}.culture-copy p:last-child{color:#fff}
.kinetiq{
  padding-bottom:clamp(64px,9vw,120px);
}
.kinetiq .lede{
  margin:20px 0 0;
  max-width:760px;
  font-size:clamp(18px,2.4vw,24px);
  line-height:1.45;
  color:#b5b5b5;
  font-weight:500;
}
.services{
  margin-top:clamp(36px,5vw,56px);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:clamp(16px,2.5vw,24px);
}
.service{
  min-width:0;
  background:var(--card);
  border:1px solid #23252d;
  border-radius:16px;
  padding:clamp(20px,3vw,32px);
}
.service h3{
  font-size:clamp(22px,2.8vw,28px);
  font-weight:700;
  letter-spacing:-.01em;
}
.service p{
  margin:12px 0 0;
  font-size:clamp(15px,2vw,19px);
  line-height:1.45;
  color:var(--muted);
  font-weight:500;
}
.kinetiq .btn{
  margin-top:clamp(28px,4.5vw,48px);
}

/* contact */
.contact{
  padding-bottom:clamp(48px,7vw,80px);
}
.contact h2{
  font-size:clamp(34px,5vw,72px);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.05;
}
.contact .lede{
  margin:20px 0 0;
  font-size:clamp(17px,2.2vw,22px);
  line-height:1.45;
  color:var(--muted);
  font-weight:500;
}
.contact-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));
  gap:16px;
}
.field{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--muted);
}
.field input,
.field select,
.field textarea{
  width:100%;
  padding:14px 16px;
  background:var(--card);
  border:1px solid #2a2a30;
  border-radius:10px;
  color:#fff;
  font-family:inherit;
  font-size:16px; /* minimum 16px prevents iOS Safari auto-zoom */
  font-weight:500;
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.field select{
  background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:18px;
  padding-right:42px;
  cursor:pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(74,144,255,0.25);
}
.field textarea{
  resize:vertical;
  min-height:120px;
}
.field input[type=file]{
  padding:12px 14px;
  font-size:14px;
}
.field .hint{
  font-size:13.5px;
  letter-spacing:0;
  font-weight:500;
  color:#8a8a8a;
  line-height:1.35;
}
.checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  min-height:44px; /* Touch target HIG compliant */
  background:var(--card);
  border:1px solid #2a2a30;
  border-radius:999px;
  font-size:clamp(14px,1.8vw,16px);
  font-weight:600;
  color:#fff;
  letter-spacing:0;
  cursor:pointer;
  user-select:none;
  -webkit-user-select:none;
  transition:border-color .2s ease,background-color .2s ease;
}
.check input{
  accent-color:var(--accent);
  width:18px;
  height:18px;
  margin:0;
}
.form-foot{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
}
@media (max-width:520px){
  .form-foot .btn{
    width:100%;
    text-align:center;
  }
}
.form-error{
  font-size:15px;
  color:#ff7b72;
  font-weight:500;
}
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
.sent{
  background:var(--card);
  border:1px solid #23252d;
  border-radius:16px;
  padding:clamp(24px,4vw,40px);
}
.sent strong{
  display:block;
  font-size:clamp(24px,4vw,32px);
  font-weight:700;
}
.sent p{
  margin:12px 0 0;
  font-size:clamp(16px,2.2vw,20px);
  color:var(--muted);
  font-weight:500;
}
[hidden]{display:none !important}

/* footer */
.footer{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding-top:32px;
  padding-bottom:max(32px,calc(var(--safe-bottom) + 24px));
  border-top:1px solid var(--line);
}
.footer .brand img{
  height:clamp(28px,4vw,36px);
}
.footer .brand span{
  font-size:clamp(14px,2vw,16px);
  font-weight:600;
}
.footer small{
  font-size:14px;
  color:#777;
}

/* panels & code background */
.panel{
  background:rgba(8,8,10,.82);
  border-radius:16px;
  padding:clamp(20px,3.2vw,32px);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
#codebg{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
  display:block;
}

/* media queries: tablet (iPad 7/11/13, Samsung Fold unfolded) */
@media (max-width:1024px){
  .wrap{
    padding-left:max(32px,calc(var(--safe-left) + 20px));
    padding-right:max(32px,calc(var(--safe-right) + 20px));
  }
}

/* media queries: mobile (iPhones, Samsung Ultras, Fold cover) */
@media (max-width:640px){
  .wrap{
    padding-left:max(20px,calc(var(--safe-left) + 16px));
    padding-right:max(20px,calc(var(--safe-right) + 16px));
  }
}

/* media queries: ultra-narrow (iPhone Nano / SE, Fold cover 344px) */
@media (max-width:350px){
  .wrap{
    padding-left:max(14px,calc(var(--safe-left) + 10px));
    padding-right:max(14px,calc(var(--safe-right) + 10px));
  }
  .brand span{
    font-size:15px;
  }
  .brand img{
    height:30px;
  }
  .tile{
    padding:18px 16px;
  }
  .service{
    padding:18px 16px;
  }
  .panel{
    padding:18px 16px;
  }
}

@media (prefers-reduced-motion:reduce){
  .sq{animation:none;opacity:.25}
  .mq,.term-cursor{animation:none !important}
  .term-cursor{opacity:1}
  html{scroll-behavior:auto}
  #codebg{opacity:.8}
}
