:root{
    --ink:#0B1E33;
    --blue:#1A4570;
    --blue-light:#1F74BA;
    --amber:#3FA9F5;
    --green:#3FA9F5;
    --slate:#5B6B7C;
    --bg:#F6F8FA;
    --white:#FFFFFF;
    --line:#E1E7ED;
    --display: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    font-family:var(--body);
    background:var(--bg);
    color:var(--ink);
    line-height:1.6;
  }
  @media (prefers-reduced-motion: reduce){
    *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
  }
  a{color:inherit; text-decoration:none;}
  img{max-width:100%; display:block;}

  .eyebrow{
    font-family:var(--mono);
    font-size:12px;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--amber);
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .eyebrow::before{
    content:"";
    width:7px; height:7px;
    background:var(--green);
    border-radius:50%;
    box-shadow:0 0 0 3px rgba(47,191,113,0.18);
    flex-shrink:0;
  }

  h1,h2,h3{font-family:var(--display); margin:0; color:var(--ink); letter-spacing:-0.01em;}

  /* ---------- HEADER / NAV ---------- */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(11,30,51,0.96);
    backdrop-filter:blur(6px);
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .nav-wrap{
    max-width:1180px; margin:0 auto;
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px;
  }
  .logo{
    display:flex; align-items:center; gap:10px;
    font-family:var(--display); font-weight:700; font-size:19px; color:var(--white);
  }
  .logo-mark{
    width:34px; height:34px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
  }
  .logo-mark img{width:100%; height:100%; object-fit:contain;}
  nav ul{list-style:none; display:flex; gap:2px; margin:0; padding:0;}
  nav a.navlink{
    color:rgba(255,255,255,0.72);
    font-size:14.5px; font-weight:500;
    padding:9px 15px; border-radius:6px;
    transition:background 0.15s, color 0.15s;
  }
  nav a.navlink:hover{background:rgba(255,255,255,0.08); color:var(--white);}
  nav a.navlink.active{color:var(--white); background:rgba(255,255,255,0.1);}
  .nav-cta{
    font-family:var(--body); font-weight:600; font-size:14px;
    background:var(--amber); color:var(--ink);
    padding:10px 18px; border-radius:6px;
    white-space:nowrap;
  }
  .nav-cta:hover{background:#6fbef7;}
  .nav-inner-flex{display:flex; align-items:center; gap:6px;}
  .burger{display:none;}

  @media (max-width:900px){
    nav ul{display:none;}
    .burger{
      display:flex; background:none; border:1px solid rgba(255,255,255,0.25);
      color:var(--white); padding:8px 10px; border-radius:6px; font-family:var(--mono);
      font-size:13px; cursor:pointer;
    }
  }

  /* ---------- PAGE SECTIONS ---------- */
  .page{display:none;}
  .page.active{display:block; animation:fadein 0.35s ease;}
  @keyframes fadein{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}

  section{padding:76px 28px;}
  .container{max-width:1180px; margin:0 auto;}
  .narrow{max-width:760px;}

  /* ---------- HERO ---------- */
  .hero{
    background:var(--ink);
    color:var(--white);
    padding:88px 28px 0;
    position:relative;
    overflow:hidden;
  }
  .hero-grid{
    max-width:1180px; margin:0 auto;
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px;
    align-items:center;
    padding-bottom:60px;
  }
  .hero h1{
    font-size:44px; line-height:1.14; color:var(--white); margin:18px 0 20px;
  }
  .hero p.sub{
    font-size:17px; color:rgba(255,255,255,0.7); max-width:480px; margin-bottom:32px;
  }
  .btn-row{display:flex; gap:12px; flex-wrap:wrap;}
  .btn{
    font-family:var(--body); font-weight:600; font-size:14.5px;
    padding:13px 24px; border-radius:7px;
    display:inline-flex; align-items:center; gap:8px;
    transition:transform 0.15s, background 0.15s;
  }
  .btn-primary{background:var(--amber); color:var(--ink);}
  .btn-primary:hover{background:#6fbef7; transform:translateY(-1px);}
  .btn-ghost{border:1px solid rgba(255,255,255,0.25); color:var(--white);}
  .btn-ghost:hover{background:rgba(255,255,255,0.08);}

  /* schematic diagram */
  .schematic{width:100%; height:auto;}
  .schem-line{fill:none; stroke:rgba(255,255,255,0.22); stroke-width:1.6; stroke-dasharray:6 5;}
  .schem-path{fill:none; stroke:var(--amber); stroke-width:2.2; stroke-linecap:round;
    stroke-dasharray:400; stroke-dashoffset:400; animation:draw 3.2s ease-in-out infinite;}
  @keyframes draw{
    0%{stroke-dashoffset:400;}
    45%{stroke-dashoffset:0;}
    70%{stroke-dashoffset:0;}
    100%{stroke-dashoffset:-400;}
  }
  .node circle.dot{fill:#3A5068;}
  .node text{font-family:var(--mono); font-size:9.5px; fill:rgba(255,255,255,0.55); letter-spacing:0.02em;}
  .node circle.pulse{fill:var(--green); opacity:0; animation:litpulse 3.2s ease-in-out infinite;}
  .n1 .pulse{animation-delay:0.05s;}
  .n2 .pulse{animation-delay:0.85s;}
  .n3 .pulse{animation-delay:1.65s;}
  .n4 .pulse{animation-delay:2.3s;}
  @keyframes litpulse{
    0%,8%{opacity:0; r:3.5;}
    14%{opacity:1; r:5.5;}
    22%,88%{opacity:1; r:4;}
    96%,100%{opacity:0; r:3.5;}
  }

  /* stats bar */
  .stats-bar{
    background:var(--blue); color:var(--white);
    padding:0 28px;
  }
  .stats-inner{
    max-width:1180px; margin:0 auto;
    display:grid; grid-template-columns:repeat(3,1fr);
    text-align:center;
  }
  .stat{padding:30px 10px; border-right:1px solid rgba(255,255,255,0.15);}
  .stat:last-child{border-right:none;}
  .stat .num{font-family:var(--mono); font-size:30px; font-weight:600; color:var(--amber);}
  .stat .lbl{font-size:13px; color:rgba(255,255,255,0.75); margin-top:4px;}

  @media (max-width:760px){
    .hero-grid{grid-template-columns:1fr;}
    .hero h1{font-size:32px;}
    .stats-inner{grid-template-columns:1fr; }
    .stat{border-right:none; border-bottom:1px solid rgba(255,255,255,0.15);}
    .stat:last-child{border-bottom:none;}
  }

  /* ---------- INTRO / TEXT SECTIONS ---------- */
  .intro-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
  .intro-grid p{color:var(--slate); font-size:15.5px; margin:0 0 18px;}
  .section-head{margin-bottom:28px;}
  .section-head h2{font-size:30px; margin-top:10px;}

  @media (max-width:760px){ .intro-grid{grid-template-columns:1fr;} }

  /* ---------- SEGMENT CARDS ---------- */
  .card-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
  .card{
    background:var(--white); border:1px solid var(--line); border-radius:10px;
    padding:26px 22px; transition:border-color 0.2s, transform 0.2s;
  }
  .card:hover{border-color:var(--blue-light); transform:translateY(-3px);}
  .card .led{
    display:inline-flex; align-items:center; gap:6px;
    font-family:var(--mono); font-size:10.5px; text-transform:uppercase; letter-spacing:0.08em;
    color:var(--green); margin-bottom:14px;
  }
  .card .led::before{content:""; width:6px; height:6px; border-radius:50%; background:var(--green);}
  .card h3{font-size:17px; margin-bottom:8px;}
  .card p{font-size:14px; color:var(--slate); margin:0;}
  @media (max-width:900px){ .card-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .card-grid{grid-template-columns:1fr;} }

  /* ---------- AUTOMATION DARK BAND ---------- */
  .auto-band{background:var(--ink); color:var(--white);}
  .auto-band .section-head .eyebrow{color:var(--amber);}
  .auto-band .section-head h2{color:var(--white);}
  .auto-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px;}
  .auto-card{
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
    border-radius:10px; padding:24px 20px;
  }
  .auto-card .icon{width:34px; height:34px; margin-bottom:16px;}
  .auto-card h3{color:var(--white); font-size:16px; margin-bottom:8px;}
  .auto-card p{color:rgba(255,255,255,0.6); font-size:13.5px; margin:0;}
  @media (max-width:900px){ .auto-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .auto-grid{grid-template-columns:1fr;} }

  /* ---------- CTA FINAL ---------- */
  .cta-final{
    background:linear-gradient(120deg, var(--blue), #123353);
    color:var(--white); text-align:center; border-radius:16px;
    padding:56px 28px; margin:0 28px;
  }
  .cta-final h2{color:var(--white); font-size:27px; margin-bottom:12px;}
  .cta-final p{color:rgba(255,255,255,0.75); margin-bottom:26px;}

  /* ---------- FOOTER ---------- */
  footer{background:var(--ink); color:rgba(255,255,255,0.55); padding:52px 28px 26px; margin-top:0;}
  .foot-grid{
    max-width:1180px; margin:0 auto 30px;
    display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px;
  }
  .foot-grid h4{font-family:var(--body); color:var(--white); font-size:13px; text-transform:uppercase; letter-spacing:0.06em; margin-bottom:14px;}
  .foot-grid p, .foot-grid a{font-size:13.5px; color:rgba(255,255,255,0.55); display:block; margin-bottom:8px;}
  .foot-grid a:hover{color:var(--white);}
  .foot-bottom{
    max-width:1180px; margin:0 auto; padding-top:22px; border-top:1px solid rgba(255,255,255,0.08);
    display:flex; justify-content:space-between; font-size:12.5px; flex-wrap:wrap; gap:8px;
  }
  @media (max-width:760px){ .foot-grid{grid-template-columns:1fr 1fr; } }

  /* ---------- VALLE / ABOUT PAGE ---------- */
  .page-hero{
    background:var(--white); border-bottom:1px solid var(--line);
    padding:56px 28px 44px;
  }
  .page-hero h1{font-size:34px; margin:14px 0 10px;}
  .page-hero p{color:var(--slate); max-width:600px; font-size:15.5px;}

  .timeline{position:relative; padding-left:26px; border-left:2px solid var(--line);}
  .tl-item{position:relative; padding-bottom:34px;}
  .tl-item:last-child{padding-bottom:0;}
  .tl-item::before{
    content:""; position:absolute; left:-31px; top:2px;
    width:10px; height:10px; border-radius:50%; background:var(--amber);
    box-shadow:0 0 0 4px var(--bg);
  }
  .tl-year{font-family:var(--mono); color:var(--blue); font-size:13px; font-weight:600;}
  .tl-item h3{font-size:16px; margin:4px 0 6px;}
  .tl-item p{font-size:14px; color:var(--slate); margin:0;}

  .values-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
  .value-card{background:var(--white); border:1px solid var(--line); border-radius:10px; padding:24px;}
  .value-card h3{font-size:16px; margin-bottom:8px;}
  .value-card p{font-size:14px; color:var(--slate); margin:0;}
  @media (max-width:760px){ .values-grid{grid-template-columns:1fr;} }

  /* ---------- SOLUÇÕES PAGE ---------- */
  .seg-detail{
    display:grid; grid-template-columns:0.5fr 1fr; gap:36px;
    background:var(--white); border:1px solid var(--line); border-radius:12px;
    padding:34px; margin-bottom:20px; align-items:start;
  }
  .seg-detail .tag{
    font-family:var(--mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--blue); background:#EAF1F8; display:inline-block; padding:5px 10px; border-radius:5px;
    margin-bottom:12px;
  }
  .seg-detail h3{font-size:21px; margin-bottom:10px;}
  .seg-detail p{color:var(--slate); font-size:14.5px; margin:0 0 14px;}
  .seg-detail ul{margin:0; padding-left:18px; color:var(--slate); font-size:14px;}
  .seg-detail li{margin-bottom:6px;}
  @media (max-width:760px){ .seg-detail{grid-template-columns:1fr;} }

  .tech-strip{display:grid; grid-template-columns:repeat(6,1fr); gap:14px; text-align:center;}
  .tech-item{background:var(--white); border:1px solid var(--line); border-radius:10px; padding:20px 10px;}
  .tech-item .ic{font-size:22px; margin-bottom:8px;}
  .tech-item span{font-size:12.5px; color:var(--slate); display:block;}
  @media (max-width:900px){ .tech-strip{grid-template-columns:repeat(3,1fr);} }
  @media (max-width:560px){ .tech-strip{grid-template-columns:repeat(2,1fr);} }

  /* ---------- CONTATOS PAGE ---------- */
  .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start;}
  .contact-info-card{
    background:var(--white); border:1px solid var(--line); border-radius:12px; padding:30px;
  }
  .contact-row{display:flex; gap:14px; margin-bottom:20px;}
  .contact-row .ic{
    width:38px; height:38px; border-radius:8px; background:#EAF1F8; color:var(--blue);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px;
  }
  .contact-row h4{margin:0 0 3px; font-size:14px;}
  .contact-row p, .contact-row a{margin:0; font-size:14px; color:var(--slate); display:block;}
  .map-embed{border-radius:12px; overflow:hidden; border:1px solid var(--line); margin-top:22px;}
  .map-embed iframe{width:100%; height:220px; border:0; display:block;}

  form.mock{display:flex; flex-direction:column; gap:14px;}
  form.mock label{font-size:13px; font-weight:600; color:var(--ink); margin-bottom:-8px;}
  form.mock input, form.mock textarea{
    font-family:var(--body); font-size:14px; padding:12px 14px;
    border:1px solid var(--line); border-radius:7px; background:var(--white); color:var(--ink);
  }
  form.mock input:focus, form.mock textarea:focus{outline:2px solid var(--blue-light); outline-offset:1px;}
  .form-note{font-size:12.5px; color:var(--slate); margin-top:-4px;}

  @media (max-width:800px){ .contact-grid{grid-template-columns:1fr;} }

  .whatsapp-float{
    position:fixed; bottom:22px; right:22px; z-index:200;
    background:#25D366; color:var(--white); width:54px; height:54px; border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:24px;
    box-shadow:0 6px 18px rgba(47,191,113,0.4);
  }
