/* =========================================================
   design.css — MadeBy.Expert Design System
   Public stylesheet with all design tokens.
   Import via:  @import url('design.css');
   Use: var(--token-name)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=JetBrains+Mono:wght@400;600&display=swap');

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Inter'), local('Inter Regular'),
       local(-apple-system), local(BlinkMacSystemFont), local('Segoe UI'), local(Roboto);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Inter Medium'),
       local(-apple-system), local(BlinkMacSystemFont), local('Segoe UI'), local(Roboto);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Inter SemiBold'),
       local(-apple-system), local(BlinkMacSystemFont), local('Segoe UI'), local(Roboto);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Inter Bold'),
       local(-apple-system), local(BlinkMacSystemFont), local('Segoe UI'), local(Roboto);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Source Serif 4'), local('Source Serif 4 Regular'),
       local(Georgia), local('Times New Roman');
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Source Serif 4 Semibold'),
       local(Georgia), local('Times New Roman');
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Source Serif 4 Bold'),
       local(Georgia), local('Times New Roman');
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('JetBrains Mono'), local('JetBrains Mono Regular'),
       local('Fira Code'), local('Cascadia Code'), local(Consolas);
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('JetBrains Mono SemiBold'),
       local('Fira Code'), local('Cascadia Code'), local(Consolas);
  unicode-range: U+0000-00FF;
}

/* Web font loading strategy: Google Fonts @import with display=swap; @font-face with local() fallbacks */

/* ------------------------------------------------------------------ */
/*  CUSTOM PROPERTIES (Design Tokens)                                  */
/* ------------------------------------------------------------------ */
:root {
  /* ---- Color Palette ---- */
  --color-navy:            #1A1A2E;
  --color-navy-light:      #2D2D44;
  --color-navy-mid:        #16213E;
  --color-gold:            #F5A623;
  --color-gold-light:      #FFC44D;
  --color-gold-dark:       #D4891E;
  --color-white:           #FFFFFF;
  --color-off-white:       #F5F5F7;
  --color-gray-100:        #E8E8ED;
  --color-gray-300:        #B0B0C0;
  --color-gray-500:        #6B6B80;
  --color-success:         #34C759;
  --color-error:           #FF3B30;

  /* ---- Typography ---- */
  --font-sans:             'Inter', -apple-system, BlinkMacSystemFont,
                           'Segoe UI', Roboto, sans-serif;
  --font-serif:            'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:             'JetBrains Mono', 'Fira Code', 'Cascadia Code',
                           'Consolas', monospace;

  --font-size-xs:          0.75rem;   /* 12px */
  --font-size-sm:          0.875rem;  /* 14px */
  --font-size-base:        1rem;      /* 16px */
  --font-size-lg:          1.125rem;  /* 18px */
  --font-size-xl:          1.25rem;   /* 20px */
  --font-size-2xl:         1.5rem;    /* 24px */
  --font-size-3xl:         2rem;      /* 32px */
  --font-size-4xl:         2.5rem;    /* 40px */

  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;

  --leading-tight:         1.15;
  --leading-normal:        1.6;
  --leading-relaxed:       1.75;

  --tracking-tight:        -0.02em;
  --tracking-normal:       0;
  --tracking-wide:         0.04em;

  /* ---- Spacing ---- */
  --space-1:               0.25rem;   /*  4px */
  --space-2:               0.5rem;    /*  8px */
  --space-3:               0.75rem;   /* 12px */
  --space-4:               1rem;      /* 16px */
  --space-5:               1.25rem;   /* 20px */
  --space-6:               1.5rem;    /* 24px */
  --space-8:               2rem;      /* 32px */
  --space-10:              2.5rem;    /* 40px */
  --space-12:              3rem;      /* 48px */
  --space-16:              4rem;      /* 64px */
  --space-20:              5rem;      /* 80px */

  /* ---- Border Radius ---- */
  --radius-sm:             4px;
  --radius-md:             8px;
  --radius-lg:             12px;
  --radius-xl:             16px;
  --radius-full:           9999px;

  /* ---- Shadows ---- */
  --shadow-sm:             0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md:             0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg:             0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-glow-gold:      0 0 20px rgba(245, 166, 35, 0.3);

  /* ---- Transitions ---- */
  --transition-fast:       150ms ease;
  --transition-base:       250ms ease;
  --transition-slow:       400ms ease;
}

/* ------------------------------------------------------------------ */
/*  BASE RESET                                                         */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------------ */
/*  BODY                                                               */
/* ------------------------------------------------------------------ */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-white);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------ */
/*  TYPOGRAPHY                                                         */
/* ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

p {
  max-width: 75ch;
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

strong {
  font-weight: var(--font-weight-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.3em;
  background: var(--color-navy-light);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ */
/*  BUTTONS                                                            */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
  min-height: 44px;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-glow-gold);
}

.btn--primary:active {
  background: var(--color-gold-dark);
}

.btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn--secondary:hover {
  background: rgba(245, 166, 35, 0.1);
  border-color: var(--color-gold-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray-300);
}

.btn--ghost:hover {
  color: var(--color-white);
  background: var(--color-navy-light);
}

/* ------------------------------------------------------------------ */
/*  CARDS                                                              */
/* ------------------------------------------------------------------ */
.card {
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  background: var(--color-navy-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.card--gold-accent {
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-glow-gold);
}

/* ------------------------------------------------------------------ */
/*  CONTAINER & GRID                                                   */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

.grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(12, 1fr);
}

.grid__col--1  { grid-column: span 1; }
.grid__col--2  { grid-column: span 2; }
.grid__col--3  { grid-column: span 3; }
.grid__col--4  { grid-column: span 4; }
.grid__col--5  { grid-column: span 5; }
.grid__col--6  { grid-column: span 6; }
.grid__col--7  { grid-column: span 7; }
.grid__col--8  { grid-column: span 8; }
.grid__col--9  { grid-column: span 9; }
.grid__col--10 { grid-column: span 10; }
.grid__col--11 { grid-column: span 11; }
.grid__col--12 { grid-column: span 12; }

/* ------------------------------------------------------------------ */
/*  UTILITY CLASSES                                                    */
/* ------------------------------------------------------------------ */
.text--center { text-align: center; }
.text--left   { text-align: left; }
.text--right  { text-align: right; }

.text--gold   { color: var(--color-gold); }
.text--muted  { color: var(--color-gray-300); }
.text--white  { color: var(--color-white); }

.bg--navy    { background-color: var(--color-navy); }
.bg--navy-lt { background-color: var(--color-navy-light); }
.bg--off-white { background-color: var(--color-off-white); color: var(--color-navy); }

/* ------------------------------------------------------------------ */
/*  ACCESSIBILITY                                                      */
/* ------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: var(--space-1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ */
/*  DOT-GRID BACKGROUND PATTERN                                        */
/* ------------------------------------------------------------------ */
.bg-dots {
  background-image: radial-gradient(
    circle,
    var(--color-navy-light) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

.bg-dots--gold {
  background-image: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.15) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}