/* DiceCo hub. Brand: royal blue #1F4DE0, dark gray #4B4B4B, white. Matches Intuitive Explorer's light theme. */
:root {
  --bg: #f5f7fd; --bg2: #ffffff; --ink: #1f2430; --ink2: #4b4b4b; --muted: #5f6675; --line: #e3e7f1;
  --brand: #1f4de0; --brand2: #3d6bf5; --brand-deep: #1638b0; --brand-gray: #4b4b4b;
  --ok: #059669;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 24px rgba(16,24,40,.06);
  --shadow-lift: 0 2px 4px rgba(16,24,40,.06), 0 14px 34px rgba(31,77,224,.16);
  --r: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; }
body { font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; color: var(--brand); padding: 10px 14px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #fff 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 34px; width: auto; }
.nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink2); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: #eef2fd; color: var(--brand); text-decoration: none; }
.nav a.nav-cta { background: var(--brand); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--brand-deep); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-weight: 700; padding: 11px 18px; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; text-decoration: none; line-height: 1.2; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; box-shadow: 0 4px 14px rgba(31,77,224,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(31,77,224,.4); }
.btn-ghost { background: #eef2fd; color: var(--brand); }
.btn-white { background: #fff; color: var(--brand-deep); box-shadow: 0 6px 20px rgba(8,20,70,.25); }
.btn-white:hover { box-shadow: 0 10px 26px rgba(8,20,70,.35); }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
.btn-outline-white:hover { background: rgba(255,255,255,.16); }
.btn-white:focus-visible, .btn-outline-white:focus-visible { outline-color: #fff; }

/* Hero: royal blue with the DiceCo chain pattern, deepened on the text side for contrast */
.hero { position: relative; color: #fff; background-color: var(--brand);
  background-image: linear-gradient(100deg, rgba(14,34,120,.72) 0%, rgba(20,50,170,.45) 45%, rgba(31,77,224,0) 80%), url("/img/chain-white.png");
  background-size: auto, 150px 150px; background-repeat: no-repeat, repeat; background-position: 0 0, -30px -20px;
  padding: 88px 0 96px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: max(24px, calc((100vw - 1100px) / 2)); top: 50%; transform: translateY(-50%); width: 380px; height: 195px; background: url("/img/diceco-mark-white.png") no-repeat center / contain; opacity: .16; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 1100px; }
.pill { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: .9rem; letter-spacing: .01em; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.07; letter-spacing: -.03em; font-weight: 800; max-width: 15ch; text-shadow: 0 2px 18px rgba(8,20,70,.25); }
.hero h1 span { color: #dfe7ff; }
.lead { font-size: 1.2rem; max-width: 40rem; margin: 0 0 30px; color: #eef2ff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #e6ecff; font-size: .98rem; }
.hero-facts li::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.hero-facts strong { color: #fff; }

/* Sections */
.section { padding: 76px 0; }
.tint { background-color: #eef2fc; background-image: url("/img/chain-blue.png"); background-size: 170px 170px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink2); }
h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.sub { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 22px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #cdd7f5; }

/* Project cards */
.projects { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.project { display: flex; flex-direction: column; overflow: hidden; }
.project-media { aspect-ratio: 640 / 336; background: #e9eefb; border-bottom: 1px solid var(--line); overflow: hidden; }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-media.placeholder { display: grid; place-items: center; background-color: #8fa6ea; background-image: url("/img/chain-white.png"); background-size: 110px 110px; }
.project-media .ph-mark { width: 96px; height: auto; object-fit: contain; opacity: .9; }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; }
.project-body p { margin: 0 0 12px; color: var(--ink2); }
.project-body .btn { margin-top: auto; }
.project.soon .project-media { opacity: .6; }
.project.soon { background: #fafbfe; border-style: dashed; border-color: #cfd8ef; box-shadow: none; }
.project.soon h3 { color: #4b5563; }
.project.soon .project-body p { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.badge.live { background: #dcfce7; color: #166534; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.badge.soon { background: #eceff5; color: #4b5563; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tags span { font-size: .78rem; font-weight: 600; color: var(--brand); background: #eef2fd; padding: 3px 9px; border-radius: 8px; }

/* Proof strip */
.proof { background: #4b4b4b; color: #f1f2f4; padding: 34px 0; }
.proof-inner { display: flex; gap: 18px; align-items: flex-start; }
.proof h2 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin-bottom: 6px; }
.proof p { margin: 0; color: #e4e6ea; max-width: 62rem; }
.proof p.proof-link { margin-top: 10px; }
.proof a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 3px; }
.proof a:hover { text-decoration-color: #fff; }
.proof a:focus-visible { outline-color: #fff; }
.proof-dot { flex: none; width: 14px; height: 14px; margin-top: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 5px rgba(52,211,153,.22); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(52,211,153,.05); } }

/* Benefits */
.benefits { grid-template-columns: repeat(4, 1fr); }
.benefit { padding: 24px 22px; }
.benefit p { margin: 0; color: var(--ink2); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, var(--brand2), var(--brand)); box-shadow: 0 4px 12px rgba(31,77,224,.28); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step { padding: 26px 24px; position: relative; }
.step p { margin: 0; color: var(--ink2); }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; color: var(--brand); background: #eef2fd; border: 2px solid #cdd7f5; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.faq details[open] { border-color: #c6d2f4; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.07rem; color: var(--ink); position: relative; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef2fd; color: var(--brand); font-size: 1.25rem; font-weight: 700; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--brand); }
.answer { padding: 0 22px 18px; color: var(--ink2); }
.answer p { margin: 0 0 12px; }
.answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact { color: #fff; text-align: center; padding: 80px 0; background-color: var(--brand);
  background-image: linear-gradient(180deg, rgba(14,34,120,.35), rgba(14,34,120,.55)), url("/img/chain-white.png"); background-size: auto, 150px 150px; }
.contact h2 { color: #fff; margin-bottom: 12px; }
.contact-inner > p { max-width: 36rem; margin: 0 auto 26px; color: #eef2ff; font-size: 1.1rem; }
.contact .email { margin: 22px auto 0; font-size: 1rem; color: #e6ecff; }
.contact .email a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.contact .email a:focus-visible { outline-color: #fff; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: .92rem; }
.foot-row { display: flex; align-items: center; gap: 22px; }
.foot-logo img { display: block; width: 72px; height: auto; }
.foot-text p { margin: 2px 0; }
.foot-text p:first-child { color: var(--ink2); font-weight: 700; }

/* Responsive */
@media (max-width: 1080px) { .hero::after { width: 260px; height: 133px; opacity: .12; } }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero::after { display: none; }
  .lead { font-size: 1.08rem; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .wrap.top-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 6px; gap: 6px; }
  nav { width: 100%; overflow-x: auto; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
  html { scroll-padding-top: 104px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .brand-logo { height: 28px; }
  .benefits { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .foot-row { flex-direction: column; text-align: center; gap: 12px; }
  .proof-inner { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* 404 page */
.notfound { text-align: center; }
.notfound h1 { color: var(--brand); margin: 24px 0 8px; }

/* Come back here block */
.comeback { background: #fff; padding: 44px 0; border-bottom: 1px solid var(--line); }
.comeback h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 4px 0 18px; color: var(--ink); }
.comeback-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comeback-list li { background: var(--bg); border-left: 5px solid var(--brand); border-radius: 12px; padding: 14px 18px; font-size: 1.05rem; }
.comeback-list li span { display: inline-block; font-weight: 800; color: var(--ok); }
.comeback-note { margin: 18px 0 0; font-weight: 700; color: var(--brand-deep); }
