/* Ulanzi Dial Lite — site styles
   Layout follows the apps.timhuang.net language: sky gradient hero, glass panels,
   two-column feature rows. Palette derived from the app icon (indigo / violet). */

:root {
  --bg: #f2f2f5;
  --panel: #ffffff;
  --text: #16171c;
  --muted: #5d6070;
  --ink: #2b2c6b;
  --accent: #4b46e0;
  --accent-ink: #342fd0;
  --violet: #8b5cf6;
  --sky: #e8e7ff;
  --hairline: rgb(22 23 28 / .08);
  --radius: 18px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --glass: rgb(255 255 255 / .62);
  --glass-line: rgb(255 255 255 / .55);
  --shadow-win: 0 48px 96px -48px rgb(30 20 90 / .38), 0 12px 32px -24px rgb(30 20 90 / .28);
  --shadow-soft: 0 20px 48px -32px rgb(30 20 90 / .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -.03em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgb(242 242 245 / .82);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
}
.lang:hover { color: var(--text); text-decoration: none; }

/* ---------- hero (two columns) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgb(139 92 246 / .22), transparent 62%),
    radial-gradient(ellipse 60% 50% at 12% 8%, rgb(75 70 224 / .18), transparent 60%),
    linear-gradient(180deg, #f7f7fb 0%, #ecebf8 55%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgb(75 70 224 / .08);
  border: 1px solid rgb(75 70 224 / .16);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 22px 0 18px;
}
.hero h1 span { display: block; }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--text);
  background: rgb(255 255 255 / .7);
}
.btn-ghost:hover { background: #fff; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* icon card */

.icon-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 32px;
  background: linear-gradient(150deg, rgb(255 255 255 / .8), rgb(255 255 255 / .35));
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-win), inset 0 1px 0 rgb(255 255 255 / .8);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.icon-stage img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 22%;
  box-shadow: 0 30px 60px -30px rgb(40 20 110 / .55);
}

.icon-badge {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 12px;
  color: var(--muted);
  background: rgb(255 255 255 / .8);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.section-head p { color: var(--muted); }

/* two-column feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-art { order: 1; }

.feature h3 {
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 10px;
}
.feature p { color: var(--muted); }

.feature-art {
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #f4f3fb);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  min-height: 190px;
  display: grid;
  place-items: center;
}

/* dial diagram */

.dial-svg { width: 100%; max-width: 420px; height: auto; }
.dial-svg .key { fill: #fff; stroke: rgb(75 70 224 / .35); stroke-width: 1.5; }
.dial-svg .key-label { font: 600 11px var(--font-ui); fill: var(--ink); }
.dial-svg .knob { fill: url(#knobGrad); stroke: rgb(75 70 224 / .3); }
.dial-svg .knob-inner { fill: #fff; opacity: .65; }
.dial-svg .arrow { fill: var(--accent); }

/* action grid */

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.action-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 28px -24px rgb(30 20 90 / .35);
}
.action-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.action-card span { font-size: 13px; color: var(--muted); }

/* comparison table */

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.compare th {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fafafd;
}
.compare tr:last-child td { border-bottom: 0; }
.compare .good { color: var(--accent-ink); font-weight: 600; }

/* notes / faq */

details {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--panel);
  padding: 14px 18px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); font-size: 14px; }

code {
  font-family: var(--font-mono);
  font-size: .92em;
  background: rgb(75 70 224 / .08);
  border-radius: 6px;
  padding: 2px 6px;
}

pre {
  background: #14152b;
  color: #e7e7f5;
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
pre code { background: none; padding: 0; color: inherit; }

/* footer */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s var(--ease) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

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

/* responsive */

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .feature,
  .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy,
  .feature.flip .feature-art { order: initial; }
  .nav-links { display: none; }
  .icon-stage { order: -1; }
  .hero-grid { gap: 28px; }
}
