/* kimuraCRM — estilo minimalista, foco em conversão e legibilidade. */

:root {
  --blue-50: #EFF6FF;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --ink: #0F172A;
  --ink-muted: #475569;
  --ink-dim: #94A3B8;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --success: #10B981;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
/* Logo: icone + texto composto via HTML, nao dentro do SVG
   (dentro do SVG o texto sofria down-scale e ficava ilegivel). */
.logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.logo-icon {
  width: 56px; height: 56px; display: block; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink);
}
.logo-name em {
  font-style: normal; font-weight: 300; color: var(--blue-600);
}
.logo-sub {
  font-size: 14px; font-weight: 500;
  color: var(--ink-muted); letter-spacing: 0.02em;
  margin-top: 6px;
}
.logo-sub .kanji { font-weight: 600; color: var(--blue-600); margin-right: 6px; }
@media (max-width: 640px) {
  .logo-icon { width: 44px; height: 44px; }
  .logo-name { font-size: 22px; }
  .logo-sub { font-size: 12px; }
}
nav a {
  color: var(--ink-muted); margin-left: 24px; font-weight: 500; font-size: 15px;
}
nav a:hover { color: var(--ink); text-decoration: none; }
.lang-switch {
  display: inline-flex; gap: 6px; margin-left: 24px;
  font-size: 13px; color: var(--ink-dim);
}
.lang-switch a { color: var(--ink-dim); padding: 2px 6px; border-radius: 4px; }
.lang-switch a.active { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }

/* Hero */
.hero {
  padding: clamp(40px, 8vw, 80px) 0 clamp(40px, 6vw, 60px);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(37,99,235,.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
}
.hero-visual { perspective: 1400px; }
.stack { position: relative; cursor: pointer; padding: 32px 32px 0 0; }
.window-mock {
  border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.4,.0,.2,1), box-shadow 0.4s ease, opacity 0.4s ease;
  width: 100%;
}
.window-mock.is-front {
  position: relative;
  transform: translate(0, 0) rotate(-0.5deg);
  box-shadow: 0 30px 80px -20px rgba(15,23,42,0.30), 0 12px 30px -10px rgba(15,23,42,0.20);
  z-index: 2;
}
.window-mock.is-back {
  position: absolute; top: 0; right: 0; left: 32px;
  transform: translate(0, -28px) rotate(2deg);
  box-shadow: 0 18px 40px -16px rgba(15,23,42,0.25);
  opacity: 0.92;
  z-index: 1;
}
.stack:hover .window-mock.is-back { transform: translate(8px, -34px) rotate(2.5deg); }
.stack:hover .window-mock.is-front { transform: translate(-2px, 2px) rotate(-1deg); }
.window-bar {
  background: #f3f4f6;
  border-bottom: 1px solid var(--line);
  padding: 9px 14px;
  display: flex; gap: 7px;
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.window-bar .dot-r { background: #ef4444; }
.window-bar .dot-y { background: #f59e0b; }
.window-bar .dot-g { background: #22c55e; }
.window-mock img { display: block; width: 100%; height: auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 780px;
}
.hero h1 .accent { color: var(--blue-600); }
.hero p.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 0 36px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary {
  background: var(--blue-600); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-700); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--blue-50); color: var(--blue-700);
}
.badge.success { background: rgba(16,185,129,.1); color: var(--success); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-soft); }

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-intro {
  font-size: 18px; color: var(--ink-muted); max-width: 640px; margin: 0 0 48px;
}

/* Feature grid */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: all .15s;
}
.card:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* Screenshots */
.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.shot {
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--blue-50) 0%, var(--bg) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-dim); font-size: 14px; font-weight: 500;
  padding: 24px; text-align: center;
  transition: border-color .15s;
}
.shot strong { color: var(--ink-muted); font-size: 15px; margin-bottom: 6px; display: block; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 2px); }
.shot.has-img { padding: 0; border: 1px solid var(--line); position: relative; overflow: hidden; margin: 0; }
.shot.has-img figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff; padding: 24px 14px 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.2px;
}
.shot.has-img img { cursor: zoom-in; transition: transform 0.2s ease; }
.shot.has-img:hover img { transform: scale(1.02); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
  cursor: zoom-out;
  animation: lb-fade 0.15s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: 0;
  color: #fff; font-size: 32px; line-height: 1;
  cursor: pointer; padding: 4px 12px;
  opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center; color: #fff;
  font-size: 14px; font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 12px; background: var(--bg);
}
details[open] { border-color: var(--blue-500); }
details summary {
  cursor: pointer; font-weight: 600; list-style: none; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center;
}
details summary::after { content: "+"; color: var(--blue-600); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 14px 0 0; color: var(--ink-muted); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0; color: var(--ink-dim); font-size: 14px;
}
footer .wrap {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--ink-muted); margin-left: 20px; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  nav a:not(.lang-switch a) { display: none; }
  .lang-switch { margin-left: 0; }
  header .wrap { flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }

  section { padding: 48px 0; }
  .section-intro { font-size: 16px; margin-bottom: 32px; }

  .hero-grid { gap: 32px; }
  .hero p.lead { font-size: 17px; margin-bottom: 28px; }
  .badges { margin-top: 16px; }

  /* Stack do hero menos agressivo no mobile */
  .stack { padding: 24px 16px 0 0; }
  .window-mock.is-back { left: 16px; transform: translate(0, -18px) rotate(2deg); }
  .stack:hover .window-mock.is-back { transform: translate(4px, -22px) rotate(2.5deg); }
  .window-bar { padding: 7px 10px; }
  .window-bar .dot { width: 9px; height: 9px; }

  /* CTA full-width em mobile pra ficar mais clicavel */
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; width: 100%; padding: 14px 18px; }

  .grid { gap: 14px; }
  .card { padding: 20px; }

  .shots { gap: 14px; }

  details { padding: 16px 18px; }
  details summary { font-size: 15px; }

  footer .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer a { margin-left: 0; margin-right: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .logo-sub { display: none; }
}
