/* =========================================================
   DRW Sistemas — Landing page
   ========================================================= */

:root{
  --navy-950:#0B1B2B;
  --navy-900:#112A42;
  --navy-800:#173659;
  --brand:#1F5D8D;
  --brand-dark:#164567;
  --accent:#2E6FDB;
  --amber:#E8A33D;
  --ink:#0F1B27;
  --muted:#5B6B7C;
  --muted-light:#8695A6;
  --paper:#F7F5F0;
  --paper-alt:#EFEAE0;
  --line:rgba(15,27,39,.10);
  --line-dark:rgba(255,255,255,.12);
  --white:#FFFFFF;
  --radius-s:8px;
  --radius-m:14px;
  --radius-l:22px;
  --shadow-soft:0 20px 45px -25px rgba(11,27,43,.35);
  --shadow-strong:0 30px 60px -20px rgba(11,27,43,.45);
  --container:1180px;
  --ff-head:'Manrope', 'Segoe UI', sans-serif;
  --ff-body:'Inter', 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--ff-head); margin:0; line-height:1.15; letter-spacing:-0.02em; color:var(--ink); }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 28px; }

.icon{ width:20px; height:20px; flex-shrink:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn--primary{ background:var(--accent); color:#fff; box-shadow:0 14px 30px -12px rgba(46,111,219,.55); }
.btn--primary:hover{ background:var(--brand-dark); transform:translateY(-2px); }
.btn--ghost{ background:transparent; color:inherit; border-color:currentColor; opacity:.9; }
.btn--ghost:hover{ opacity:1; background:rgba(255,255,255,.08); }
.btn--outline{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn--outline:hover{ border-color:var(--brand); color:var(--brand); }
.btn--light{ background:#fff; color:var(--brand-dark); }
.btn--light:hover{ transform:translateY(-2px); box-shadow:var(--shadow-soft); }
.btn--block{ width:100%; }
.btn--sm{ padding:10px 20px; font-size:.85rem; }
.btn-icon{ width:16px; height:16px; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  padding:20px 0;
  transition:background-color .25s ease, padding .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled{
  background:rgba(247,245,240,.88);
  backdrop-filter:blur(14px);
  padding:12px 0;
  box-shadow:0 1px 0 var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.brand{ display:flex; align-items:center; gap:10px; }
.logo-mark{ height:28px; width:auto; display:block; transition:filter .25s ease; }
.site-header.is-scrolled .logo-mark{ filter:invert(1); }
.brand--footer .logo-mark{ height:34px; }

.main-nav ul{ display:flex; gap:34px; }
.main-nav a{
  color:rgba(255,255,255,.82); font-size:.92rem; font-weight:500; position:relative; padding:4px 0;
  transition:color .2s ease;
}
.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px; background:var(--amber);
  transition:right .25s ease;
}
.main-nav a:hover{ color:#fff; }
.main-nav a:hover::after{ right:0; }
.site-header.is-scrolled .main-nav a{ color:var(--muted); }
.site-header.is-scrolled .main-nav a:hover{ color:var(--ink); }

.header-actions{ display:flex; align-items:center; gap:16px; }
.nav-toggle{
  display:none; background:none; border:0; color:#fff; padding:6px; border-radius:8px;
}
.site-header.is-scrolled .nav-toggle{ color:var(--ink); }
.nav-toggle__close{ display:none; }

/* ---------- Section shell ---------- */
.section{ padding:120px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(1.7rem, 2.6vw, 2.4rem); margin-top:14px; }
.section-sub{ margin-top:14px; color:var(--muted); font-size:1.02rem; line-height:1.6; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--ff-head); font-size:.72rem;
  letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--amber);
}
.eyebrow::before{ content:''; width:18px; height:1.5px; background:var(--amber); display:inline-block; }
.eyebrow--dark{ color:var(--brand); }
.eyebrow--dark::before{ background:var(--brand); }
.section-head--light h2{ color:#fff; }

/* ---------- Hero ---------- */
.hero{
  position:relative; background:var(--navy-950); color:#fff;
  padding:168px 0 120px; overflow:hidden;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  pointer-events:none;
}
.hero::after{
  content:''; position:absolute; top:-160px; right:-120px; width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle, rgba(46,111,219,.35), transparent 70%);
  pointer-events:none;
}
.hero-inner{ position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero-copy .eyebrow{ margin-bottom:22px; }
.hero-copy h1{ font-size:clamp(2.2rem, 4vw, 3.4rem); color:#fff; }
.hero-lead{ margin-top:22px; color:rgba(255,255,255,.72); font-size:1.08rem; line-height:1.65; max-width:520px; }
.hero-cta{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:0; margin-top:64px; border-top:1px solid var(--line-dark); padding-top:26px; flex-wrap:wrap; }
.hero-stat{
  display:flex; flex-direction:column; gap:4px; padding-right:28px; margin-right:28px; border-right:1px solid var(--line-dark);
}
.hero-stat:last-child{ border-right:0; }
.hero-stat strong{ font-family:var(--ff-head); font-size:1.5rem; color:#fff; }
.hero-stat span{ font-size:.78rem; color:rgba(255,255,255,.58); max-width:130px; line-height:1.35; }

.hero-visual{ position:relative; }
.browser-frame{
  background:var(--navy-900); border-radius:var(--radius-m); overflow:hidden; border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow-strong);
}
.browser-bar{ display:flex; gap:6px; padding:11px 14px; background:rgba(255,255,255,.04); }
.browser-bar span{ width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.18); }
.browser-frame--main{ transform:rotate(0.4deg); }
.browser-frame--float{
  position:absolute; width:46%; left:-8%; bottom:-58px; z-index:2;
  transform:rotate(-2.5deg);
  box-shadow:0 30px 50px -18px rgba(0,0,0,.55);
}

/* ---------- Problem ---------- */
.problem-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:start; }
.problem-list li{
  display:flex; gap:14px; padding:20px 0; border-bottom:1px solid var(--line); font-size:1.02rem; color:var(--ink);
  line-height:1.5;
}
.problem-list li:first-child{ padding-top:0; }
.problem-mark{
  flex-shrink:0; width:28px; height:28px; border-radius:50%; background:rgba(196,68,68,.12); color:#B23A3A;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1rem;
}
.problem-answer{
  background:var(--navy-950); color:#fff; border-radius:var(--radius-l); padding:36px; display:flex; flex-direction:column; gap:18px;
  align-self:stretch; justify-content:center;
}
.problem-answer__icon{ width:34px; height:34px; padding:8px; background:rgba(232,163,61,.16); color:var(--amber); border-radius:50%; }
.problem-answer p{ font-size:1.15rem; line-height:1.55; font-family:var(--ff-head); font-weight:600; }

/* ---------- Showcase ---------- */
.showcase-row{ display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center; padding:56px 0; border-bottom:1px solid var(--line); }
.showcase-row:last-child{ border-bottom:0; padding-bottom:0; }
.showcase-row:first-of-type{ padding-top:0; }
.showcase-row--reverse{ direction:rtl; }
.showcase-row--reverse > *{ direction:ltr; }
.tag{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brand); background:rgba(31,93,141,.1); padding:6px 12px; border-radius:999px;
}
.showcase-copy h3{ font-size:1.55rem; margin-top:16px; }
.showcase-copy p{ margin-top:14px; color:var(--muted); line-height:1.65; font-size:1.02rem; }
.showcase-visual .browser-frame{ background:var(--paper-alt); border:1px solid var(--line); box-shadow:var(--shadow-soft); }
.showcase-visual .browser-bar{ background:rgba(15,27,39,.04); }
.showcase-visual .browser-bar span{ background:rgba(15,27,39,.15); }

/* ---------- Solutions (reusa o padrão visual do showcase) ---------- */
.solutions{ background:var(--paper-alt); }
.solutions .showcase-copy .btn{ margin-top:22px; }
.showcase-visual--multi{ display:flex; gap:16px; }
.showcase-visual--multi .browser-frame{ flex:1; min-width:0; }

/* ---------- Modules ---------- */
.modules{ background:var(--paper-alt); }
.modules-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:22px; }
.module-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); padding:28px 24px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-soft); border-color:transparent; }
.module-icon{
  width:44px; height:44px; border-radius:12px; background:rgba(31,93,141,.1); color:var(--brand);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.module-card h3{ font-size:1.05rem; }
.module-card p{ margin-top:8px; color:var(--muted); font-size:.9rem; line-height:1.55; }

/* ---------- Plans ---------- */
.plans-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; align-items:stretch; }
.plan-card{
  position:relative; background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:38px 30px;
  display:flex; flex-direction:column;
}
.plan-card--highlight{
  border-color:var(--brand); box-shadow:var(--shadow-strong); transform:translateY(-10px);
  background:linear-gradient(180deg, #fff, var(--paper-alt) 220%);
}
.plan-badge{
  position:absolute; top:-13px; left:30px; background:var(--amber); color:var(--ink); font-size:.7rem; font-weight:700;
  padding:6px 14px; border-radius:999px; letter-spacing:.04em;
}
.plan-card h3{ font-size:1.3rem; }
.plan-resumo{ color:var(--muted); margin-top:8px; font-size:.92rem; min-height:40px; }
.plan-preco{ display:block; font-family:var(--ff-head); font-size:1.15rem; color:var(--brand-dark); margin:18px 0 22px; }
.plan-itens{ display:flex; flex-direction:column; gap:13px; margin-bottom:30px; flex-grow:1; }
.plan-itens li{ display:flex; gap:10px; align-items:flex-start; font-size:.92rem; line-height:1.4; }
.plan-itens .icon{ width:16px; height:16px; margin-top:3px; color:var(--brand); flex-shrink:0; }

/* ---------- Diffs (dark) ---------- */
.diffs{ background:var(--navy-950); color:#fff; }
.diffs-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.diff-card{ padding:30px 6px; border-top:1px solid var(--line-dark); }
.diff-icon{
  width:42px; height:42px; border-radius:12px; background:rgba(46,111,219,.16); color:#7FB2FF;
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.diff-card h3{ color:#fff; font-size:1.08rem; }
.diff-card p{ margin-top:10px; color:rgba(255,255,255,.6); font-size:.92rem; line-height:1.6; }

/* ---------- About ---------- */
.about-inner{ max-width:820px; }
.about-text{ font-size:1.1rem; line-height:1.75; color:var(--muted); }
.about-pillars{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:48px; }
.about-pillar{
  border-top:2px solid var(--brand); padding-top:16px; display:flex; flex-direction:column; gap:6px;
}
.about-pillar strong{ font-family:var(--ff-head); font-size:1.02rem; }
.about-pillar span{ color:var(--muted); font-size:.9rem; line-height:1.5; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--brand); color:#fff; padding:90px 0; }
.cta-inner{ text-align:center; max-width:600px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:18px; }
.cta-inner h2{ color:#fff; font-size:clamp(1.6rem, 3vw, 2.1rem); }
.cta-inner p{ color:rgba(255,255,255,.82); font-size:1.02rem; line-height:1.6; }
.cta-inner .btn{ margin-top:10px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1.4fr .9fr; gap:32px; align-items:start; }
.contact-form{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-l); padding:38px; display:flex;
  flex-direction:column; gap:18px; box-shadow:var(--shadow-soft);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-form label{ display:flex; flex-direction:column; gap:8px; font-size:.85rem; font-weight:600; color:var(--ink); }
.contact-form input, .contact-form textarea{
  font-family:inherit; font-size:.95rem; padding:13px 15px; border-radius:var(--radius-s); border:1px solid var(--line);
  background:var(--paper); color:var(--ink); resize:vertical; transition:border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(46,111,219,.15); background:#fff;
}
.hp-field{ position:absolute; left:-9999px; opacity:0; height:0; width:0; }
.form-msg{
  display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:var(--radius-s); font-size:.9rem; font-weight:600;
}
.form-msg--ok{ background:rgba(31,150,90,.1); color:#1F7A48; }
.form-msg--ok .icon{ width:18px; height:18px; }
.form-msg--erro{ background:rgba(196,68,68,.1); color:#B23A3A; }

.contact-side{ display:flex; flex-direction:column; gap:16px; }
.contact-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-m); padding:22px 24px;
}
.contact-card h3{ font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-light); font-weight:700; }
.contact-card a{ display:block; margin-top:8px; font-family:var(--ff-head); font-weight:700; color:var(--brand-dark); font-size:1.05rem; }
.contact-card a:hover{ color:var(--accent); }
.contact-card--muted{ background:var(--paper-alt); }
.contact-card--muted span{ display:block; margin-top:8px; color:var(--muted); font-size:.92rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-950); color:rgba(255,255,255,.7); padding:70px 0 0; }
.footer-inner{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid var(--line-dark); }
.footer-brand .brand{ color:#fff; margin-bottom:14px; }
.footer-brand p{ font-size:.9rem; line-height:1.6; max-width:280px; color:rgba(255,255,255,.5); }
.footer-col h4{ color:#fff; font-size:.85rem; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:.9rem; color:rgba(255,255,255,.6); transition:color .2s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; padding:24px 0; font-size:.8rem; color:rgba(255,255,255,.4); flex-wrap:wrap; gap:8px; }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab{
  position:fixed; right:26px; bottom:26px; width:56px; height:56px; border-radius:50%; background:#25D366;
  color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px -10px rgba(37,211,102,.6);
  z-index:90; transition:transform .2s ease;
}
.whatsapp-fab:hover{ transform:translateY(-3px) scale(1.04); }
.whatsapp-fab .icon{ width:26px; height:26px; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1080px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ margin-top:60px; }
  .browser-frame--float{ width:52%; }
  .problem-grid{ grid-template-columns:1fr; }
  .showcase-row{ grid-template-columns:1fr; direction:ltr; }
  .showcase-row--reverse{ direction:ltr; }
  .showcase-visual{ order:-1; }
  .modules-grid{ grid-template-columns:repeat(2, 1fr); }
  .plans-grid{ grid-template-columns:1fr; max-width:440px; margin:0 auto; }
  .plan-card--highlight{ transform:none; }
  .diffs-grid{ grid-template-columns:repeat(2, 1fr); }
  .about-pillars{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:860px){
  .main-nav{
    position:fixed; inset:0; top:0; background:var(--navy-950); padding:110px 32px 40px;
    transform:translateX(100%); transition:transform .3s ease; z-index:99;
  }
  .main-nav.is-open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; gap:26px; }
  .main-nav a{ font-size:1.3rem; color:#fff; }
  .nav-toggle{ display:flex; position:relative; z-index:101; }
  .header-actions .btn--primary{ display:none; }
  .nav-toggle.is-open .nav-toggle__open{ display:none; }
  .nav-toggle.is-open .nav-toggle__close{ display:block; }
  .nav-toggle.is-open{ color:#fff; }

  .section{ padding:80px 0; }
  .hero{ padding-top:130px; }
  .footer-inner{ grid-template-columns:1fr; gap:32px; }
}

@media (max-width:600px){
  .wrap{ padding:0 20px; }
  .hero-stats{ gap:0; }
  .hero-stat{ flex:1 1 45%; padding-right:14px; margin-right:14px; margin-bottom:18px; }
  .browser-frame--float{ display:none; }
  .modules-grid{ grid-template-columns:1fr; }
  .diffs-grid{ grid-template-columns:1fr; }
  .showcase-visual--multi{ flex-direction:column; }
  .form-row{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; }
}
