/* ===== HEROKID FONT ===== */
@font-face {
  font-family: 'Herokid';
  src: url('../assets/fonts/Herokid-Regular.woff2') format('woff2'),
       url('../assets/fonts/Herokid-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Herokid';
  src: url('../assets/fonts/Herokid-Bold.woff2') format('woff2'),
       url('../assets/fonts/Herokid-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary:    #04071D;
  --secondary:  #F5BD42;
  --tertiary:   #D8662A;
  --accent:     #CB4021;
  --accent-2:   #4D5162;

  /* Dark surfaces (intro, headers) */
  --dark-bg:       #04071D;
  --dark-card:     #0D1130;
  --dark-border:   rgba(77, 81, 98, 0.4);
  --dark-surface:  #141830;

  /* Light surfaces (content areas) */
  --light-bg:      #FFFFFF;
  --light-card:    #F7F8FA;
  --light-border:  #E2E5ED;
  --light-surface: #EDEEF2;

  --text-dark:      #1A1D2E;
  --text-dark-2:    #555970;
  --text-dark-3:    #8B90A5;
  --text-light:     #F0F2FF;
  --text-light-2:   #9DA3C0;

  --tier-excellent: #2ECC71;
  --tier-good:      #27AE60;
  --tier-average:   #F5BD42;
  --tier-warning:   #D8662A;
  --tier-critical:  #CB4021;

  --font-display: 'Herokid', 'Roboto', sans-serif;
  --font-body:    'Roboto', system-ui, sans-serif;

  --radius-sm:  0px;
  --radius-md:  0px;
  --radius-lg:  0px;
  --radius-xl:  0px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(203, 64, 33, 0.12);

  --transition: 200ms ease;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--dark-bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, textarea { font-family: var(--font-body); }

/* ===== SCREEN SYSTEM ===== */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: #0d0d20;
  color: var(--secondary);
  border-radius: 100px;
  border: 1px solid rgba(245, 189, 66, 0.25);
  box-shadow: 0 0 24px rgba(245, 189, 66, 0.12), 0 0 8px rgba(245, 189, 66, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary:hover {
  background: #0d0d20;
  border-color: rgba(245, 189, 66, 0.5);
  box-shadow: 0 0 36px rgba(245, 189, 66, 0.22), 0 0 12px rgba(245, 189, 66, 0.14);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-light-2);
  border: 1px solid var(--dark-border);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--text-light);
}

.btn-back {
  background: transparent;
  color: var(--text-dark-3);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.btn-back:hover { color: var(--text-dark); background: var(--light-card); }

.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ===== FORM ELEMENTS ===== */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(157,163,192,0.6); }

.text-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}

.text-input::placeholder { color: rgba(157,163,192,0.5); }
.text-input:focus { border-color: var(--tertiary); }
.text-input.input-error { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(203,64,33,0.2); }

/* ===== LOGOS ===== */
.logo-img { height: 36px; width: auto; }
.logo-sm { height: 28px; width: auto; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }

/* ===== BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(203,64,33,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(245,189,66,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  right: 0;
  bottom: 0;
  width: 55vw;
  max-width: 700px;
  height: 100vh;
  background-image: url('https://shopcontroller.com/wp-content/uploads/2023/04/sc-mechanic-bg-2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 0; }
