/* Dev Petal: charcoal and amber, from the logo (a black line-art D and P in an amber circle). */
:root {
  --black: #1a1a1a;
  --coal: #242424;
  --beige: #f8ba5e;
  --beige-light: #ffcb7a;
  --beige-deep: #e3a24a;
  --brown: #a8701f;
  --paper: #fcf8f1;
  --paper-tint: #f6eddf;
  --ink: #1a1a1a;
  --muted: #69625a;
  --line: #ece0cc;
  --cream: #f6f1e8;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(20, 20, 20, .5);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { line-height: 1.15; color: var(--black); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header (black) */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(26, 26, 26, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(248, 186, 94, .12);
  transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .9); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: .3em; color: var(--beige); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: #e4ddd1; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(248, 186, 94, .1); color: var(--cream); }
.nav a.active { color: var(--beige); background: rgba(248, 186, 94, .14); }
.nav a.nav-cta { background: var(--beige); color: var(--black); margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--beige-light); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--beige); color: var(--black); box-shadow: 0 10px 24px -14px rgba(248, 186, 94, .8); }
.btn-primary:hover { background: var(--beige-light); }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 2px var(--beige); }
.btn-ghost:hover { background: rgba(248, 186, 94, .1); }

/* Home (black) */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(800px 460px at 78% 40%, rgba(248, 186, 94, .16), transparent 70%),
    linear-gradient(180deg, var(--black), var(--coal));
  color: var(--beige);
}
/* The mark, very large and faint, behind the pictures. */
.hero-ghost { position: absolute; right: -6%; top: 50%; width: min(620px, 60vw); transform: translateY(-50%); opacity: .1; color: var(--beige); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font: 700 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--beige); }
.hero .eyebrow, .contact .eyebrow { color: var(--beige-deep); }
.hero h1 { color: var(--cream); }
.hero h1 em { font-style: normal; color: var(--beige); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .lead { color: #bdb6ab; }
.hero .lead strong { color: var(--beige); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 5 / 4; }
.shot { position: absolute; border-radius: 16px; box-shadow: 0 24px 50px -24px #000; border: 3px solid var(--beige); }
.shot-back { width: 82%; top: 4%; right: 0; transform: rotate(4deg); }
.shot-front { width: 82%; bottom: 6%; left: 0; transform: rotate(-3deg); }
.hero-icon {
  position: absolute; width: 24%; right: 6%; bottom: 0;
  border-radius: 22%; box-shadow: 0 18px 40px -18px #000; border: 3px solid var(--beige);
}

/* Sections (beige paper) */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--paper-tint); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; margin-bottom: 40px; }

/* Games */
.game {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow);
}
.game-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.game-icon { width: 96px; border-radius: 22px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); flex: none; }
.game-head h3 { font-size: 1.6rem; margin-bottom: 2px; }
.game-meta { color: var(--muted); margin-bottom: 8px; font-size: .95rem; }
.badge {
  display: inline-block; font-size: .82rem; font-weight: 700; color: var(--ink);
  background: var(--beige); padding: 5px 14px; border-radius: 999px; letter-spacing: .02em;
}
.game-text { font-size: 1.08rem; max-width: 46em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 26px; }
.chips li {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  background: var(--paper-tint); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
}
.game-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.game-shots img { border-radius: 14px; border: 1px solid var(--line); }

/* Apps */
.app-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.app {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow);
}
.app > p { color: var(--muted); font-size: .98rem; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.app-head h3 { margin: 0 0 2px; font-size: 1.3rem; }
.app-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.app-icon { width: 64px; border-radius: 16px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); flex: none; }
.app-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 18px; }
.app-shots img { border-radius: 12px; border: 1px solid var(--line); }
.store-link { margin-top: auto; align-self: flex-start; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--beige); }
.store-link:hover { border-color: var(--black); }
.partners-title { margin: 56px 0 4px; font-size: 1.35rem; }
.partners-lead { color: var(--muted); margin-bottom: 22px; }
.partner-apps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.partner-apps a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  height: 100%; padding: 18px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.3;
  transition: transform .2s, box-shadow .2s;
}
.partner-apps a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-apps img { width: 64px; border-radius: 15px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--beige);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--ink); background: var(--beige);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--beige-deep) 0 6px, transparent 6px 12px); opacity: .7;
}
.steps strong { display: block; color: var(--black); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-grid p { color: var(--muted); font-size: 1.05rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li {
  background: #fff; border-left: 4px solid var(--beige); border-radius: 12px; padding: 18px 22px;
}
.values strong { display: block; color: var(--black); font-size: 1.1rem; }
.values span { color: var(--muted); }

/* Contact (black) */
.contact { background: linear-gradient(170deg, var(--coal) 0%, var(--black) 100%); color: #cfc8bd; }
.contact h2 { color: var(--cream); }
.contact .section-lead { color: #bdb6ab; }
.contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
.contact-form {
  background: rgba(248, 186, 94, .05); border: 1px solid rgba(248, 186, 94, .2);
  border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font: 700 .76rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--beige); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--beige-deep); box-shadow: 0 0 0 4px rgba(248, 186, 94, .3);
}
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-send { border: 0; cursor: pointer; font: inherit; font-weight: 800; background: var(--beige); color: var(--black); }
.btn-send:hover { background: var(--beige-light); }
.btn-send:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; font-weight: 600; color: #cbbfae; }
.form-status.ok { color: #b9d99a; }
.form-status.bad { color: #f0a493; }
.contact-side { display: grid; gap: 12px; }
.contact-side-title { margin: 4px 0 0; font-weight: 700; color: var(--cream); }
.contact-line {
  display: grid; gap: 2px; text-decoration: none; color: inherit;
  background: rgba(248, 186, 94, .05); border: 1px solid rgba(248, 186, 94, .2);
  border-radius: var(--radius); padding: 16px 20px; transition: background .2s;
}
.contact-line:hover { background: rgba(248, 186, 94, .1); }
.contact-label { font: 700 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--beige-deep); }
.contact-mail { font-size: 1.1rem; font-weight: 800; color: var(--cream); word-break: break-word; }

/* Footer */
.foot { background: #141414; color: #9a948b; font-size: .9rem; padding: 22px 0; border-top: 1px solid rgba(248, 186, 94, .12); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 30px; height: 30px; flex: none; }
.foot-note { margin: 0; }
.foot-top { color: var(--beige); text-decoration: none; font-weight: 600; }

/* Tablets */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .app-pair, .contact-grid { grid-template-columns: 1fr; }
  .partner-apps { grid-template-columns: repeat(3, 1fr); }
  .steps li::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wordmark { font-size: .95rem; letter-spacing: .26em; }
  .menu-btn {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    border: 0; border-radius: 12px; background: rgba(248, 186, 94, .12); cursor: pointer;
  }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--beige); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px 16px 18px; background: var(--black); border-bottom: 1px solid rgba(248, 186, 94, .15);
    box-shadow: 0 16px 24px -16px #000;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-ghost { display: none; }
  .game-head { align-items: flex-start; }
  .game-icon { width: 72px; border-radius: 17px; }
  .game-shots, .field-row { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .partner-apps { grid-template-columns: 1fr 1fr; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
