/* ============================================================
   Big — Colors & Type
   ------------------------------------------------------------
   Two keys. One wallet. Zero compromise.

   Foundational tokens for the Big brand. Import at the
   top of any HTML file. Includes both light & dark mode
   palettes, type scale, spacing, radii, and shadows.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Wordmark — DM Sans @ 900, tight tracking */
.wordmark-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 40;
}

:root {
  /* ------------------------------------------------------------
     COLOR — LIGHT (default)
     Warm off-white surface with ink text and a calm steel-blue
     accent. No gradients, no neon.
     ------------------------------------------------------------ */
  --bg:             #F5F2ED;   /* page background, warm off-white */
  --bg-warm:        #EDE9E1;   /* inset fields, address chips     */
  --surface:        #FDFCFA;   /* cards, popovers                 */
  --surface-hover:  #FFFFFF;   /* card hover state                */

  --text:           #2C2825;   /* primary ink                     */
  --text-soft:      #7D756B;   /* secondary body copy             */
  --text-muted:     #AEA69C;   /* tertiary / metadata             */

  --accent:         #4A6CF7;   /* primary actions                 */
  --accent-soft:    rgba(74, 108, 247, 0.08);
  --accent-hover:   rgba(74, 108, 247, 0.14);
  --accent-text:    #3D5BD9;   /* accent-coloured labels on tint  */

  --danger:         #C24F3A;   /* muted red, recovery warnings    */
  --danger-soft:    rgba(194, 79, 58, 0.08);
  --danger-text:    #A63F2C;

  --success:        #3F8F63;   /* "Connected", "Protected"         */
  --success-soft:   rgba(63, 143, 99, 0.08);
  --success-text:   #2E7550;

  --warning:        #C48B2C;   /* timelock countdowns              */
  --warning-soft:   rgba(196, 139, 44, 0.08);

  --border:         rgba(0, 0, 0, 0.05);
  --border-strong:  rgba(0, 0, 0, 0.08);

  --shadow-sm:      0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:      0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-lg:      0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.06);
  --shadow-accent:  0 1px 3px rgba(74,108,247,0.15), 0 6px 20px rgba(74,108,247,0.15);

  /* ------------------------------------------------------------
     RADII
     ------------------------------------------------------------ */
  --radius-xs:      8px;
  --radius-sm:      12px;   /* buttons, inputs                  */
  --radius-md:      16px;   /* toolbars, toasts                 */
  --radius-lg:      24px;   /* cards                            */
  --radius-pill:    100px;

  /* ------------------------------------------------------------
     SPACING — 4px base grid
     ------------------------------------------------------------ */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ------------------------------------------------------------
     TYPOGRAPHY — families
     Primary: DM Sans (UI, headings, body)
     Mono:    JetBrains Mono (addresses, amounts, code, eyebrows)
     ------------------------------------------------------------ */
  --font-sans: 'DM Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* ------------------------------------------------------------
     TYPE SCALE
     Sizes are rem-equivalent px for easier scanning. Line-height
     tightens as text gets larger; tracking negative on display.
     ------------------------------------------------------------ */
  --fs-display:  44px;   --lh-display: 1.12;   --tr-display: -1.2px;
  --fs-h1:       36px;   --lh-h1:      1.15;   --tr-h1:      -0.8px;
  --fs-h2:       28px;   --lh-h2:      1.22;   --tr-h2:      -0.5px;
  --fs-h3:       20px;   --lh-h3:      1.3;    --tr-h3:      -0.2px;
  --fs-h4:       16px;   --lh-h4:      1.4;    --tr-h4:      -0.1px;
  --fs-lead:     17px;   --lh-lead:    1.65;
  --fs-body:     14.5px; --lh-body:    1.55;
  --fs-small:    13px;   --lh-small:   1.5;
  --fs-xs:       11px;   --lh-xs:      1.4;

  /* eyebrow / mono label */
  --fs-mono-label: 11px;  --tr-mono-label: 1.5px;

  /* ------------------------------------------------------------
     MOTION
     Calm, precise. No bounces. No delays on hover.
     ------------------------------------------------------------ */
  --ease-out:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.15, 1);
  --dur-fast:     150ms;
  --dur-base:     250ms;
  --dur-slow:     400ms;
}

/* ============================================================
   DARK MODE — graphite, cool. Higher contrast on accent.
   ============================================================ */
.dark-mode, [data-theme="dark"] {
  --bg:             #18191C;
  --bg-warm:        #1F2028;
  --surface:        #232429;
  --surface-hover:  #2A2B31;

  --text:           #E5E7EB;
  --text-soft:      #9CA3AF;
  --text-muted:     #6B7280;

  --accent:         #60A5FA;
  --accent-soft:    rgba(96, 165, 250, 0.08);
  --accent-hover:   rgba(96, 165, 250, 0.14);
  --accent-text:    #7BB8FF;

  --danger:         #E8775D;
  --danger-soft:    rgba(232, 119, 93, 0.1);
  --danger-text:    #F29279;

  --success:        #5FBF88;
  --success-soft:   rgba(95, 191, 136, 0.1);
  --success-text:   #7FD0A3;

  --warning:        #E0A84A;
  --warning-soft:   rgba(224, 168, 74, 0.1);

  --border:         rgba(255, 255, 255, 0.06);
  --border-strong:  rgba(255, 255, 255, 0.09);

  --shadow-sm:      0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:      0 2px 8px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.15);
  --shadow-lg:      0 4px 12px rgba(0,0,0,0.25), 0 16px 40px rgba(0,0,0,0.2);
  --shadow-accent:  0 1px 3px rgba(123,155,255,0.15), 0 6px 20px rgba(123,155,255,0.12);
}

/* ============================================================
   BASE — universal reset + body defaults
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";  /* DM Sans stylistic */
}

/* ============================================================
   SEMANTIC ELEMENTS — h1..h4, p, small, code, kbd
   Use these classes (or the raw tags) anywhere in a doc.
   ============================================================ */
.display, h1.display {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 700;
  color: var(--text);
}

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--tr-h1);
  font-weight: 700;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: 600;
  color: var(--text);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--tr-h3);
  font-weight: 600;
  color: var(--text);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--tr-h4);
  font-weight: 600;
  color: var(--text);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--text-soft);
  letter-spacing: -0.006em;
  font-variation-settings: 'opsz' 32;
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  letter-spacing: -0.006em;
  font-variation-settings: 'opsz' 32;
}

small, .small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--text-soft);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--tr-mono-label);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

code, kbd, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-feature-settings: "zero", "ss01";
}

.mono-address {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.mono-amount {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
