/* ============================================================
   INRANK 2.0 — Core Design Tokens & Global Styles
   Inspired by Vinove UI Architecture · Tailored for Inrank
   Strict Font: Inter · Strict Brand: Emerald Green & Slate Navy
   ============================================================ */

:root {
  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Inrank Brand Colors */
  --brand-primary: #009d49;
  --brand-primary-hover: #00b755;
  --brand-primary-dark: #049649;
  --brand-light: #e8f8f0;
  --brand-light-border: #a7f3d0;
  --brand-glow: rgba(0, 157, 73, 0.35);

  /* Corporate Dark & Canvas Neutrals (Vinove-style) */
  --ink: #0f172a;
  --navy: #081424;
  --navy-2: #102138;
  --navy-3: #1a2f4c;
  --stone: #f8fafc;
  --paper: #ffffff;
  --white: #ffffff;
  
  /* Text & Border Tokens */
  --text-strong: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --border-subtle: #cbd5e1;
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Layout dimensions */
  --max: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 80px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Animation Easings */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.18s;
  --dur-base: 0.32s;
  --dur-slow: 0.6s;
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-body);
  background-color: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

ul, ol {
  list-style: none;
}

/* Shell / Container */
.shell {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Scroll Progress Bar */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-hover));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Typography Helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.eyebrow-pill {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--brand-primary, #009d49) !important;
  display: inline-block !important;
  margin-bottom: 0.75rem !important;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-strong);
  margin-bottom: 1.25rem;
}

.section-copy {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 680px;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r-full);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.button.primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-glow);
}

.button.primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.button.secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.button.secondary-dark {
  background-color: var(--surface-2);
  color: var(--text-strong);
  border: 1px solid var(--line);
}

.button.secondary-dark:hover {
  background-color: var(--surface-3);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}

.button:hover svg {
  transform: translateX(3px);
}

/* Arrow Link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-primary);
  transition: gap var(--dur-fast) var(--ease), color var(--dur-fast);
}

.arrow-link::after {
  content: '→';
  font-size: 1.125rem;
  transition: transform var(--dur-fast) var(--ease);
}

.arrow-link:hover {
  color: var(--brand-primary-hover);
  gap: 12px;
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* Scroll Reveal Animations (Vinove data-reveal) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* Screen Reader Only */
.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;
}

