:root {
  --blue: #075d88;
  --blue-dark: #063951;
  --blue-light: #e8f4f9;
  --red: #e10b0b;
  --red-dark: #a70707;
  --ink: #10202a;
  --muted: #5c6d76;
  --surface: #f4f8fa;
  --white: #fff;
  --line: #dce7ec;
  --shadow: 0 24px 80px rgba(3, 45, 67, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(220,231,236,.8); backdrop-filter: blur(16px); }
.nav-wrap { width: min(1240px, calc(100% - 40px)); min-height: 104px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 330px; height: 88px; display: flex; align-items: center; overflow: hidden; flex: 0 0 auto; }
.brand img { width: 350px; max-width: none; height: 104px; object-fit: contain; object-position: left center; transform: scale(1.16); transform-origin: left center; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { text-decoration: none; color: #29414e; font-size: .95rem; font-weight: 700; transition: .2s ease; }
nav a:hover { color: var(--blue); }
.nav-cta { padding: 12px 19px; color: var(--white) !important; border-radius: 11px; background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 10px 25px rgba(225,11,11,.2); }
.menu-button { display: none; border: 0; border-radius: 10px; padding: 10px 14px; color: var(--white); background: var(--blue); font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 88% 12%, rgba(7,93,136,.15), transparent 30%), linear-gradient(135deg, #fff 0%, #f4f9fb 55%, #edf6fa 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(7,93,136,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(7,93,136,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, #000); }
.hero-grid { position: relative; width: min(1180px, calc(100% - 40px)); min-height: 720px; margin: auto; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 60px; }
.eyebrow { display: inline-block; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(2.8rem, 5vw, 5.2rem); line-height: .99; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 650px; color: var(--muted); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; text-decoration: none; font-weight: 850; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--white); background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 14px 30px rgba(225,11,11,.22); }
.secondary { color: var(--blue); background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(3,45,67,.06); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #415862; font-size: .86rem; font-weight: 750; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--blue); }

.hero-visual { position: relative; min-height: 490px; display: grid; place-items: center; }
.dashboard-card { position: relative; z-index: 3; width: min(100%, 400px); padding: 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; color: var(--white); background: linear-gradient(145deg, #0c6d9d, #063951); box-shadow: 0 40px 80px rgba(3,45,67,.3); transform: perspective(900px) rotateY(-8deg) rotateX(3deg); }
.card-top { display: flex; gap: 7px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.card-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); }
.status-line { display: flex; justify-content: space-between; margin: 23px 0; font-size: .9rem; }
.status-line b { color: #7ff0b1; }
.metric strong { display: block; font-size: 4rem; line-height: 1; letter-spacing: -.05em; }
.metric small { color: rgba(255,255,255,.7); }
.bars { height: 100px; margin-top: 25px; display: flex; align-items: end; gap: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff4b4b, #d40a0a); }
.bars i:nth-child(1) { height: 30%; }.bars i:nth-child(2) { height: 48%; }.bars i:nth-child(3) { height: 42%; }.bars i:nth-child(4) { height: 67%; }.bars i:nth-child(5) { height: 75%; }.bars i:nth-child(6) { height: 94%; }
.tech-orbit { position: absolute; border: 1px solid rgba(7,93,136,.22); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; }.orbit-two { width: 560px; height: 560px; border-style: dashed; animation: spin 28s linear infinite; }
.floating-chip { position: absolute; z-index: 4; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: .8rem; font-weight: 850; }
.chip-one { top: 70px; right: 0; }.chip-two { bottom: 78px; left: -10px; }
@keyframes spin { to { transform: rotate(360deg); } }

.section { padding: 110px max(20px, calc((100% - 1180px)/2)); }
.section-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.section-heading h2 { max-width: 740px; margin: 12px 0 0; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading.centered { max-width: 800px; margin: 0 auto 55px; text-align: center; }
.section-heading.centered p { color: var(--muted); }
.about-copy { padding-top: 25px; color: var(--muted); font-size: 1.08rem; }
.about-copy p:first-child { color: var(--ink); font-size: 1.25rem; }

.services { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 270px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 35px rgba(3,45,67,.04); transition: transform .25s, border-color .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(7,93,136,.35); box-shadow: var(--shadow); }
.service-card span { color: var(--red); font-size: .8rem; font-weight: 900; }
.service-card h3 { margin: 40px 0 12px; font-size: 1.35rem; }
.service-card p { margin: 0; color: var(--muted); }

.differentiators { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.feature-list { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature b { color: var(--red); }.feature h3 { margin: 0 0 6px; }.feature p { margin: 0; color: var(--muted); }

.contact-section { padding: 40px max(20px, calc((100% - 1180px)/2)) 110px; }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; padding: 65px; border-radius: 28px; color: var(--white); background: linear-gradient(135deg, #075d88, #042f45); box-shadow: var(--shadow); }
.contact-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -170px; border: 50px solid rgba(255,255,255,.06); border-radius: 50%; }
.eyebrow.light { color: #ff8d8d; }.contact-card h2 { margin: 10px 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }.contact-card p { color: rgba(255,255,255,.75); }
.contact-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: stretch; gap: 17px; text-align: center; }
.button.white { color: var(--blue); background: var(--white); }.contact-actions > a:last-child { color: var(--white); font-weight: 700; }

footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 32px 0; display: grid; grid-template-columns: 220px 1fr auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer img { width: 190px; height: 58px; object-fit: contain; object-position: left; }
footer a { color: var(--blue); font-weight: 800; text-decoration: none; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; padding: 13px 19px; border-radius: 999px; color: var(--white); background: #168c4d; box-shadow: 0 14px 35px rgba(22,140,77,.3); text-decoration: none; font-size: .86rem; font-weight: 900; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  nav { position: absolute; left: 20px; right: 20px; top: 96px; display: none; flex-direction: column; align-items: stretch; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  .hero-grid, .section-grid, .differentiators, .contact-card { grid-template-columns: 1fr; }
  .hero-grid { padding: 80px 0 60px; }
  .hero-visual { min-height: 430px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer img { object-position: center; }
}

@media (max-width: 600px) {
  .nav-wrap { min-height: 76px; }
  .brand { width: 220px; height: 70px; }
  .brand img { width: 235px; height: 76px; transform: scale(1.12); }
  .hero-grid { min-height: auto; }
  .hero h1 { font-size: 2.8rem; }
  .hero-visual { min-height: 350px; }
  .dashboard-card { transform: none; }
  .orbit-one { width: 330px; height: 330px; }.orbit-two { width: 410px; height: 410px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .contact-card { padding: 38px 24px; }
  .whatsapp-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Central de downloads e painel */
.portal-body { min-height: 100vh; background: var(--surface); }
.portal-nav { display: flex; }
.downloads-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 50px; }
.portal-hero { max-width: 780px; }
.portal-hero h1, .admin-title h1 { margin: 8px 0 12px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.portal-hero p, .admin-title p { color: var(--muted); font-size: 1.08rem; }
.downloads-tools { margin: 44px 0 28px; display: grid; gap: 16px; }
.downloads-tools input, .app-form input, .app-form textarea, .login-panel input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); background: var(--white); font: inherit; outline: none; }
.downloads-tools input { max-width: 600px; font-size: 1rem; box-shadow: 0 10px 30px rgba(3,45,67,.05); }
.downloads-tools input:focus, .app-form input:focus, .app-form textarea:focus, .login-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,93,136,.12); }
#category-filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; color: var(--blue-dark); background: var(--white); font-weight: 800; cursor: pointer; }
.filter.active { color: var(--white); border-color: var(--blue); background: var(--blue); }
.download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.download-card { display: flex; flex-direction: column; min-height: 360px; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 35px rgba(3,45,67,.05); }
.download-card[hidden] { display: none; }
.app-monogram { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: var(--white); background: linear-gradient(145deg,var(--blue),var(--blue-dark)); box-shadow: 0 10px 24px rgba(7,93,136,.22); font-size: 1.05rem; font-weight: 950; }
.app-category { color: var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.download-card h2 { margin: 7px 0 10px; font-size: 1.38rem; }
.download-card p { flex: 1; margin: 0 0 24px; color: var(--muted); }
.download-card .button { align-self: stretch; min-height: 48px; font-size: .9rem; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); }
.admin-entry { margin-top: 38px; text-align: right; }.admin-entry a { color: var(--muted); font-size: .82rem; }
.portal-footer { width: min(1180px, calc(100% - 40px)); margin: 20px auto 0; padding: 28px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.admin-header { min-height: 68px; padding: 0 max(20px,calc((100% - 1000px)/2)); display: flex; justify-content: space-between; align-items: center; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header a { color: var(--blue); font-weight: 800; text-decoration: none; }
.admin-main { width: min(1000px,calc(100% - 40px)); margin: 0 auto; padding: 55px 0 90px; }
.admin-title h1 { font-size: clamp(2.4rem,5vw,4rem); }
.notice { margin: 22px 0; padding: 14px 17px; border-radius: 12px; font-weight: 700; }.notice.success { color: #176238; background: #dff6e9; }.notice.error { color: #8d1212; background: #ffe5e5; }
.login-panel, .editor-panel { margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 12px 35px rgba(3,45,67,.05); }
.login-panel { max-width: 520px; }.login-panel h2 { margin-top: 0; }.login-panel label, .app-form label { display: grid; gap: 7px; color: #29414e; font-size: .88rem; font-weight: 800; }.login-panel .button { margin-top: 18px; border: 0; cursor: pointer; }
.editor-panel summary { cursor: pointer; color: var(--blue-dark); font-size: 1.08rem; font-weight: 900; }.editor-panel summary small { margin-left: 8px; color: var(--muted); font-weight: 600; }
.app-form { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.app-form .wide { grid-column: 1/-1; }.app-form textarea { min-height: 90px; resize: vertical; }.app-form .button { border: 1px solid var(--line); cursor: pointer; }
.admin-list { margin-top: 48px; }.delete-form { margin-top: 12px; text-align: right; }.delete-form button { border: 0; color: var(--red); background: transparent; font-weight: 800; cursor: pointer; }

@media (max-width: 900px) { .download-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) {
  .portal-nav a:first-child { display: none; }
  .downloads-main { padding-top: 48px; }
  .download-grid { grid-template-columns: 1fr; }
  .portal-footer { flex-direction: column; }
  .app-form { grid-template-columns: 1fr; }.app-form .wide { grid-column: auto; }
  .login-panel, .editor-panel { padding: 21px; }
}

/* TinocoTech: identidade compartilhada com a página principal. */
.portal-body{--ink:#f4f7f9;--muted:#a5b5bf;--white:#0c151e;--surface:#05080b;--line:#263a47;--blue:#28b7ff;--blue-dark:#72d7ff;background:radial-gradient(ellipse at top right,#0b2535,transparent 55%),#05080b;color:var(--ink);font-family:Arial,Helvetica,sans-serif}
.portal-body .site-header{background:#081018f2;border-color:var(--line)}
.portal-body .button.primary,.portal-body .filter.active,.portal-body .nav-cta{background:#28b7ff;color:#031018}
.portal-body .button.secondary{color:#72d7ff;border:1px solid #263a47}
.portal-body .login-panel,.portal-body .editor-panel{background:#0c151e;border-color:#263a47}
.portal-body .login-panel label,.portal-body .app-form label{color:#a5b5bf}
.portal-body .app-category,.portal-body .admin-header a{color:#72d7ff}
.portal-body :focus-visible{outline:2px solid #72d7ff;outline-offset:3px}
.portal-body .portal-nav{position:static;display:flex;gap:16px;flex-wrap:wrap;background:transparent;padding:0;box-shadow:none}
.portal-body .portal-nav a{display:inline-flex;min-height:44px;align-items:center}
@media(max-width:600px){.portal-body .nav-wrap{flex-wrap:wrap;gap:12px}.portal-body .brand img{max-width:180px}}

.portal-body .eyebrow{color:#72d7ff}.portal-body nav a{color:#c1d3df}.portal-body .brand img{width:260px;height:auto}.portal-body .nav-cta{box-shadow:none}

/* Alinhamento de ações da central e do painel. */
.portal-body .button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.45;padding:12px 20px;box-sizing:border-box}
.portal-body .download-card .button{width:100%;margin-top:auto}
.portal-body #category-filters{align-items:stretch;gap:10px}.portal-body .filter{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.portal-body .portal-nav{align-items:center}.portal-body .portal-nav a{min-height:44px;justify-content:center;margin:0}
.portal-body .app-form .button{align-self:end}.portal-body .delete-form button{min-height:44px}
@media(max-width:600px){.portal-body .portal-nav{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:12px}.portal-body .portal-nav a{padding:10px;text-align:center}.portal-body .login-panel .button{width:100%}}
