/* Drealm website — built on Drealm Design System 2.0 tokens */

@font-face { font-family: "Raleway"; src: url("fonts/Raleway-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FBFAFE;
  --surface: #FFFFFF;
  --sunken: #F3F1FA;
  --text: #17133A;
  --text-2: #5E5A7A;
  --text-3: #857F9E;
  --accent: #8B00F0;
  --accent-subtle: #EBDCFF;
  --highlight: #C4006A;
  --highlight-subtle: #FFDCEC;
  --separator: rgba(23, 19, 58, .10);
  --gradient-brand: linear-gradient(120deg, #E0067A, #8B00F0);
  --gradient-soft: linear-gradient(135deg, #FFF0F7, #F7F0FF);
  --e1: 0 1px 2px rgba(23, 19, 58, .05), 0 2px 8px rgba(23, 19, 58, .05);
  --e2: 0 8px 24px rgba(23, 19, 58, .10);
  --glass: rgba(251, 250, 254, .72);
  --font-display: "Raleway", -apple-system, system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0D1D;
    --surface: #1A1730;
    --sunken: #16142A;
    --text: #F3F1FA;
    --text-2: #ABA6C6;
    --text-3: #7C7797;
    --accent: #B98BFF;
    --accent-subtle: #2A1F4A;
    --highlight: #FF6FB0;
    --highlight-subtle: #3A1530;
    --separator: rgba(243, 241, 250, .10);
    --gradient-soft: linear-gradient(135deg, #2A1530, #221A40);
    --e1: 0 0 0 1px rgba(255, 255, 255, .06);
    --e2: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05);
    --glass: rgba(15, 13, 29, .72);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; font-variant-numeric: lining-nums; margin: 0; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: var(--r-md); }
.skip:focus { left: 20px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--separator); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 20px var(--font-display); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-full); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: var(--gradient-soft); border-radius: 50%; z-index: -1; filter: blur(10px); }
.hero .app-icon { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 28px; box-shadow: var(--e2); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; max-width: 14ch; margin: 0 auto; }
.grad { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 36em; margin: 20px auto 32px; }
.badge-link { display: inline-block; }
.badge-link img { height: 56px; width: auto; }
.badge-link:hover { text-decoration: none; opacity: .85; }

/* Sections */
section.block { padding: 72px 0; }
.section-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-2); max-width: 34em; margin: 0 auto 40px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 24px; }
.feature .tile { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-subtle); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .tile svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--sunken); border-radius: var(--r-xl); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 17px var(--font-text); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }
.cta { background: var(--gradient-brand); color: #fff; border-radius: var(--r-xl); padding: 48px 24px; text-align: center; }
.cta h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 10px; }
.cta p { margin: 0 auto 24px; opacity: .92; max-width: 30em; }

/* Legal & support pages */
.page { padding: 56px 0 80px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.12; margin-bottom: 8px; }
.prose .meta { color: var(--text-3); font-size: 15px; margin: 0 0 32px; }
.prose h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.summary { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 20px 24px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 20px; }
.summary ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r-lg); box-shadow: var(--e1); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--separator); vertical-align: top; }
th { color: var(--text-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--e1); padding: 24px; margin: 24px 0 8px; }
.contact-card p { margin: 0; color: var(--text-2); }
.button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--r-full); background: #8B00F0; color: #fff; font-weight: 600; font-size: 16px; }
.button:hover { text-decoration: none; background: #6E00C4; }
details { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--e1); margin: 10px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 20px 16px; color: var(--text-2); }
details > div p { margin: 0 0 8px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--separator); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .site-nav a.hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  section.block { padding: 48px 0; }
}
