/* Essai palette pastel SaaS — sky + periwinkle */
:root {
  --sky: #e0f2fe;
  --sky-deep: #bae6fd;
  --primary: #6366f1;
  --primary-soft: #818cf8;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --white: #ffffff;
  --line: #e2e8f0;
  --mint: #a7f3d0;
  --baby: #bfdbfe;
  --lilac: #ddd6fe;
  --bg: #e0f2fe;
  --shadow: 0 18px 50px rgba(30, 41, 59, 0.08);
  --shadow-soft: 0 10px 28px rgba(99, 102, 241, 0.12);
  --font: "Avenir Next", "Nunito", "Segoe UI", "Trebuchet MS", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --page: min(1280px, calc(100% - clamp(1.5rem, 5vw, 4rem) * 2));
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 18px;
  --navy: #1e293b;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 50% -12%, rgba(129, 140, 248, 0.28), transparent 58%),
    radial-gradient(800px 420px at 100% 30%, rgba(186, 230, 253, 0.7), transparent 55%),
    radial-gradient(700px 400px at 0% 80%, rgba(221, 214, 254, 0.45), transparent 50%),
    linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 48%, #dbeafe 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem var(--gutter);
}
.nav-brand img {
  width: min(148px, 40vw);
  height: auto;
  aspect-ratio: 834 / 239;
}
.btn-nav {
  padding: 0.55rem 1.15rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  border: 1px solid rgba(30, 41, 59, 0.08);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.04);
}
.btn-nav:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: #fff;
  color: var(--primary);
}

.hero-inner {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  width: var(--page);
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vh, 2.5rem) 0 clamp(1.35rem, 3vh, 2rem);
}

.hero-logo {
  width: min(300px, 70vw);
  height: auto;
  aspect-ratio: 834 / 239;
  margin: 0 auto 0.2rem;
  animation: rise 0.85s ease both;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 20ch;
  animation: rise 0.85s ease 0.06s both;
}
.hero-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 34ch;
  animation: rise 0.85s ease 0.12s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.45rem;
  animation: rise 0.85s ease 0.18s both;
}

.hero-visual {
  position: relative;
  width: 100%;
  margin-top: auto;
  animation: fade-up 1s ease 0.28s both;
}
.hero-visual-glow {
  position: absolute;
  left: 10%;
  right: 0;
  bottom: -8%;
  height: 60%;
  background: radial-gradient(ellipse at 55% 80%, rgba(129, 140, 248, 0.28), transparent 68%);
  pointer-events: none;
  filter: blur(10px);
}
.hero-visual-plane {
  position: relative;
  width: 100%;
  padding: 0 0 0 var(--gutter);
}

