/* logicduck.io. Colors are taken from the logo. */

:root {
  --ink: #142033;
  --ink-2: #3c4a5c;
  --muted: #667085;
  --line: #e6e9ee;
  --blue: #0071bc;
  --blue-ink: #005a96;
  --blue-wash: #eaf3fb;
  --gold: #ebae30;
  --gold-wash: #fdf4de;
  --dark: #0d1a2b;
  --dark-2: #162840;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 18px/1.6 var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.12; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
main { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 650; text-decoration: none;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-ghost { background: transparent; color: var(--blue-ink); }
.btn-ghost:hover { background: var(--blue-wash); color: var(--blue-ink); border-color: var(--blue); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1c1606; }
.btn-gold:hover { background: #f4bf52; border-color: #f4bf52; }

/* Header */
.site-header { padding: 18px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .mark { display: block; width: 124px; }
.nav nav { display: flex; gap: 28px; font-size: 16px; font-weight: 600; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--blue-ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Hero */
.hero { padding: 8px 0 72px; }
.hero .wrap { text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 780; letter-spacing: -0.04em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 90%, transparent 90%);
}
.hero .lede { margin: 24px auto 0; max-width: 32em; font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--ink-2); }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* The logo scene: greets the visitor at the top of the page. */
/* The quote under the logo, typed out by site.js. Hidden until the script has taken over (a CSS fallback shows it after 2.5 s if it never does), and its full text always takes up room so nothing below it moves while it types. */
.quote { margin: 0 auto 40px; max-width: 36em; }
.quote blockquote { margin: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.quote blockquote p { margin: 0; }
.quote .by { margin-top: 12px; font-size: 14.5px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); }
.quote .by::before { content: "\2014\00a0"; }
.q-rest { visibility: hidden; }
.q-typed { border-right: 3px solid var(--blue); margin-right: -3px; animation: q-blink 1.1s steps(1) infinite; }
.quote.done .q-typed { border-right: 0; margin-right: 0; animation: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes q-blink { 50% { border-right-color: transparent; } }
@keyframes q-show { to { visibility: visible; } }
@media (prefers-reduced-motion: no-preference) {
  .quote { visibility: hidden; animation: q-show 0s 2.5s forwards; }
  .quote.live { visibility: visible; animation: none; }
  .quote .by { transition: opacity 0.6s ease; }
  .quote.live:not(.done) .by { opacity: 0; }
}
.lg { width: min(100%, 800px); height: auto; display: block; margin: 0 auto 32px; border-radius: 24px; }
.lg * { transform-box: fill-box; transform-origin: center; }
.lg-logo { mix-blend-mode: multiply; }
.lg-spark-a, .lg-pulse { opacity: 0; }
.lg-star { opacity: 0; }
.lg-halo { opacity: 0; }
.lg-logo { animation: lg-in 1s ease-out both; }
.lg-trace { stroke-dasharray: 1; animation: lg-draw 7s ease-in-out infinite; }
.lg-node { animation: lg-node 7s ease-in-out infinite; }
.lg-pulse { stroke-dasharray: 0.1 2; animation: lg-travel 7s linear infinite; }
.lg-pulse-b { animation-delay: 0.15s; }
.lg-spark-a { animation: lg-spark 7s ease-out infinite; }
.lg-eye { opacity: 0; animation: lg-eye 7s ease-out infinite; }
.lg-star { animation: lg-star 7s ease-out infinite; }
.lg-star-b { animation-delay: 0.18s; }
.lg-halo { animation: lg-halo 7s ease-in-out infinite; }
@keyframes lg-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes lg-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 22%, 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lg-node { 0%, 4% { transform: scale(0); opacity: 0; } 12% { transform: scale(1.25); opacity: 1; } 16%, 86% { transform: none; opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes lg-travel { 0%, 24% { opacity: 0; stroke-dashoffset: 0.1; } 25% { opacity: 1; stroke-dashoffset: 0.1; } 44% { opacity: 1; stroke-dashoffset: -0.92; } 45%, 100% { opacity: 0; stroke-dashoffset: -0.92; } }
@keyframes lg-spark { 0%, 43% { opacity: 0; transform: scale(0.3); } 47% { opacity: 0.95; transform: scale(1.5); } 60%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes lg-eye { 0%, 46% { opacity: 0; transform: scale(0.4); } 50% { opacity: 0.9; transform: scale(1.3); } 62%, 100% { opacity: 0; transform: scale(2); } }
@keyframes lg-star { 0%, 47% { opacity: 0; transform: translate(0, 0) scale(0) rotate(-40deg); } 53% { opacity: 1; } 56% { transform: scale(1.15) rotate(0); } 70% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes lg-halo { 0%, 44% { opacity: 0; } 52% { opacity: 1; } 78%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lg, .lg * { animation: none !important; }
  .lg-star, .lg-halo { opacity: 1; }
  .lg-trace, .lg-node { opacity: 1; stroke-dashoffset: 0; }
  .lg-star { opacity: 1; }
}

/* Sections */
section { padding: 88px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 750; }

/* Product */
.product { background: var(--dark); color: #e9eef5; }
.product .kicker { color: var(--gold); }
.product .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.product .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.product .brand img { width: 40px; height: 40px; }
.product h2 { color: #fff; }
.product p { margin-top: 18px; color: #b7c2d3; }
.product ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.product li { padding-left: 28px; position: relative; color: #dbe3ee; }
.product li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) translateY(-3px); }
.product .btn { margin-top: 30px; }
.frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9edf2; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3cad4; }
.caption { margin-top: 12px; font-size: 14px; color: #8d9bb0; }

/* Contact */
.contact-box { padding: 56px 48px; border-radius: 24px; background: var(--blue-wash); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 48px; }
.contact-box h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.contact-box .contact-copy p { margin-top: 10px; color: var(--ink-2); max-width: 32em; }
.form { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(20, 32, 51, 0.06), 0 18px 40px -22px rgba(20, 32, 51, 0.35); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.form label .opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea { font: 16px/1.4 var(--font); color: var(--ink); width: 100%; padding: 12px 13px; border: 1px solid #c9d1dc; border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--blue-wash); border-color: var(--blue); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; margin-top: 20px; cursor: pointer; font: inherit; font-weight: 650; }
.form .btn:disabled { opacity: 0.7; cursor: default; }
.form .fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form-status.ok { background: #e9f7ee; color: #14532d; }
.form-status.err { background: #fdecea; color: #8a1c1c; }
.form.sent .fields, .form.sent .btn, .form.sent .fine { display: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: var(--muted); }

/* 404 */
.missing { width: min(640px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 48px; text-align: center; }
.missing img { width: min(280px, 70%); margin: 0 auto; }
.missing h1 { margin: 8px 0 20px; font-size: 1.6rem; }

@media (max-width: 900px) {
  .product .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact-box { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 28px; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .nav nav { gap: 18px; font-size: 15px; }
  .nav .mark { width: 96px; }
  .hero { padding-bottom: 56px; }
  .hero .ctas .btn, .contact-box .btn, .product .btn { width: 100%; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px; }
  .contact-box { padding: 28px 18px; }
}
