/* Ethereum Wallet website — shared styles matching the app's deep-space violet look. */

:root {
  --bg: #07060e;
  --bg-card: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f0fa;
  --text-secondary: #a9a4c0;
  --accent: #7c6cff;
  --accent-soft: #a99cff;
  --positive: #34d399;
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(76, 61, 158, 0.35), transparent),
    radial-gradient(ellipse 50% 35% at 90% 15%, rgba(124, 108, 255, 0.16), transparent),
    radial-gradient(ellipse 45% 30% at 70% 90%, rgba(56, 189, 248, 0.08), transparent);
  background-attachment: fixed;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Header / nav */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-left: 22px;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero img.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(124, 108, 255, 0.35);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 18px;
}

.badges { margin-top: 36px; }

.badge-appstore {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 14px;
  background: var(--text);
  color: #0b0a14;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.badge-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12);
}

.hero .note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  backdrop-filter: blur(20px);
}

.card .icon {
  font-size: 26px;
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Section headings */
section { margin-top: 72px; }

section > h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* Long-form pages (privacy, terms, support) */
.page h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 40px 0 8px;
}

.page p.updated {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 36px;
}

.page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}

.page p, .page li {
  color: var(--text-secondary);
  font-size: 15.5px;
}

.page p + p { margin-top: 12px; }

.page ul {
  margin: 10px 0 10px 22px;
}

.page li { margin-bottom: 8px; }

.page strong { color: var(--text); font-weight: 650; }

.page a { color: var(--accent-soft); }

.callout {
  background: rgba(124, 108, 255, 0.10);
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout p { color: var(--text); }

/* FAQ */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 15px;
  color: var(--text);
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  float: right;
  color: var(--accent-soft);
  font-weight: 700;
}

details[open] summary::after { content: "−"; }

details p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* Footer */
footer {
  margin-top: 96px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 13.5px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 18px;
}

footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  nav a { margin-left: 14px; font-size: 13px; }
  .hero { padding: 48px 0 40px; }
}