.mock-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  width: 100%;
  min-height: clamp(220px, 30vh, 340px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-bottom: 0;
  border-radius: 24px 0 0 0;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.mock-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 249, 255, 0.95) 100%);
  border-right: 1px solid rgba(30, 41, 59, 0.07);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mock-brand {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.07);
}
.mock-logo {
  height: 12px;
  width: 68%;
  border-radius: 8px;
  background: var(--grad);
}
.mock-hello {
  height: 9px;
  width: 48%;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.14);
}
.mock-nav { display: grid; gap: 0.4rem; flex: 1; }
.mock-nav span {
  display: flex;
  align-items: center;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  padding: 0 0.65rem;
}
.mock-nav span i {
  display: block;
  height: 8px;
  width: 58%;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.12);
}
.mock-nav span:nth-child(2) i { width: 64%; }
.mock-nav span:nth-child(3) i { width: 52%; }
.mock-nav span:nth-child(4) i { width: 70%; }
.mock-nav span.on {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(129, 140, 248, 0.16));
  box-shadow: inset 3px 0 0 var(--primary);
}
.mock-nav span.on i { background: rgba(30, 41, 59, 0.35); width: 46%; }
.mock-sync {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
}
.mock-sync i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(167, 243, 208, 0.35);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.mock-sync b {
  height: 7px;
  width: 2.6rem;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.14);
}
.mock-main {
  padding: 1.2rem 1.45rem 1.35rem;
  background:
    radial-gradient(520px 220px at 85% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
    rgba(248, 250, 252, 0.72);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
}
.mock-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.mock-title {
  height: 16px;
  width: min(160px, 36%);
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.78);
  margin-bottom: 0.45rem;
}
.mock-sub {
  height: 9px;
  width: min(220px, 48%);
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.14);
}
.mock-btn {
  height: 34px;
  width: 7.5rem;
  border-radius: 10px;
  background: var(--grad);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
  flex-shrink: 0;
}
.mock-tabs {
  display: flex;
  gap: 0.4rem;
}
.mock-tabs i {
  display: block;
  height: 28px;
  width: 5.2rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 41, 59, 0.1);
  background: rgba(255, 255, 255, 0.7);
}
.mock-tabs i.on {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}
.mock-rows { display: grid; gap: 0.65rem; }
.mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 41, 59, 0.07);
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.035);
  width: 100%;
  animation: row-in 0.7s ease both;
}
.mock-row.r1 { animation-delay: 0.42s; width: 100%; }
.mock-row.r2 { animation-delay: 0.52s; width: 96%; }
.mock-row.r3 { animation-delay: 0.62s; width: 90%; }
.mock-row .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.75);
  background: transparent;
}
.mock-row .dot.done {
  background: var(--mint);
  border-color: #34d399;
  box-shadow: inset 0 0 0 3px #fff;
}
.mock-row .dot.hot {
  border-color: #e07a6a;
  box-shadow: 0 0 0 3px rgba(224, 122, 106, 0.12);
}
.mock-row .lines { display: grid; gap: 0.35rem; min-width: 0; }
.mock-row .lines b {
  display: block;
  height: 9px;
  width: 55%;
  border-radius: 5px;
  background: rgba(30, 41, 59, 0.55);
}
.mock-row.r2 .lines b { width: 48%; opacity: 0.45; }
.mock-row .lines em {
  display: block;
  height: 7px;
  width: 32%;
  border-radius: 4px;
  background: rgba(30, 41, 59, 0.12);
}
.mock-row .chip {
  display: block;
  height: 22px;
  width: 3.4rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.16);
}
.mock-row .chip.soft { background: rgba(30, 41, 59, 0.06); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes row-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  50% { opacity: 0.45; transform: scale(0.92); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-color: rgba(30, 41, 59, 0.08);
}
.btn-secondary:hover {
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--primary);
  background: #fff;
}

.wrap {
  width: var(--page);
  margin: 0 auto;
}
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.section-lead {
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 44ch;
  font-weight: 500;
}

.features { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 3rem);
}
.feature {
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.05);
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.feature-accent {
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  margin-bottom: 0.9rem;
  transition: width 0.25s ease;
}
.feature:hover .feature-accent { width: 3.4rem; }

.cta-band {
  background:
    radial-gradient(700px 300px at 40% 0%, rgba(129, 140, 248, 0.18), transparent 70%),
    var(--sky);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem 2.5rem;
  text-align: left;
}
.cta-band .section-title { margin-bottom: 0.45rem; }
.cta-band .section-lead { margin: 0; text-align: left; }

footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-inner img {
  width: 110px;
  height: auto;
  aspect-ratio: 834 / 239;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}
.footer-inner a {
  color: var(--primary);
  font-weight: 700;
}
.footer-inner a:hover { color: var(--primary-soft); }
.footer-inner p { margin: 0; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .mock-shell { grid-template-columns: 160px 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-bottom: 1.25rem; }
  .hero h1 { max-width: none; }
  .hero-visual-plane { padding-left: 1rem; }
  .mock-shell { grid-template-columns: 1fr; min-height: 180px; }
  .mock-side { display: none; }
  .cta-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band .section-lead { text-align: center; }
  footer { padding: 1.5rem 0 1.75rem; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }
  .footer-inner img { width: 96px; }
  .footer-meta { flex-direction: column; gap: 0.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero h1, .hero-lead, .hero-cta, .hero-visual { animation: none !important; }
  .mock-row, .mock-sync i { animation: none !important; }
  .feature:hover { transform: none; }
}
