/* ===================================================
   ARY Technologies — globals.css
   Design tokens, reset, typography, utility classes
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:          #050505;
  --clr-bg-2:        #020202;
  --clr-surface:     #111111;
  --clr-surface-2:   #1a1a1a;
  --clr-border:      rgba(16, 185, 129, 0.2);
  --clr-border-2:    rgba(255, 255, 255, 0.08);

  --clr-primary:     #10B981;
  --clr-primary-light: #6EE7B7;
  --clr-primary-dark:  #047857;
  --clr-accent:      #34D399;
  --clr-accent-2:    #FF6B6B;
  --clr-success:     #10B981;
  --clr-warning:     #FFB347;

  --clr-text:        #FAFAFA;
  --clr-text-2:      #A3A3A3;
  --clr-text-3:      #737373;
  --clr-text-inv:    #050505;

  /* Gradients */
  --grad-primary:    linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --grad-dark:       linear-gradient(135deg, #111111 0%, #050505 100%);
  --grad-card:       linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(52,211,153,0.04) 100%);
  --grad-hero:       radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16,185,129,0.2) 0%, transparent 70%);
  --grad-text:       linear-gradient(135deg, #FAFAFA 0%, #10B981 100%);
  --grad-brand:      linear-gradient(135deg, #10B981, #34D399);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* Sizing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(16,185,129,0.25);
  --shadow-glow-accent: 0 0 40px rgba(52,211,153,0.15);
  --shadow-card: 0 2px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   150ms;
  --dur-med:    300ms;
  --dur-slow:   500ms;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 70px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ── Typography Scale ──────────────────────────────── */
.display-1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-2 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.heading-3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--clr-text-2);
}

.body-md {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text-2);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--clr-text-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ── Gradient Text ─────────────────────────────────── */
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Utilities ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }
}

.section {
  padding-block: var(--space-3xl);
}

.section-sm {
  padding-block: var(--space-2xl);
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-2xl);
  }
  .section-sm {
    padding-block: var(--space-xl);
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid { display: grid; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── Badge / Label ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--clr-border);
  background: rgba(16, 185, 129, 0.08);
  color: var(--clr-primary-light);
}

.badge--accent {
  background: rgba(52, 211, 153, 0.08);
  color: var(--clr-accent);
  border-color: rgba(52, 211, 153, 0.2);
}

.badge--success {
  background: rgba(0, 229, 160, 0.08);
  color: var(--clr-success);
  border-color: rgba(0, 229, 160, 0.2);
}

.badge--warning {
  background: rgba(255, 179, 71, 0.08);
  color: var(--clr-warning);
  border-color: rgba(255, 179, 71, 0.2);
}

/* ── Status Dot ────────────────────────────────────── */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Section Header ────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .badge {
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  max-width: 600px;
  margin-inline: auto;
}

/* ── Divider ───────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border-2);
}

/* ── Scroll animations init ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Noise texture overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
}

/* ── Selection ─────────────────────────────────────── */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-primary-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}
