 /* ══════════════════════════════════════
     HOME PAGE
  ══════════════════════════════════════ */

  /* @font-face declarations */
  @font-face {
    font-family: 'Graphik';
    src: url('../font/Graphik-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Graphik';
    src: url('../font/Graphik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Graphik-Light';
    src: url('../font/Graphik-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Graphik-Bold';
    src: url('../font/Graphik-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'GT-Sectra-Fine';
    src: url('../font/GT-Sectra-Fine-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  .home-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(160deg, #0d001a 0%, #1a0038 40%, #2d0060 70%, #4a0099 100%);
    position: relative;
    overflow: hidden;
  }

  .home-shell.hidden { display: none; }

  /* Decorative background orbs */
  .home-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.25;
  }

  .home-brand {
    padding: var(--spacing-4) var(--spacing-6) 0;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
  }

  .home-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-5) var(--spacing-3);
    position: relative;
    z-index: 2;
  }

  .home-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 52px 56px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: visible;
  }

  .home-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(161,0,255,0.2);
    border: 1px solid rgba(161,0,255,0.4);
    color: var(--color-accent-4);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: var(--spacing-3);
  }

  .home-headline {
    font-family: var(--font-graphik-bold);
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 10px;
  }

  .home-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: var(--spacing-5);
    line-height: 1.6;
    font-weight: 300;
  }

  .home-field-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: var(--spacing-1);
    display: block;
  }

  .home-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: white;
    font-family: var(--font-graphik);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-2) center;
    padding-right: var(--spacing-5);
    margin-bottom: var(--spacing-2-5);
  }

  .home-select:focus {
    border-color: rgba(161,0,255,0.6);
    background-color: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(161,0,255,0.15);
  }

  .home-select option {
    background: var(--color-grey-900);
    color: white;
  }

  .home-contract-wrap {
    overflow: visible;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .home-contract-wrap.visible {
    max-height: none;
    opacity: 1;
    pointer-events: all;
  }

  .home-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2);
    margin-top: var(--spacing-4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  .home-action-row.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .home-btn {
    padding: 16px 24px;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
  }

  .home-btn-new {
    background-color: #000000;
    color: #ffffff;
  }

  .home-btn-new:hover {
    background-color: #d1d1d1;
    color: #000000;
  }

  .home-btn-existing {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
  }

  .home-btn-existing:hover {
    background-color: #d1d1d1;
  }

  .home-btn-title { font-size: 15px; font-weight: 700; }
  .home-btn-desc { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; line-height: 1.4; text-align: center; }

  .home-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 36px 0 28px;
  }

  .home-stats {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
  }

  .home-stat-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent-4);
    line-height: 1;
  }

  .home-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 3px;
    letter-spacing: 0.3px;
  }

:root {
    /* Purple scale (mapped from tailwind core + grey) */
    --purple-900: #1D1823;
    --purple-800: #460073;
    --purple-700: #7500c0;
    --purple-600: #a100ff;
    --purple-500: #7500C0;
    --purple-400: #A100FF;
    --purple-300: #BE82FF;
    --purple-200: #DCAFFF;
    --purple-100: #F7EBFF;
    --purple-50: #FAFAFA;

    /* Accent colors (from tailwind sec + accent) */
    --accent-gold: #FFEB32;
    --accent-teal: #05F0A5;
    --accent-coral: #FF3246;

    /* Text colors (derived from tailwind grey scale) */
    --text-dark: #03000F;
    --text-mid: #4F4B53;
    --text-light: #837F89;

    /* Backgrounds */
    --bg-white: #FAFAFA;

    /* Inputs */
    --input-yellow: #F7EBFF;
    --input-blue: #F2F2F2;

    /* Borders */
    --border-light: #E5E5E5;

    /* Status (from tailwind config) */
    --success: #48CB48;
    --warning: #FFBF00;
    --error: #eb5757;

    /* CTA (from tailwind) */
    --cta: #126dff;

    /* Data visualization */
    --data-viz-1: #B455AA;
    --data-viz-2: #DFADFF;
    --data-viz-3: #6B05AC;
    --data-viz-4: #3068FD;
    --data-viz-5: #324288;

    /* New token aliases (matching tailwind.config.ts exactly) */
    --color-core-1: #a100ff;
    --color-core-2: #7500c0;
    --color-core-3: #460073;
    --color-cta: #126dff;
    --color-accent-1: #B455AA;
    --color-accent-2: #A055F5;
    --color-accent-3: #BE82FF;
    --color-accent-4: #DCAFFF;
    --color-accent-5: #F7EBFF;
    --color-grey-100: #FAFAFA;
    --color-grey-200: #F2F2F2;
    --color-grey-300: #E5E5E5;
    --color-grey-400: #CCCBCE;
    --color-grey-500: #B3B2B5;
    --color-grey-600: #837F89;
    --color-grey-700: #4F4B53;
    --color-grey-800: #3B3944;
    --color-grey-900: #1D1823;
    --color-grey-1000: #03000F;
    --color-sec-blue-dark: #0041F0;
    --color-sec-blue-light: #00FFFF;
    --color-sec-green-dark: #05F0A5;
    --color-sec-green-light: #64FF50;
    --color-sec-yellow: #FFEB32;
    --color-sec-orange: #FF7800;
    --color-sec-red: #FF3246;
    --color-sec-pink: #FF50A0;
    --color-disable: #b3b2b5;
    --color-warning-dark: #FFBF00;
    --color-warning-light: #C18B00;
    --color-error-dark: #eb5757;
    --color-error-light: #B10B02;
    --color-success-dark: #48CB48;
    --color-success-light: #3E8629;
    --color-information-dark: #009dff;
    --color-information-light: #00558A;
    --color-data-viz-1: #B455AA;
    --color-data-viz-2: #DFADFF;
    --color-data-viz-3: #6B05AC;
    --color-data-viz-4: #3068FD;
    --color-data-viz-5: #324288;

    /* Spacing scale */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-2-5: 20px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --spacing-7: 64px;
    --spacing-8: 80px;
    --spacing-9: 96px;
    --spacing-10: 128px;
    --spacing-11: 256px;

    /* Font families */
    --font-graphik-light: 'Graphik-Light', 'Inter', sans-serif;
    --font-graphik: 'Graphik', 'Inter', sans-serif;
    --font-graphik-bold: 'Graphik-Bold', 'Inter', sans-serif;
    --font-gt-sectra-fine: 'GT-Sectra-Fine', Georgia, serif;

    /* Breakpoints (for reference) */
    --breakpoint-small: 360px;
    --breakpoint-medium: 600px;
    --breakpoint-tablet: 1024px;
    --breakpoint-desktop: 1366px;
    --breakpoint-extended: 1441px;
  }

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

  body {
    font-family: var(--font-graphik);
    background: var(--color-grey-900);
    color: var(--color-grey-1000);
    min-height: 100vh;
    overflow-x: hidden;
  }
