/* =========================================================
   Tokens
========================================================= */
:root{
  --bg:        #0B0E14;
  --panel:     #12161F;
  --panel-2:   #171C27;
  --border:    #232A38;
  --text:      #E7EAF1;
  --muted:     #8B93A7;
  --accent:    #FF8A3D;   /* alert amber — signature */
  --accent-dim:#5A3B22;
  --ok:        #33C2A6;
  --danger:    #FF5A5A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
}

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

::selection{ background:var(--accent); color:#0B0E14; }

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

.scanline{
  position:fixed; inset:0; pointer-events:none; z-index:999;
  background:repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode:overlay;
}

/* =========================================================
   Header / Nav
========================================================= */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,14,20,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

nav{
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
}

.logo{
  font-family:var(--font-mono); font-weight:600;
  font-size:1.1rem; letter-spacing:0.5px;
}
.logo span{ color:var(--accent); }

nav ul{
  display:flex; gap:32px;
}
nav ul li{
  display:flex; align-items:baseline; gap:6px;
  font-family:var(--font-mono); font-size:0.9rem;
}
nav ul li .tag{ color:var(--accent); font-size:0.75rem; }
nav ul li a{ color:var(--muted); transition:color .2s; }
nav ul li a:hover{ color:var(--text); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{
  width:22px; height:2px; background:var(--text); display:block;
}

/* =========================================================
   Hero
========================================================= */
.hero{ padding:96px 32px 72px; max-width:1200px; margin:0 auto; }

.hero-grid{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
}

.eyebrow{
  font-family:var(--font-mono); font-size:0.8rem;
  color:var(--muted); letter-spacing:0.5px; margin-bottom:18px;
  display:flex; align-items:center; gap:6px;
}

.status-dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--ok); display:inline-block;
  box-shadow:0 0 8px var(--ok);
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; } 50%{ opacity:0.35; }
}

.hero-text h1{
  font-family:var(--font-display);
  font-size:clamp(2.4rem, 5vw, 3.6rem);
  font-weight:700; line-height:1.08; letter-spacing:-0.5px;
  margin-bottom:16px;
}

.role{
  font-family:var(--font-mono); font-weight:500;
  font-size:1.05rem; color:var(--accent);
  margin-bottom:22px;
}

.lede{
  color:var(--muted); max-width:46ch; font-size:1.02rem;
  margin-bottom:34px;
}

.buttons{ display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  font-family:var(--font-mono); font-size:0.9rem; font-weight:500;
  padding:13px 26px; border-radius:4px; border:1px solid transparent;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
  display:inline-block;
}
.btn-primary{ background:var(--accent); color:#161008; }
.btn-primary:hover{ transform:translateY(-2px); }
.btn-ghost{ border-color:var(--border); color:var(--text); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

.hero-console{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 20px 60px -20px rgba(0,0,0,0.6);
}

.console-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 14px; background:var(--panel-2);
  border-bottom:1px solid var(--border);
}
.dot{ width:10px; height:10px; border-radius:50%; }
.dot.red{ background:#FF5A5A; }
.dot.amber{ background:#FFC24D; }
.dot.green{ background:#33C2A6; }
.console-title{
  margin-left:8px; font-family:var(--font-mono);
  font-size:0.78rem; color:var(--muted);
}

.console-body{
  font-family:var(--font-mono); font-size:0.82rem;
  padding:18px 16px; min-height:280px;
  color:#B9C0CF;
}
.console-line{
  white-space:pre-wrap; margin-bottom:8px; opacity:0;
  animation:fadeIn .3s ease forwards;
}
.console-line .ts{ color:var(--muted); }
.console-line .lvl-info{ color:var(--ok); }
.console-line .lvl-warn{ color:#FFC24D; }
.console-line .lvl-crit{ color:var(--danger); }
.cursor{
  display:inline-block; width:7px; height:14px;
  background:var(--accent); vertical-align:middle;
  animation:blink 1s step-end infinite;
}
@keyframes blink{ 50%{ opacity:0; } }
@keyframes fadeIn{ to{ opacity:1; } }

/* =========================================================
   Sections
========================================================= */
.section{
  max-width:1200px; margin:0 auto; padding:64px 32px;
  border-top:1px solid var(--border);
}

.section-title{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom:22px;
}

.section-text{
  color:var(--muted); max-width:70ch; margin-bottom:14px;
  font-size:1rem;
}
.about-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:40px;
  align-items:start;
}

.about-photo{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--border);
  aspect-ratio:1/1;
  box-shadow:0 20px 50px -20px rgba(0,0,0,0.6);
}

.about-photo::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,14,20,0) 55%, rgba(11,14,20,0.55) 100%),
             linear-gradient(0deg, rgba(255,138,61,0.12), rgba(255,138,61,0.12));
  pointer-events:none;
}

