/* The landing page of hyden.app. The colours, the type and the radii are the phone app's (apps/mobile/src/design/tokens.ts). */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/assets/fonts/Manrope_400Regular.ttf?v=b5e31059) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/assets/fonts/Manrope_500Medium.ttf?v=107539ab) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/assets/fonts/Manrope_600SemiBold.ttf?v=7efdba6b) format('truetype'); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/assets/fonts/Manrope_700Bold.ttf?v=42f1d945) format('truetype'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url(/assets/fonts/GeistMono_400Regular.ttf?v=6494f601) format('truetype'); }

:root {
  --ground-deep: #050504; --ground: #0B0A09; --surface: #161412; --surface-raised: #1F1C19;
  --line: #2A2622; --line-strong: #3A352F; --line-emphasis: #5A5248;
  --text: #F4F1EC; --text-muted: #A39A8F; --text-estimate: #D8CFC2; --accent: #D6C4AB;
  --glow: #3B3026; --glow-mid: #17130F; --logo-disc: #F2F4F7;
  --radius-panel: 40px; --radius-card: 32px; --radius-inset: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; transition: opacity 150ms ease-out, transform 150ms ease-out; }
a:hover { opacity: .86; }
a:active { transform: scale(.98); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a { transition: none; } a:active { transform: none; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 120px; }
.muted { color: var(--text-muted); }
.lead { font-size: 19px; color: var(--text-muted); }
.title { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.heading { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.heading .title { max-width: 760px; }

/* Buttons: pills, each at least 44px tall. */
.button { display: inline-flex; align-items: center; min-height: 56px; padding: 0 32px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.button--light { background: var(--text); color: var(--ground); }
.button--outline { border: 1px solid var(--line-emphasis); color: var(--text); }
.button--accent { min-height: 44px; padding: 0 22px; background: var(--accent); color: var(--ground); }
.button--dark { background: var(--ground); color: var(--text); }
.button--outline-dark { border: 1px solid var(--ground); color: var(--ground); }
.button--large { min-height: 60px; padding: 0 40px; font-size: 18px; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Header */
.header { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.button) { color: var(--text-muted); padding: 12px 0; }

/* Hero */
.hero { border-radius: var(--radius-panel); border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 0%, var(--glow) 0%, var(--glow-mid) 48%, var(--surface) 88%); padding: 72px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; overflow: hidden; }
.hero h1 { max-width: 820px; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 600px; font-size: 20px; color: var(--text-estimate); }
.hero .buttons { padding-top: 8px; }
.fan { width: 100%; max-width: 860px; aspect-ratio: 860 / 470; margin-top: 40px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; }
.fan img { border-radius: 9% / 4.2%; border: 1px solid var(--line-strong); }
.fan__side { width: 30%; margin-top: 9%; }
.fan__side--left { margin-right: -3%; transform: rotate(-6deg); transform-origin: 100% 0%; }
.fan__side--right { margin-left: -3%; transform: rotate(6deg); transform-origin: 0% 0%; }
.fan__centre { position: relative; z-index: 1; width: 37%; border-color: var(--line-emphasis); box-shadow: 0 0 80px rgba(5, 5, 4, .8); }

/* Feature tiles */
.tiles { display: flex; flex-direction: column; gap: 20px; margin-top: 50px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.tile { flex: 1 1 260px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.tile--half { flex: 1 1 380px; }
.tile--wide { flex: 1.4 1 420px; }
.tile--accent { background: var(--accent); color: var(--ground); border-color: var(--accent); }
.tile--accent p { color: var(--line); }
.tile--glow { background: radial-gradient(120% 90% at 100% 0%, var(--glow) 0%, var(--glow-mid) 50%, var(--surface) 85%); }
.tile__text { padding: 36px 36px 28px; display: flex; flex-direction: column; gap: 8px; }
.tile--padded { padding: 36px; gap: 8px; }
.tile h3 { font-size: 26px; line-height: 1.2; font-weight: 600; }
.tile p { color: var(--text-muted); }
.shot { margin: auto 36px 0; height: 330px; overflow: hidden; border-radius: var(--radius-inset) var(--radius-inset) 0 0; border: 1px solid var(--line-strong); border-bottom: 0; }
.shot img { width: 100%; }
.shot--plain { border: 0; background: var(--ground); }
.shot--short { height: 190px; }
.shot--receive img { margin-top: -29%; }
.shot--swap img { margin-top: -57%; }
.shot--review img { margin-top: -31%; }
.stocks { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; list-style: none; padding-left: 0; margin-bottom: 0; }
.stocks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-strong); font-weight: 600; }
.stocks img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-strong); }
.stocks span { margin-left: auto; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.networks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; margin: auto 0 0; padding: 24px 0 0; list-style: none; font-size: 13px; font-weight: 500; color: var(--text-muted); text-align: center; }
.networks li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.networks img { width: 52px; height: 52px; border-radius: 999px; }
.networks .on-disc { background: var(--logo-disc); }

/* Privacy */
.split { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px 72px; }
.panel { flex: 1 1 420px; min-width: 0; min-height: 560px; border-radius: var(--radius-panel); border: 1px solid var(--line); background: radial-gradient(100% 70% at 50% 0%, var(--glow) 0%, var(--glow-mid) 50%, var(--surface) 90%); padding: 56px 40px 0; overflow: hidden; display: flex; justify-content: center; }
.panel img { width: 100%; max-width: 320px; align-self: flex-start; border-radius: 40px 40px 0 0; border: 1px solid var(--line-emphasis); }
.split__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.split__text .title { margin-bottom: 16px; }
.split__text .lead { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps b { flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--accent); color: var(--ground); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0; font-size: 20px; font-weight: 600; }

/* Security */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.card::before { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); margin-bottom: 20px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--text-muted); font-size: 16px; }

