/* ==========================================================================
   AminIQ Dev — Design System & Base Styles
   Pure handcrafted CSS. No frameworks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand accent colors */
  --color-blue: #2563EB;
  --color-indigo: #4F46E5;
  --color-cyan: #06B6D4;
  --color-teal: #14B8A6;
  --color-violet: #7C3AED;
  --color-pink: #EC4899;
  --color-amber: #F59E0B;

  /* Backgrounds */
  --bg-body: #FAFBFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);
  --bg-elevated: #FFFFFF;

  /* Text */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-medium: #E2E8F0;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 32px 72px rgba(15, 23, 42, 0.14);
  --shadow-glow-blue: 0 0 40px rgba(37, 99, 235, 0.18);
  --shadow-glow-violet: 0 0 40px rgba(124, 58, 237, 0.18);
  --shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.16);

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  --text-hero: clamp(2.75rem, 6vw, 4rem); /* ~64px */
  --text-section: clamp(2rem, 4vw, 2.5rem); /* ~40px */
  --text-card: 1.5rem; /* 24px */
  --text-body: 1.125rem; /* 18px */

  /* Spacing */
  --section-pad-y: clamp(5rem, 10vw, 8rem);
  --container-max: 1280px;
  --container-narrow: 960px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* Z-index scale */
  --z-base: 1;
  --z-float: 10;
  --z-sticky: 100;
  --z-modal: 1000;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding: var(--section-pad-y) 0;
}

.section__header {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-indigo);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.section__title {
  font-size: var(--text-section);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
  overflow: hidden;
  isolation: isolate;
}

.btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.btn--primary {
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--color-blue), var(--color-indigo));
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.36);
}

.btn--secondary {
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 500ms linear forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Gradient text & decorative utilities
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-blue), var(--color-indigo), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--warm {
  background: linear-gradient(135deg, var(--color-pink), var(--color-amber), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Floating blobs
   -------------------------------------------------------------------------- */
.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.blob--blue {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 70%);
  top: -140px;
  right: -80px;
}

.blob--violet {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
  bottom: -120px;
  left: -120px;
}

.blob--pink {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  top: 40%;
  left: 35%;
}

.blob--cyan {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  bottom: 10%;
  right: 15%;
}

/* --------------------------------------------------------------------------
   Aurora background
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  opacity: 0.45;
  filter: blur(80px);
}

.aurora::before {
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(37, 99, 235, 0.28),
    rgba(124, 58, 237, 0.24),
    rgba(236, 72, 153, 0.2),
    rgba(6, 182, 212, 0.24),
    rgba(37, 99, 235, 0.28)
  );
  animation: auroraRotate 18s var(--ease-in-out-sine) infinite;
}

.aurora::after {
  background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.18), transparent 55%);
  animation: auroraPulse 10s var(--ease-in-out-sine) infinite alternate;
}

@keyframes auroraRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes auroraPulse {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate3d(6%, -4%, 0) scale(1.1); opacity: 0.55; }
}

/* --------------------------------------------------------------------------
   Mesh grid decoration
   -------------------------------------------------------------------------- */
.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