.about-photo::before{
  content:"";
  position:absolute; inset:0;
  border:1px solid var(--accent);
  border-radius:10px;
  opacity:0.35;
  pointer-events:none;
  z-index:2;
}

.about-photo img{
  width:100%; height:100%; object-fit:cover;
  filter:grayscale(55%) contrast(1.05) brightness(0.92);
  transition:filter .35s ease;
}

.about-photo:hover img{
  filter:grayscale(15%) contrast(1.05) brightness(1);
}

@media (max-width:700px){
  .about-grid{
    grid-template-columns:1fr;
  }
  .about-photo{
    max-width:220px;
  }
}
.subheading{
  font-family:var(--font-mono); font-size:0.85rem;
  color:var(--accent); text-transform:uppercase; letter-spacing:1px;
  margin:28px 0 14px;
}

.cards{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:12px;
}
.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:6px;
  padding:16px 14px;
  font-size:0.9rem; font-weight:500;
  transition:border-color .2s ease, transform .2s ease;
}
.card:hover{
  border-color:var(--accent);
  transform:translateY(-3px);
}

.case-list{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
  gap:2px; background:var(--border); border:1px solid var(--border);
  border-radius:6px; overflow:hidden;
}
.case-list li{
  background:var(--panel);
  padding:14px 16px;
  font-size:0.92rem;
  display:flex; gap:10px; align-items:baseline;
}
.case-id{
  font-family:var(--font-mono); font-size:0.75rem;
  color:var(--accent); flex-shrink:0;
}

.contact-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:14px; margin-bottom:28px;
}
.contact-card{
  background:var(--panel); border:1px solid var(--border);
  border-radius:8px; padding:20px;
  display:flex; flex-direction:column; gap:6px;
  transition:border-color .2s ease, transform .2s ease;
}
.contact-card:hover{ border-color:var(--accent); transform:translateY(-3px); }
.contact-card i{ font-size:1.3rem; color:var(--accent); margin-bottom:4px; }
.contact-label{
  font-family:var(--font-mono); font-size:0.72rem;
  color:var(--muted); text-transform:uppercase; letter-spacing:0.5px;
}
.contact-value{ font-size:0.95rem; font-weight:500; }

.whatsapp{
  display:inline-block; background:var(--ok); color:#06231C;
  font-family:var(--font-mono); font-weight:600; font-size:0.9rem;
  padding:14px 28px; border-radius:4px;
  transition:transform .15s ease;
}
.whatsapp:hover{ transform:translateY(-2px); }

footer{
  text-align:center; padding:32px;
  color:var(--muted); font-size:0.82rem;
  font-family:var(--font-mono);
  border-top:1px solid var(--border);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-console{ order:-1; }

  .nav-toggle{ display:flex; }
  nav ul{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--panel); border-bottom:1px solid var(--border);
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  nav ul.open{ max-height:320px; }
  nav ul li{ padding:14px 32px; border-top:1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}
.kc-section{
  width:100%;
  max-width:980px;
  margin:0 auto;
  font-family:'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color:#D7DEE8;
  padding:60px 20px;
}

.kc-eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#5C6779;
  margin-bottom:10px;
}
.kc-eyebrow .dot{
  width:6px;height:6px;border-radius:50%;
  background:#3DDC97;
  box-shadow:0 0 8px #3DDC97;
  animation:pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{opacity:1;}
  50%{opacity:.35;}
}

.kc-title{
  font-size:26px;
  font-weight:700;
  letter-spacing:-0.01em;
  margin:0 0 6px;
  color:#F2F5F9;
}
.kc-sub{
  font-size:13.5px;
  color:#5C6779;
  margin:0 0 28px;
  max-width:560px;
  line-height:1.6;
}

