@import './fonts.css';

:root {
  --primary: #0055ff;
  --primary-dark: #0044cc;
  --primary-light: #e8f0ff;
  --secondary: #223d62;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --border: #e5e7eb;
  --border-muted: #d1d5db;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 16px rgba(0, 85, 255, 0.25);
  --shadow-bubble: 0 16px 16px rgba(12, 12, 13, 0.1), 0 4px 4px rgba(12, 12, 13, 0.05);
  --font: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1280px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-x: clamp(24px, 7.5vw, 116px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-x);
}

.container--narrow {
  max-width: 712px;
}

.section-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 13px;
}

.section-label--light {
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title--light {
  color: #fff;
}

.section-desc {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 40px rgba(0, 85, 255, 0.35);
}

.btn--large {
  padding: 16px 24px;
  font-size: 1.25rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 20px;
}

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

.btn--white {
  background: #fff;
  color: var(--primary);
  padding: 16px 32px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  background: var(--primary-light);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