/* Questions */
.faq { max-width: 860px; }
.faq .title { text-align: center; margin-bottom: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 20px 0; font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 24px; max-width: 65ch; color: var(--text-muted); }

/* Download */
.download { border-radius: var(--radius-panel); background: var(--accent); color: var(--ground); padding: 88px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.download h2 { max-width: 760px; font-size: clamp(36px, 5vw, 68px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 600; }
.download p { max-width: 520px; font-size: 19px; color: var(--line); }
.download .buttons { padding-top: 12px; }
.download a:focus-visible { outline-color: var(--ground); }

/* Footer */
.footer { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--text-muted); }
.footer img { height: 22px; width: auto; }
.footer div { display: flex; align-items: center; gap: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__links a { color: var(--text-muted); padding: 12px 0; }

/* Terms of use and privacy policy: one column of text. */
.legal { max-width: 800px; padding-top: 56px; padding-bottom: 40px; }
.legal__notice { margin: 24px 0 8px; padding: 14px 20px; border: 1px solid var(--line-emphasis); border-radius: 18px; color: var(--text-estimate); }
.legal section { padding-top: 32px; }
.legal h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin-bottom: 12px; }
.legal p, .legal li, .legal dd { color: var(--text-estimate); }
.legal p + p, .legal ul + p, .legal p + ul, .legal dl + p, .legal p + dl, .legal dl + dl { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal dl { margin: 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.legal dt { font-size: 14px; color: var(--text-muted); }
.legal dd { margin: 0 0 10px; }
.legal dd:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .section { padding-top: 80px; }
  .hero { padding-top: 48px; }
  .tile__text, .tile--padded { padding: 28px 24px 24px; }
  .shot { margin: auto 24px 0; }
  .panel { min-height: 0; padding: 40px 24px 0; }
  .download { padding: 64px 24px; }
  /* On a phone the header is the logo and the one button: the sections are a scroll away. */
  .nav a:not(.button) { display: none; }
}
