/* ============================================================
   VITALEDGE & VITALVAULT - Shared Components & Layout
   ============================================================ */

/* --- Base Reset & Scrollbar --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

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

ul, ol {
  list-style: none;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1a1a24;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b2b3b;
}

/* --- Layout Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-lighter), transparent);
  position: relative;
  z-index: 1;
}

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  left: -200px;
  top: 10%;
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-purple, var(--accent)) 0%, transparent 70%);
  right: -250px;
  top: 35%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  opacity: 0.2;
  animation: orbFloat3 22s ease-in-out infinite;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-lighter);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-gradient, var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-accent:hover {
  background: var(--accent-gradient-hover, var(--accent-hover, var(--accent)));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px var(--accent-glow-strong), 0 0 15px var(--accent-glow);
}

.btn-glow {
  animation: btnPulse 3s ease-in-out infinite;
}

.btn-arrow {
  transition: transform var(--transition);
}

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

.btn-full {
  width: 100%;
}
