/* Duo Browser official site */
:root {
  --bg: #f6f2fb;
  --bg-deep: #ece4f6;
  --ink: #1c1726;
  --muted: #5d556a;
  --faint: #8a8296;
  --line: rgba(62, 42, 90, 0.10);
  --accent: #6a56a8;
  --accent-hover: #584592;
  --soft: #efe8f8;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(62, 36, 100, 0.10);
  --shadow-sm: 0 8px 24px rgba(62, 36, 100, 0.08);
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 50% -80px, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(700px 480px at 80% 12%, rgba(206, 186, 236, 0.35), transparent 65%),
    radial-gradient(640px 420px at 12% 8%, rgba(232, 214, 245, 0.55), transparent 60%),
    var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(246, 242, 251, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(90, 60, 140, 0.16);
}

.lang {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 28px;
}
.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 28%;
  box-shadow:
    0 20px 50px rgba(120, 80, 180, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 700;
}
.hero .tagline {
  margin: 0 auto 16px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 22em;
}
.hero .lead {
  margin: 0 auto;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Sections */
section { padding: 64px 0; }
.section-head {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 34em;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Layouts / screenshots */
.layouts {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: start;
}
.layout-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}
.shot {
  margin: 0;
}
.shot .frame {
  background: linear-gradient(180deg, #2a2433, #16131c);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.shot .frame img {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: #f3f3f3;
}
.shot.wide .frame { border-radius: 22px; padding: 9px; }
.shot.wide .frame img { border-radius: 14px; }
.shot figcaption {
  margin-top: 18px;
}
.shot h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.shot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  text-align: center;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.foot-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
footer p { margin: 0; font-size: 0.92rem; }

@media (max-width: 860px) {
  .layouts,
  .layout-wide {
    grid-template-columns: 1fr;
  }
  .features { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 48px 0; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .features { grid-template-columns: 1fr; }
  .hero-logo { width: 104px; height: 104px; }
  .shot .frame { border-radius: 22px; padding: 8px; }
  .shot .frame img { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
