/* ═══════════════════════════════════════════
   MAIN.CSS — Reset, Variables, Base Styles
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --orange: #E8622C;
  --orange-light: #F4845F;
  --orange-grad: linear-gradient(135deg, #E8622C, #F4845F);
  --orange-10: rgba(232, 98, 44, 0.1);
  --orange-15: rgba(232, 98, 44, 0.15);
  --orange-20: rgba(232, 98, 44, 0.2);
  --orange-30: rgba(232, 98, 44, 0.3);

  --bg: #FFF9F5;
  --bg-card: #FFFFFF;
  --bg-input: #FAFAFA;

  --text-dark: #1A1A2E;
  --text-mid: #555568;
  --text-light: #8E8EA0;

  --border: rgba(0, 0, 0, 0.05);
  --border-hover: rgba(232, 98, 44, 0.2);

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 4px 30px rgba(232, 98, 44, 0.08);
  --shadow-xl: 0 8px 30px rgba(232, 98, 44, 0.25);
  --shadow-btn: 0 6px 20px rgba(232, 98, 44, 0.3);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  --green: #22c55e;
  --red: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

button {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-d1 { animation: fadeUp 0.5s ease 0.08s both; }
.fade-up-d2 { animation: fadeUp 0.5s ease 0.16s both; }
.fade-up-d3 { animation: fadeUp 0.5s ease 0.24s both; }

/* ── Background Orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb--1 {
  top: -120px;
  right: -80px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(232, 98, 44, 0.07) 0%, transparent 70%);
}

.orb--2 {
  bottom: -180px;
  left: -120px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(232, 98, 44, 0.04) 0%, transparent 70%);
}

/* ── Layout ── */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  position: relative;
  z-index: 1;
}

/* ── Pages ── */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.btn--primary {
  padding: 16px 36px;
  border-radius: 16px;
  background: var(--orange-grad);
  color: #fff;
  font-size: 16px;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 98, 44, 0.4);
}

.btn--outline {
  padding: 16px 36px;
  border-radius: 16px;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.12);
  color: var(--text-dark);
  font-size: 16px;
}

.btn--outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--outline-sm {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 700;
}

.btn--outline-sm:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--full {
  width: 100%;
}

/* ── Page Titles ── */
.page-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-title--center {
  text-align: center;
}

.page-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.page-sub--center {
  text-align: center;
  margin-bottom: 32px;
}