/* DicoX site — the app's dawn look: lavender aurora, white cards, night
   dusk card, violet→blue titles, blue→pink primary action. No frameworks. */
:root {
  --bg: #f7f5ff;
  --ink: #221e3a;
  --ink-60: rgba(34, 30, 58, 0.64);
  --ink-45: rgba(34, 30, 58, 0.48);
  --hair: rgba(34, 30, 58, 0.08);
  --violet: #7b4dff;
  --blue: #4c7dff;
  --night: #1e2152;
  --brand: linear-gradient(90deg, #7b4dff, #4c7dff);
  --cta: linear-gradient(90deg, #4f8dff, #9a6bff, #ff5fa2);
  --card-shadow: 0 14px 34px rgba(108, 92, 231, 0.1);
  --phone-shadow: 0 30px 60px rgba(40, 30, 110, 0.26);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, .brand { font-family: Sora, Inter, sans-serif; letter-spacing: -0.02em; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pastel colour fields behind everything */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 48% at 0% 0%, rgba(214, 194, 255, 0.8), transparent 70%),
    radial-gradient(50% 40% at 100% 4%, rgba(255, 196, 225, 0.62), transparent 70%),
    radial-gradient(62% 52% at 100% 100%, rgba(188, 208, 255, 0.72), transparent 70%);
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 255, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--ink); }
.brand img { border-radius: 9px; box-shadow: 0 6px 16px rgba(91, 77, 255, 0.3); }
.brand b { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav .links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; margin-left: auto; }
.nav .links a { color: var(--ink-60); }
.nav .links a:hover { color: var(--ink); }
.nav-cta { visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.nav.show-cta .nav-cta { visibility: visible; opacity: 1; transform: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16.5px; color: #fff; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { font-size: 22px; }
.btn.cta { background: var(--cta); box-shadow: 0 14px 30px rgba(255, 95, 162, 0.3); }
.btn.sm { padding: 10px 18px; font-size: 14.5px; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; box-shadow: var(--card-shadow);
  font-size: 14px; font-weight: 600; color: var(--ink-60);
}
.live { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 4.9vw, 60px); line-height: 1.06; font-weight: 800; }
.hero h1 span { white-space: nowrap; }
.lede { margin-top: 20px; max-width: 520px; font-size: 18.5px; color: var(--ink-60); }
.cta-row { margin-top: 32px; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--ink-45); }
.hero-visual { position: relative; height: 600px; }
.hero-visual .phone { position: absolute; }
.hero-visual .front { width: 280px; left: 50%; top: 0; transform: translateX(-30%); z-index: 2; }
.hero-visual .back { width: 244px; left: 50%; top: 56px; transform: translateX(-100%) rotate(-7deg); opacity: 0.96; }

/* phone frame: the screenshot plus a clean status bar on top */
.phone {
  width: 220px; border-radius: 40px; padding: 9px;
  background: #15132c;
  box-shadow: var(--phone-shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.screen { position: relative; border-radius: 31px; overflow: hidden; background: var(--bg); aspect-ratio: 9 / 20; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 7%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 9%;
  font: 600 11.5px Inter, sans-serif; color: var(--ink);
}
.status::after {
  content: ""; position: absolute; left: 50%; top: 32%; width: 9px; height: 9px;
  border-radius: 50%; background: #0d0c1d; transform: translateX(-50%);
}
.status .sys { display: flex; gap: 4px; font-size: 13px; }

/* preview gallery */
section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; text-align: center; }
.sub { margin: 10px auto 0; max-width: 560px; text-align: center; color: var(--ink-60); font-size: 17px; }
.gallery {
  display: flex; gap: 26px; margin-top: 36px; padding: 12px 20px 36px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: none; scroll-snap-align: center; text-align: center; }
.shot figcaption { margin-top: 18px; font-size: 14.5px; color: var(--ink-60); max-width: 220px; }
.shot figcaption b { display: block; font-family: Sora, Inter, sans-serif; font-size: 17px; color: var(--ink); }
@media (min-width: 1240px) { .gallery { justify-content: center; overflow: visible; } }

/* features */
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--hair); border-radius: 24px; padding: 26px; box-shadow: var(--card-shadow); }
.card h3 { margin: 16px 0 6px; font-size: 18px; }
.card p { font-size: 15px; color: var(--ink-60); }
.badge {
  width: 50px; height: 50px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
}
.b-blue { background: linear-gradient(135deg, #6fa0ff, #3f6dff); box-shadow: 0 8px 18px rgba(63, 109, 255, 0.3); }
.b-pink { background: linear-gradient(135deg, #ff7aa8, #f43f7e); box-shadow: 0 8px 18px rgba(244, 63, 126, 0.3); }
.b-purple { background: linear-gradient(135deg, #b794ff, #7c4dff); box-shadow: 0 8px 18px rgba(124, 77, 255, 0.3); }
.b-sky { background: linear-gradient(135deg, #5cc8ff, #1e9bf0); box-shadow: 0 8px 18px rgba(30, 155, 240, 0.3); }
.b-orange { background: linear-gradient(135deg, #ffc25c, #ff8a1f); box-shadow: 0 8px 18px rgba(255, 138, 31, 0.3); }
.b-green { background: linear-gradient(135deg, #4be0a0, #12b981); box-shadow: 0 8px 18px rgba(18, 185, 129, 0.3); }
.b-gold { background: linear-gradient(135deg, #ffe08a, #ffa928); color: #5c3b00; box-shadow: 0 8px 18px rgba(255, 169, 40, 0.35); }

/* steps */
.steps { list-style: none; counter-reset: step; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: 24px; padding: 30px 26px 26px; box-shadow: var(--card-shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font: 800 16px Sora, sans-serif;
}
.steps h3 { margin: 14px 0 4px; font-size: 18px; }
.steps p { font-size: 15px; color: var(--ink-60); }

/* host dusk card */
.dusk {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px 48px; color: #fff;
  background:
    radial-gradient(70% 90% at 78% 115%, rgba(255, 178, 122, 0.75), rgba(255, 127, 138, 0.25) 45%, transparent 70%),
    linear-gradient(180deg, #1b1d4a 0%, #2e2b68 45%, #5b3f80 78%, #b86b86 100%);
  box-shadow: 0 26px 50px rgba(42, 35, 102, 0.3);
}
.dusk::after {
  /* the two mountain ridges of the in-app identity card */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0 70 L100 25 L200 60 L300 5 L400 55 L500 15 L600 70 L700 30 L800 60 L800 200 L0 200Z' fill='%233b3474' fill-opacity='.9'/%3E%3Cpath d='M0 130 L115 100 L230 140 L345 110 L460 150 L575 120 L690 150 L800 130 L800 200 L0 200Z' fill='%23191a3f'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.dusk-copy { position: relative; z-index: 1; max-width: 560px; }
.dusk h2 { text-align: left; margin-top: 18px; color: #fff; }
.dusk p { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.dusk .hint { display: inline-block; margin-top: 22px; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }

/* faq */
details { margin-top: 12px; background: #fff; border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--card-shadow); }
details:first-of-type { margin-top: 36px; }
summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 16.5px;
}
summary::-webkit-details-marker { display: none; }
summary .ic { font-size: 18px; color: var(--ink-45); transition: transform 0.2s; }
details[open] summary .ic { transform: rotate(180deg); }
details p { padding: 0 24px 22px; color: var(--ink-60); font-size: 15.5px; }

/* footer */
footer { padding: 40px 0 52px; border-top: 1px solid var(--hair); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
footer .links { display: flex; gap: 22px; font-size: 14.5px; }
footer .links a { color: var(--ink-60); }
footer .links a:hover { color: var(--ink); }
footer .copy { font-size: 13.5px; color: var(--ink-45); }

/* policy pages */
.policy { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.policy h1 { font-size: 36px; font-weight: 800; margin-bottom: 6px; }
.policy .updated { color: var(--ink-45); font-size: 13.5px; margin-bottom: 32px; }
.policy h2 { font-size: 20px; margin: 30px 0 8px; text-align: left; }
.policy p, .policy li { color: var(--ink-60); font-size: 15.5px; }
.policy ul { padding-left: 22px; }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 540px; margin-top: 8px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: min(36px, 8.9vw); }
  .nav .links { display: none; }
  .nav .wrap { justify-content: space-between; }
  section { padding: 56px 0; }
  .hero-visual { height: 470px; }
  .hero-visual .front { width: 236px; }
  .hero-visual .back { width: 204px; top: 46px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .dusk { padding: 40px 24px 120px; border-radius: 26px; }
  .btn { padding: 15px 24px; }
}
