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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: auto;
}

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

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

ul {
  list-style: none;
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ========== Section Base ========== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ========== Buttons (matches app 3D style) ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-blue);
  color: #fff;
  padding: 16px 36px;
  border-radius: 20px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: 0 6px 0 var(--blue-dark), 0 8px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s, filter 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 0 var(--blue-dark), 0 12px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 0px 0 var(--blue-dark), 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 16px 36px;
  border-radius: 20px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--border);
  cursor: pointer;
  box-shadow: 0 4px 0 #CBD5E1, 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.1s, border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #CBD5E1, 0 8px 16px rgba(0, 0, 0, 0.06);
}

.btn-secondary:active {
  transform: translateY(4px);
  box-shadow: 0 0px 0 #CBD5E1, 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }
}