/* ============================================================
   MDStudio — style.css
   Global reset, variables, typography, layout utilities
   ============================================================ */

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

:root {
  --orange: #f6921e;
  --orange-dark: #d97a0e;
  --cyan: #0beff3;
  --steel: #8fbfc8;

  /* Dark theme */
  --bg: #111009;
  --bg-2: #181612;
  --bg-3: #1f1d17;
  --surface: #242119;
  --surface-2: #2c2a22;

  --white: #ffffff;
  --text: #e8e4db;
  --text-soft: #9e9b92;
  --text-faint: #5c5a54;
  --border: rgba(232, 228, 219, 0.08);
  --border-soft: rgba(232, 228, 219, 0.05);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);

  --max-w: 1320px;
  --nav-h: 70px;
}

[data-theme="light"] {
  --bg: #f4f1eb;
  --bg-2: #e9e4d9;
  --bg-3: #dfdacb;
  --surface: #ffffff;
  --surface-2: #fbfbfa;

  --white: #111009;
  --text: #242119;
  --text-soft: #4a473e;
  --text-faint: #7d7a71;
  --border: rgba(17, 16, 9, 0.12);
  --border-soft: rgba(17, 16, 9, 0.06);

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.1;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ──────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  color: var(--text-soft);
  font-weight: 400;
  line-height: 1.75;
}

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

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

ul {
  list-style: none;
}

/* ─── LAYOUT ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

section.section {
  padding: 110px 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── SECTION LABELS ──────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s, color 0.22s;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.22s;
  flex-shrink: 0;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 146, 30, 0.35);
}

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

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(246, 146, 30, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  gap: 8px;
}

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

.btn-white {
  background: var(--white);
  color: var(--orange);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ─── SCROLL ANIMATIONS ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* ─── RESPONSIVE BASE ─────────────────────────── */
@media (max-width: 960px) {
  :root {
    --nav-h: 60px;
  }

  .container,
  .section-inner {
    padding: 0 24px;
  }

  section.section {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {

  .container,
  .section-inner {
    padding: 0 20px;
  }

  section.section {
    padding: 64px 0;
  }
}