.kc-frame{
  border:1px solid #212938;
  background:linear-gradient(180deg, #10141D 0%, #0D111A 100%);
  border-radius:6px;
  overflow:hidden;
}

.kc-framebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  border-bottom:1px solid #212938;
  background:#151B26;
  font-size:11px;
  color:#5C6779;
  letter-spacing:.08em;
}
.kc-framebar-left{display:flex;align-items:center;gap:8px;}
.kc-framebar-left span.file{color:#D7DEE8;}
.kc-status{
  display:flex;align-items:center;gap:6px;
  font-size:11px;
  padding:3px 9px;
  border-radius:20px;
  border:1px solid #212938;
}
.kc-status.state-idle{color:#5C6779;}
.kc-status.state-active{color:#FFB454; border-color:rgba(255,180,84,.35); background:rgba(255,180,84,.06);}
.kc-status.state-alert{color:#FF4D5E; border-color:rgba(255,77,94,.4); background:rgba(255,77,94,.08);}
.kc-status.state-safe{color:#3DDC97; border-color:rgba(61,220,151,.4); background:rgba(61,220,151,.08);}

.kc-body{
  display:grid;
  grid-template-columns:230px 1fr;
  min-height:360px;
}
@media (max-width:680px){
  .kc-body{grid-template-columns:1fr;}
  .kc-stages{
    flex-direction:row;
    overflow-x:auto;
    border-right:none;
    border-bottom:1px solid #212938;
    padding:16px 12px;
  }
  .kc-stage{flex-direction:column; text-align:center; min-width:84px; gap:6px;}
  .kc-stage .line{display:none;}
}

.kc-stages{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:22px 18px;
  border-right:1px solid #212938;
}
.kc-stage{
  display:flex;
  align-items:flex-start;
  gap:12px;
  position:relative;
  padding-bottom:30px;
}
.kc-stage:last-child{padding-bottom:0;}
.kc-stage .line{
  position:absolute;
  left:9px; top:20px; bottom:-4px;
  width:1px;
  background:#212938;
}
.kc-stage:last-child .line{display:none;}
.kc-node{
  width:19px;height:19px;
  border-radius:50%;
  border:1px solid #212938;
  background:#10141D;
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;
  color:#5C6779;
  z-index:1;
  transition:all .3s ease;
}
.kc-stage-label{
  font-size:12.5px;
  color:#5C6779;
  padding-top:1px;
  transition:color .3s ease;
}
.kc-stage-sub{
  font-size:10.5px;
  color:#3A4252;
  margin-top:2px;
}

.kc-stage.done .kc-node{
  border-color:#3DDC97;
  background:rgba(61,220,151,.12);
  color:#3DDC97;
}
.kc-stage.done .kc-stage-label{color:#D7DEE8;}
.kc-stage.done .line{background:#3DDC97; opacity:.4;}

.kc-stage.current .kc-node{
  border-color:#FFB454;
  background:rgba(255,180,84,.14);
  color:#FFB454;
  box-shadow:0 0 0 4px rgba(255,180,84,.08);
}
.kc-stage.current .kc-stage-label{color:#F2F5F9; font-weight:600;}

.kc-stage.critical .kc-node{
  border-color:#FF4D5E;
  background:rgba(255,77,94,.14);
  color:#FF4D5E;
  box-shadow:0 0 0 4px rgba(255,77,94,.09);
  animation:node-throb 1.1s ease-in-out infinite;
}
@keyframes node-throb{
  0%,100%{box-shadow:0 0 0 4px rgba(255,77,94,.09);}
  50%{box-shadow:0 0 0 7px rgba(255,77,94,.02);}
}
.kc-stage.critical .kc-stage-label{color:#FF4D5E; font-weight:600;}

.kc-console{
  padding:18px 20px;
  font-size:12.5px;
  line-height:1.9;
  overflow-y:auto;
  max-height:360px;
}
.kc-log-line{
  display:flex;
  gap:10px;
  opacity:0;
  transform:translateY(3px);
  animation:line-in .35s ease forwards;
}
@keyframes line-in{
  to{opacity:1; transform:translateY(0);}
}
.kc-log-time{color:#3A4252; flex-shrink:0; user-select:none;}
.kc-log-tag{
  flex-shrink:0;
  font-size:10px;
  padding:1px 6px;
  border-radius:3px;
  height:fit-content;
  letter-spacing:.04em;
}
.tag-info{color:#4FD1FF; background:rgba(79,209,255,.1);}
.tag-warn{color:#FFB454; background:rgba(255,180,84,.1);}
.tag-alert{color:#FF4D5E; background:rgba(255,77,94,.12);}
.tag-safe{color:#3DDC97; background:rgba(61,220,151,.1);}
.kc-log-text{color:#D7DEE8;}
.kc-log-text b{color:#F2F5F9; font-weight:600;}
.kc-cursor{
  display:inline-block;
  width:6px;height:12px;
  background:#4FD1FF;
  margin-left:2px;
  animation:blink 1s step-end infinite;
  vertical-align:middle;
}
@keyframes blink{50%{opacity:0;}}

.kc-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  border-top:1px solid #212938;
  background:#151B26;
  font-size:11px;
  color:#5C6779;
}
.kc-mitre{
  display:flex; gap:6px; flex-wrap:wrap;
}
.kc-mitre span{
  border:1px solid #212938;
  padding:2px 7px;
  border-radius:3px;
  color:#5C6779;
}
.kc-replay-btn{
  background:transparent;
  border:1px solid #212938;
  color:#5C6779;
  font-family:inherit;
  font-size:11px;
  padding:5px 12px;
  border-radius:4px;
  cursor:pointer;
  letter-spacing:.05em;
  transition:all .2s ease;
}
.kc-replay-btn:hover{
  color:#4FD1FF;
  border-color:rgba(79,209,255,.4);
}
.kc-replay-btn:focus-visible{
  outline:2px solid #4FD1FF;
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  .kc-log-line{animation:none; opacity:1; transform:none;}
  .kc-eyebrow .dot, .kc-stage.critical .kc-node, .kc-cursor{animation:none;}
   .trust-sub{
  font-size:13.5px;
  color:#5C6779;
  margin:0 0 28px;
  max-width:560px;
  line-height:1.7;
}

.trust-frame{
  border:1px solid #212938;
  background:linear-gradient(180deg, #10141D 0%, #0D111A 100%);
  border-radius:6px;
  overflow:hidden;
  margin-bottom:16px;
}
.trust-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-bottom:1px solid #212938;
  background:#151B26;
  font-size:11px;
  color:#5C6779;
  letter-spacing:.06em;
}
.trust-bar i{
  width:14px; text-align:center;
  color:#4FD1FF;
  font-style:normal;
}
.trust-body{padding:18px 20px;}
.trust-body p{
  font-size:13px;
  line-height:1.85;
  color:#D7DEE8;
  margin:0;
}
.trust-body ul{
  margin:0;
  padding-left:18px;
  font-size:13px;
  line-height:1.9;
  color:#D7DEE8;
}
.trust-body li{margin-bottom:4px;}
.trust-body li::marker{color:#3DDC97;}

.trust-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.trust-badge{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #212938;
  background:#10141D;
  padding:6px 12px;
  border-radius:20px;
  font-size:11px;
  color:#5C6779;
}
.trust-badge .dot{
  width:5px;height:5px;border-radius:50%;
  background:#3DDC97;
   .typewriter-frame{
  border:1px solid #212938;
  background:linear-gradient(180deg, #10141D 0%, #0D111A 100%);
  border-radius:6px;
  overflow:hidden;
  max-width:720px;
  margin:0 auto;
}
.typewriter-bar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-bottom:1px solid #212938;
  background:#151B26;
  font-size:11px;
  color:#5C6779;
  letter-spacing:.06em;
}
.tw-dot{
  width:6px;height:6px;border-radius:50%;
  background:#3DDC97;
  box-shadow:0 0 8px #3DDC97;
  animation:tw-pulse 2s ease-in-out infinite;
}
@keyframes tw-pulse{0%,100%{opacity:1;}50%{opacity:.35;}}
.typewriter-body{
  padding:34px 26px;
  font-size:17px;
  line-height:1.6;
  color:#D7DEE8;
  min-height:80px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
}
.tw-prompt{
  color:#3DDC97;
  margin-right:10px;
  font-weight:700;
}
.tw-cursor{
  display:inline-block;
  width:8px;height:19px;
  background:#4FD1FF;
  margin-left:3px;
  animation:tw-blink 1s step-end infinite;
  vertical-align:middle;
}
@keyframes tw-blink{50%{opacity:0;}}
}
}
