/* ============================================================
   GLOBAL.CSS v3.1 — Anoda Startup Tools
   Theme: Bright Green + Metallic Inox / Innovation ecosystem
   ============================================================ */

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

:root {
  /* ── Brand ── */
  --brand-primary:   #16a34a;   /* Green 600 */
  --brand-light:     #4ade80;   /* Green 400 */
  --brand-bright:    #86efac;   /* Green 300 */
  --brand-accent:    #059669;   /* Emerald 600 */
  --inox-silver:     #e2e8f0;
  --inox-mid:        #cbd5e1;
  --inox-shine:      #f8fafc;

  /* ── Background: bright fresh green gradient ── */
  --bg-primary:      #f0fdf4;   /* Green 50 */
  --bg-secondary:    #dcfce7;   /* Green 100 */
  --bg-card:         rgba(255,255,255,0.72);
  --bg-card-hover:   rgba(255,255,255,0.92);
  --bg-glass:        rgba(240,253,244,0.88);
  --bg-dark-panel:   rgba(15,40,25,0.88);  /* dark sidebar */

  /* ── Text ── */
  --text-primary:    #14532d;   /* Green 900 */
  --text-secondary:  #166534;   /* Green 800 */
  --text-muted:      #4ade80;

  /* ── Sidebar ── */
  --sidebar-bg:      rgba(5,30,15,0.96);
  --sidebar-width:   300px;

  /* ── Borders ── */
  --border-subtle:   rgba(22,163,74,0.15);
  --border-glow:     rgba(74,222,128,0.5);

  /* ── Shadows ── */
  --shadow-sm:   0 2px 8px rgba(22,163,74,0.12);
  --shadow-md:   0 8px 32px rgba(22,163,74,0.18);
  --shadow-glow: 0 0 30px rgba(74,222,128,0.35);

  /* ── Inox metallic gradient ── */
  --inox-grad: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #94a3b8 50%, #e2e8f0 70%, #f8fafc 100%);

  --transition-fast: 0.2s ease;
  --transition-med:  0.35s ease;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.4rem); }
p  { color: var(--text-secondary); line-height: 1.7; }
a  { color: var(--brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-accent); }

/* ── Animated background ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(134,239,172,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(74,222,128,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(240,253,244,0.9) 0%, transparent 80%),
    linear-gradient(160deg, #f0fdf4 0%, #dcfce7 40%, #bbf7d0 100%);
}
/* Floating bokeh circles */
.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 60px at 15% 25%, rgba(74,222,128,0.18) 0%, transparent 70%),
    radial-gradient(circle 80px at 75% 15%, rgba(134,239,172,0.14) 0%, transparent 70%),
    radial-gradient(circle 50px at 60% 70%, rgba(22,163,74,0.12) 0%, transparent 70%),
    radial-gradient(circle 40px at 30% 80%, rgba(74,222,128,0.10) 0%, transparent 70%),
    radial-gradient(circle 90px at 90% 50%, rgba(134,239,172,0.10) 0%, transparent 70%);
}
/* Subtle grid pattern */
.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(22,163,74,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(22,163,74,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Inox metallic card ── */
.inox-card {
  background: var(--inox-grad);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 0 rgba(255,255,255,0.9) inset, 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.inox-card::before {
  content: '';
  position: absolute;
  top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
}

/* ── Glass card ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; min-height: 44px;
  transition: all var(--transition-fast); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #fff;
  box-shadow: 0 4px 15px rgba(22,163,74,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(22,163,74,0.5); color: #fff; }
.btn-ghost {
  background: rgba(22,163,74,0.08);
  color: var(--brand-primary);
  border: 1px solid rgba(22,163,74,0.25);
}
.btn-ghost:hover { background: rgba(22,163,74,0.15); border-color: var(--brand-light); }

/* ── Tooltip ── */
.tooltip-popup {
  position: fixed;
  background: rgba(5,30,15,0.92);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #f0fdf4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2000;
  max-width: 220px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Text gradient ── */
.text-gradient {
  background: linear-gradient(135deg, #16a34a, #4ade80, #059669);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-inox {
  background: linear-gradient(135deg, #64748b, #94a3b8, #cbd5e1, #94a3b8, #64748b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 800;
}

/* ── Animations ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes shimmer  {
  0%,100% { background-position: -200% center; }
  50%     { background-position: 200% center; }
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #dcfce7; }
::-webkit-scrollbar-thumb { background: rgba(22,163,74,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22,163,74,0.5); }

::selection { background: rgba(74,222,128,0.3); color: #14532d; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 768px) { html { font-size: 15px; } .container { padding: 0 16px; } }
@media (max-width: 480px) { html { font-size: 14px; } .container { padding: 0 12px; } }
