:root {
  --navy: #14213d;
  --blue: #3a5bff;
  --lilac: #eef0ff;
  --yellow: #ffd23f;
  --white: #ffffff;
  --grey: #5b6478;
  --line: #e3e6ef;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; font-size: 1.0625rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-block; font: 700 1rem "Manrope", sans-serif; padding: 13px 24px; border-radius: 10px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; padding: 9px 18px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 #2338b8; }
.btn-blue:hover { box-shadow: 0 5px 0 #2338b8; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--navy); }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--grey); }
.nav a:hover { color: var(--navy); }
@media (max-width: 720px) { .nav { display: none; } }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(var(--lilac), var(--white)); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 800; }
.sub { font-size: 1.15rem; color: var(--grey); max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.note { color: var(--grey); font-size: .95rem; }

.board-wrap { background: var(--navy); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(20,33,61,.6); }
.board-hint { color: #c8cdea; font-size: .9rem; margin: 0 4px 12px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { background: #1f2d4f; border-radius: 12px; padding: 10px; min-height: 260px; transition: background .15s; }
.col.over { background: #2b3c69; outline: 2px dashed var(--yellow); outline-offset: -4px; }
.col-title { color: #fff; font-size: .95rem; font-weight: 700; margin: 2px 4px 10px; display: flex; justify-content: space-between; letter-spacing: 0; }
.count { background: rgba(255,255,255,.15); border-radius: 999px; padding: 0 8px; font-size: .8rem; line-height: 1.6; }
.cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.card { position: relative; background: #fff; border-radius: 10px; padding: 10px 40px 12px 12px; font-size: .9rem; font-weight: 600; cursor: grab; user-select: none; line-height: 1.35; }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .4; }
.card.just-moved { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.label { display: block; width: max-content; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-bottom: 6px; }
.l-design { background: #ffe3d6; color: #b5461b; }
.l-dev { background: #dde3ff; color: #2338b8; }
.l-ops { background: #d4f3e9; color: #0d7257; }
.who { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-size: .65rem; display: grid; place-items: center; font-weight: 800; }
.col[data-col="done"] .card { text-decoration: line-through; text-decoration-color: rgba(20,33,61,.4); color: var(--grey); }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: #fff; }
.progress p { margin: 0; font-size: .9rem; white-space: nowrap; }
.bar { flex: 1; height: 8px; background: #2b3c69; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--yellow); border-radius: 999px; transition: width .4s ease; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .board { grid-template-columns: 1fr; }
  .col, .cards { min-height: 0; }
  .cards { min-height: 44px; }
}

/* Trust */
.trust { padding: 36px 0; border-bottom: 1px solid var(--line); text-align: center; }
.trust p { color: var(--grey); font-weight: 600; font-size: .95rem; }
.logos { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px 48px; font-weight: 800; font-size: 1.2rem; color: #9aa1b5; }

/* Features */
.features, .how, .pricing, .quotes, .faq { padding: 96px 0; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 22ch; margin-bottom: 48px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature.reverse .feature-text { order: 2; }
.feature h3 { font-size: 1.6rem; }
.feature p { color: var(--grey); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.feature-visual { background: var(--lilac); border-radius: 20px; padding: 32px; min-height: 260px; }

.week { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(4, 34px); gap: 10px 6px; }
.week span { font-weight: 700; color: var(--grey); font-size: .85rem; text-align: center; }
.week i { grid-column: var(--s) / var(--e); grid-row: calc(var(--r) + 1); background: var(--c); border-radius: 8px; }

.v-load { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.load { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; }
.load b { font-size: .95rem; }
.load span { height: 16px; border-radius: 999px; background: linear-gradient(to right, var(--c, var(--blue)) var(--w), #d6dbf5 var(--w)); }

.v-int { position: relative; }
.hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 22px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; z-index: 1; }
.v-int::before { content: ""; position: absolute; inset: 22% 18%; border: 2px dashed #b4bdf3; border-radius: 50%; }
.sat { position: absolute; background: #fff; border: 2px solid var(--navy); border-radius: 12px; padding: 6px 14px; font-weight: 700; font-size: .9rem; }
.s1 { left: 10%; top: 14%; } .s2 { right: 10%; top: 18%; } .s3 { left: 14%; bottom: 14%; } .s4 { right: 14%; bottom: 12%; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-text { order: 0; }
}

/* How */
.how { background: var(--navy); color: #fff; }
.how .section-title { color: #fff; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--yellow); padding-top: 22px; }
.steps li::before { content: counter(step); font-size: 2.6rem; font-weight: 800; color: var(--yellow); display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: #c8cdea; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Pricing */
.billing { display: inline-flex; background: var(--lilac); border-radius: 12px; padding: 4px; margin: -24px 0 36px; }
.billing button { font: 700 .95rem "Manrope", sans-serif; border: 0; background: transparent; padding: 10px 18px; border-radius: 9px; cursor: pointer; color: var(--grey); }
.billing button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(20,33,61,.15); }
.billing em { font-style: normal; color: #0d7257; font-size: .8rem; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1.5px solid var(--line); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan-for { color: var(--grey); font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 24px; }
.amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
.per { color: var(--grey); font-size: .9rem; }
.plan .ticks { margin-bottom: 28px; flex: 1; }
.plan .btn { text-align: center; }
.plan.featured { border: 2px solid var(--blue); background: var(--lilac); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--yellow); font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

/* Quotes */
.quotes { background: var(--lilac); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.quote-grid figure { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
blockquote { margin: 0; font-size: 1.2rem; font-weight: 600; line-height: 1.45; }
blockquote em { font-style: normal; background: var(--yellow); padding: 0 4px; }
figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--grey); }
figcaption b { display: block; color: var(--navy); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq-list details { border-bottom: 1.5px solid var(--line); padding: 20px 0; }
.faq-list summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { color: var(--grey); margin: 12px 0 0; }
@media (max-width: 760px) { .faq-inner { grid-template-columns: 1fr; gap: 0; } }

/* Signup */
.signup { background: var(--blue); color: #fff; padding: 88px 0; text-align: center; }
.signup h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
.signup p { color: #dfe4ff; }
.signup-form { display: flex; gap: 10px; max-width: 520px; margin: 28px auto 0; }
.signup-form input { flex: 1; min-width: 0; font: 500 1rem "Manrope", sans-serif; padding: 14px 16px; border-radius: 10px; border: 2px solid transparent; }
.signup-form input:focus { outline: none; border-color: var(--yellow); }
.form-msg { min-height: 1.6em; margin-top: 14px; font-weight: 600; }
.form-msg.error { color: var(--yellow); }
@media (max-width: 520px) { .signup-form { flex-direction: column; } }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--grey); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--navy); }
.brand.small { font-size: 1.05rem; color: var(--navy); }
