/* Cullio — promo site
   Palette drawn from the app icon: near-black backdrop, sunset orange,
   violet mountain dusk, and the cool blue of the photo frames. */

:root {
  --ink:        #f2f3f7;   /* light text on dark */
  --ink-soft:   #b9beca;
  --muted:      #8b90a0;
  --accent:     #ff9f43;   /* sunset orange, primary action */
  --accent-hi:  #ffc069;
  --accent-deep:#2a1f14;
  --violet:     #8f7bd8;   /* mountain dusk */
  --panel:      #15161d;
  --panel-2:    #1a1b24;
  --bg:         #0b0c11;   /* icon background */
  --card:       #15161d;
  --line:       rgba(242, 243, 247, 0.09);
  --shadow:     0 20px 50px -24px rgba(0, 0, 0, 0.85);
  --radius:     20px;
  --maxw:       1080px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 50% -140px, rgba(255, 159, 67, 0.16), rgba(255, 159, 67, 0) 60%),
    radial-gradient(900px 520px at 85% 10%, rgba(143, 123, 216, 0.10), rgba(143, 123, 216, 0) 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.8); }
.brand span { font-size: 20px; }
.nav a.ghost {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.04); transition: background .2s, transform .2s;
}
.nav a.ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 0 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent-hi);
  background: rgba(255,159,67,.10); border: 1px solid rgba(255,159,67,.28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 18px; font-weight: 800;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-soft); margin: 0 0 28px; max-width: 32ch; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
}
.btn-primary {
  color: #1c1204;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  box-shadow: 0 14px 30px -12px rgba(255,159,67,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(255,159,67,.65); }
.btn-soft { color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-soft:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn.disabled { opacity: .55; pointer-events: none; }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

.hero-art { display: flex; justify-content: center; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 300px; max-width: 78vw;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #23242e, #101117);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { width: 100%; display: block; border-radius: 34px; }
.phone.sm { width: 240px; }

/* ---------- Section ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }

/* ---------- Philosophy ---------- */
.philosophy {
  background: linear-gradient(170deg, #191423, #12101c);
  color: var(--ink-soft); border-radius: 28px; padding: 56px 44px; text-align: center;
  position: relative; overflow: hidden; border: 1px solid var(--line);
}
.philosophy::before {
  content: ""; position: absolute; inset: auto 50% -60% 50%; translate: -50% 0;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,159,67,.14), transparent 62%);
}
.philosophy .inner { position: relative; max-width: 680px; margin: 0 auto; }
.philosophy h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 20px; letter-spacing: -0.02em; }
.philosophy p { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.7; color: #c9cbd8; margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 10px 30px -22px rgba(0,0,0,.8);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.9); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,159,67,.16), rgba(255,159,67,.05));
  color: var(--accent); margin-bottom: 16px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- No-BS strip ---------- */
.nobs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.nobs span {
  font-weight: 600; font-size: 15px; color: var(--ink-soft);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px;
}
.nobs span b { color: var(--accent); }

/* ---------- Spotlight panels ---------- */
.brainwave {
  display: grid; grid-template-columns: 1fr 0.82fr; gap: 44px; align-items: center;
  background: linear-gradient(160deg, #1a1626, #110f1a);
  color: var(--ink-soft); border-radius: 28px; padding: 48px 44px;
  position: relative; overflow: hidden; border: 1px solid var(--line);
}
.brainwave::before {
  content: ""; position: absolute; inset: -40% -20% auto auto;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,123,216,.18), transparent 62%);
}
.brainwave .eyebrow { color: var(--accent-hi); }
.brainwave h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 16px; letter-spacing: -0.02em; }
.brainwave p { color: #c9cbd8; font-size: 17px; margin: 0 0 16px; }
.brainwave.flip { grid-template-columns: 0.82fr 1fr; }   /* image left, copy right */
.bw-copy { position: relative; z-index: 1; }
.bw-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.bw-list li { position: relative; padding-left: 20px; font-size: 15.5px; color: #d7d9e4; }
.bw-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.bw-list b { color: #fff; }
.bw-note { font-size: 13.5px; color: rgba(201, 203, 216, 0.65); margin: 0; }

/* ---------- Screens gallery ---------- */
.gallery { display: flex; gap: 28px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Download ---------- */
.download {
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), #101118);
  border: 1px solid var(--line); border-radius: 28px; padding: 60px 32px;
}
.download img.mark { width: 72px; height: 72px; border-radius: 19px; box-shadow: var(--shadow); margin-bottom: 20px; }
.download h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -0.02em; }
.download p { color: var(--ink-soft); margin: 0 0 28px; font-size: 17px; }

/* ---------- Footer ---------- */
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; text-align: center; }
footer .brand { justify-content: center; margin-bottom: 12px; }
footer a { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-art { order: -1; }
  .features { grid-template-columns: 1fr; }
  .philosophy { padding: 44px 24px; }
  .brainwave, .brainwave.flip { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .brainwave .hero-art { order: -1; }
  .bw-list { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav a.ghost { display: none; }
}

/* ---------- Organizing model ---------- */
.model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.model-card {
  --c: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: var(--radius); padding: 26px;
}
.model-card.m-star { --c: #ffd23f; }
.model-card.m-tag  { --c: var(--violet); }
.m-rule {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.model-card h3 { margin: 0 0 2px; font-size: 22px; letter-spacing: -0.01em; }
.model-card .m-q { color: var(--c); font-weight: 600; margin: 0 0 10px; font-size: 15px; }
.model-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.model-card p b { color: var(--ink); }

.example {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin-top: 28px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius);
}
.ex-label { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 6px; }
.chip { font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid; }
.chip.c-cat  { color: var(--accent); border-color: rgba(255,159,67,.45); background: rgba(255,159,67,.08); }
.chip.c-star { color: #ffd23f; border-color: rgba(255,210,63,.4); background: rgba(255,210,63,.07); letter-spacing: .08em; }
.chip.c-tag  { color: #b3a4ec; border-color: rgba(143,123,216,.5); background: rgba(143,123,216,.1); }

.brainwave.duo { grid-template-columns: 1fr 1fr; }
.duo-art { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; }
.duo-art .phone.sm { flex: 0 1 210px; width: auto; max-width: none; min-width: 0; border-radius: 34px; padding: 8px; }
.duo-art .phone.sm img { border-radius: 27px; }

@media (max-width: 860px) {
  .model { grid-template-columns: 1fr; }
  .brainwave.duo { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
  .brainwave.duo .duo-art { order: -1; }
}

/* ---------- Flow overview ---------- */
.flow { display: grid; grid-template-columns: 1fr 24px 1.35fr 24px 1fr; gap: 12px; align-items: stretch; }
.phase {
  --c: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: var(--radius); padding: 22px 20px;
}
.p-setup  { --c: #4fb3ff; }
.p-loop   { --c: var(--accent); }
.p-review { --c: var(--violet); }
.phase-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.phase-head { margin-bottom: 16px; }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nodes li { position: relative; padding-bottom: 10px; }
.nodes li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px;
  background: color-mix(in srgb, var(--c) 35%, transparent);
}
.nodes a {
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; line-height: 1.3;
}
.nodes a:hover { color: var(--c); }
.nodes .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #0b0c11; background: var(--c);
}
.loop-note {
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line);
  color: var(--c); font-size: 14px; font-weight: 600;
}
.flow-arrow { position: relative; }
.flow-arrow::before {
  content: ""; position: absolute; top: 50%; left: 2px; right: 6px; height: 2px; background: var(--line);
}
.flow-arrow::after {
  content: ""; position: absolute; top: calc(50% - 5px); right: 2px;
  border: 6px solid transparent; border-left: 8px solid rgba(242,243,247,.3); border-right: 0;
}

/* ---------- Phase banners ---------- */
.phase-banner {
  text-align: center; margin: 56px auto 8px; padding-top: 40px; border-top: 1px solid var(--line);
}
.phase-banner h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.02em; margin: 12px 0 0; font-weight: 800; }

/* ---------- Steps ---------- */
.step { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; padding: 44px 0; }
.step.flip .step-copy { order: 2; }
.step-num { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.step h3 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.02em; margin: 0 0 14px; }
.step p { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.step p b { color: var(--ink); }
.step .bw-list li { color: var(--ink-soft); }
.step .bw-note { font-size: 14px; color: var(--muted); }
.step-art { display: flex; justify-content: center; }
.detail {
  width: 100%; max-width: 440px; padding: 12px; border-radius: 26px;
  background: linear-gradient(160deg, #23242e, #101117); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.detail img { width: 100%; display: block; border-radius: 16px; }
.rule {
  --c: var(--accent);
  border-left: 3px solid var(--c); padding: 10px 14px; border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--c) 8%, transparent); font-size: 15.5px !important;
}
.rule b { color: var(--c) !important; }
.r-star { --c: #ffd23f; }
.r-tag  { --c: var(--violet); }
.step .example { justify-content: flex-start; margin-top: 8px; }

/* Widget sizes illustration (step 12) */
.widget-art {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 340px;
  padding: 18px; border-radius: 34px;
  background: linear-gradient(160deg, #23242e, #101117); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.widget {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(255,192,105,.95), rgba(255,159,67,.55) 28%, transparent 60%),
    linear-gradient(180deg, #3b2f63 0%, #6b4f9c 46%, #1b1830 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.widget::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -8%; height: 48%;
  background: #14121f; clip-path: polygon(0 62%, 18% 30%, 34% 54%, 52% 12%, 70% 46%, 84% 26%, 100% 58%, 100% 100%, 0 100%);
}
.widget span {
  position: absolute; left: 12px; bottom: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(242,243,247,.8);
}
.w-s { aspect-ratio: 1; }
.w-m { grid-column: 1 / -1; aspect-ratio: 2.13; }
.w-l { grid-column: 1 / -1; aspect-ratio: 1.05; }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { height: 22px; }
  .flow-arrow::before { top: 0; bottom: 6px; left: 50%; right: auto; width: 2px; height: auto; }
  .flow-arrow::after { top: auto; bottom: 0; right: auto; left: calc(50% - 5px); border: 6px solid transparent; border-top: 8px solid rgba(242,243,247,.3); border-bottom: 0; }
  .step, .step.flip { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .step .step-art { order: -1; }
  .step.flip .step-copy { order: 0; }
}

/* ---------- Photos library diagram ---------- */
.philosophy .eyebrow { color: var(--accent-hi); }
.philosophy p + p { margin-top: 18px; }
.lib {
  text-align: left; margin: 30px auto; max-width: 560px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px;
  font-size: 15px;
}
.lib-root { font-weight: 800; color: #fff; margin-bottom: 8px; }
.lib ul { list-style: none; margin: 0; padding-left: 18px; border-left: 2px solid rgba(255,255,255,.12); }
.lib li { padding: 7px 0 7px 14px; position: relative; }
.lib li::before { content: ""; position: absolute; left: -2px; top: 19px; width: 12px; height: 2px; background: rgba(255,255,255,.12); }
.lib li.lib-folder > ul { margin-top: 6px; }
.lib-name { color: #fff; font-weight: 600; margin-right: 10px; }
.lib-name em { font-style: normal; color: var(--muted); font-weight: 500; }
.lib-what { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lib-what.c-cat  { color: var(--accent); }
.lib-what.c-tag  { color: #b3a4ec; }
.lib-what.c-star { color: #ffd23f; }
.lib-what.c-rej  { color: #ff6b6b; }
.philosophy p.lib-note { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .lib-what { white-space: normal; display: block; } }
