/* IVY Drive studio portal — shared styles. Dark theme, orange accent taken
   from the IVY checkered-flag logo. No frameworks. */

:root {
  --bg: #0d0f14;
  --bg-2: #12151d;
  --bg-3: #191d27;
  --line: #262b38;
  --text: #e8eaf0;
  --muted: #9aa2b1;
  --accent: #f05a28;
  --accent-2: #ff7a45;
  --ok: #3fb970;
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px; height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand img { height: 22px; }
.brand span { color: var(--muted); font-weight: 500; font-size: 14px; }
nav.main { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.main a { color: var(--muted); transition: color .15s; }
nav.main a:hover, nav.main a.active { color: var(--text); }
nav.main a.cta {
  color: #fff; background: var(--accent); padding: 6px 16px; border-radius: 999px;
}
nav.main a.cta:hover { background: var(--accent-2); }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 640px; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text);
  cursor: pointer; transition: all .15s; background: transparent;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.big { padding: 15px 34px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* checkered accent strip (brand motif) */
.checker {
  height: 10px; width: 160px; margin-bottom: 28px;
  background:
    repeating-conic-gradient(var(--accent) 0% 25%, transparent 0% 50%) 0 0 / 20px 10px;
  opacity: .9; border-radius: 2px;
}

/* ---- sections ---- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-2); }
.block h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 10px; }
.block p.sub { color: var(--muted); max-width: 680px; margin-bottom: 36px; }

/* product cards on the home page */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: #3a4152; }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; background: #0a0c10; display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb img.contain { object-fit: contain; padding: 18px; }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .go { color: var(--accent); font-weight: 600; font-size: 15px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: rgba(240, 90, 40, .15); color: var(--accent-2); white-space: nowrap;
}
.tag.soon { background: rgba(154, 162, 177, .15); color: var(--muted); }
.tag.free { background: rgba(63, 185, 112, .15); color: var(--ok); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.feature .ico { font-size: 22px; margin-bottom: 8px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* screenshots / gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.shot {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0a0c10;
}
.shot img { width: 100%; }
.shot figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.phone-shots { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.phone-shots .shot { width: min(280px, 80vw); }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.tier {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 8px; position: relative;
}
.tier.hot { border-color: var(--accent); box-shadow: 0 0 32px rgba(240, 90, 40, .12); }
.tier .flag {
  position: absolute; top: -12px; right: 18px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 12px; border-radius: 999px;
}
.tier h3 { font-size: 19px; }
.tier .price { font-size: 15px; color: var(--muted); }
.tier ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tier li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; }
.tier li::before { content: "✓"; color: var(--ok); position: absolute; left: 0; font-weight: 700; }
.tier li.no::before { content: "—"; color: #555c6b; }

/* promo claim */
.promo-box {
  background: linear-gradient(135deg, rgba(240,90,40,.14), rgba(240,90,40,.03));
  border: 1px solid rgba(240, 90, 40, .4); border-radius: var(--radius);
  padding: 30px; margin-top: 40px;
}
.promo-box h3 { font-size: 22px; margin-bottom: 6px; }
.counters { display: flex; gap: 28px; margin: 18px 0 6px; flex-wrap: wrap; }
.counter { min-width: 150px; }
.counter .n { font-size: 34px; font-weight: 800; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.counter .lbl { font-size: 13px; color: var(--muted); }
.claim-forms { margin-top: 18px; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.form-row input {
  flex: 1; min-width: 180px; padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 15px;
}
.form-row input:focus { outline: none; border-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); }
.msg { margin-top: 10px; font-size: 14.5px; min-height: 22px; }
.msg.ok { color: var(--ok); }
.msg.err { color: #ff6b5e; }
.linkish { background: none; border: none; color: var(--accent-2); cursor: pointer; font-size: 14px; padding: 0; }
.claim-choices { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }

/* wechat contact */
.wechat-card {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; margin-top: 26px;
}
.wechat-card .num { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--accent-2); }
.wechat-card .cp { font-size: 13px; }

/* coming soon banner */
.soon-banner {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px dashed var(--accent); color: var(--accent-2);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  margin-bottom: 24px;
}

/* spec table */
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.spec td:first-child { color: var(--muted); width: 34%; white-space: nowrap; }

/* footer */
footer.site {
  border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px;
  color: var(--muted); font-size: 14px;
}
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site img { height: 18px; opacity: .7; margin-bottom: 10px; }
footer.site a:hover { color: var(--text); }

/* download box */
.dl-box {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px; margin-top: 26px;
}
.dl-box .meta { font-size: 13.5px; color: var(--muted); font-family: ui-monospace, monospace; word-break: break-all; }

@media (max-width: 640px) {
  nav.main { gap: 14px; font-size: 14px; }
  nav.main a:not(.cta) { display: none; }
  .brand { white-space: nowrap; }
  .hero { padding: 64px 0 48px; }
}
