/* ========================================
   RUNETHICS DIGITAL — GLOBAL DESIGN SYSTEM
   Light Premium Agency Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:     #0A0A0A;    /* Deep Black */
  --bg-secondary:   #121212;    /* Charcoal */
  --bg-card:        #121212;    /* Soft Dark Gray */
  --bg-hover:       #2A2A2A;

  /* Accents */
  --accent-cyan:    #3FBF1A;   /* Text highlight deep green */
  --accent-purple:  #00FFA3;   /* Secondary cyber accent */
  --accent-red:     #7C3AED;
  --accent-orange:  #6BFF2E;   /* Mapping primary action green over old orange var */
  --accent-blue:    #2563EB;

  /* Text */
  --text-primary:   #FFFFFF;
  --text-secondary: #B5B5B5;
  --text-muted:     #888888;

  /* Borders */
  --border-subtle:  rgba(124, 252, 0, 0.15); /* Faint neon green boundary */
  --border-accent:  rgba(124, 252, 0, 0.35); /* Neon glow */

  /* Shadows (Glows for dark UI) */
  --shadow-sm:      0 2px 10px rgba(107, 255, 46, 0.05);
  --shadow-md:      0 4px 20px rgba(107, 255, 46, 0.1);
  --shadow-lg:      0 8px 30px rgba(107, 255, 46, 0.15);
  --shadow-card:    0 4px 20px rgba(0, 0, 0, 0.5); /* Deep depth shadow for cards */

  /* Keep old names pointing to new values so nothing breaks */
  --glow-cyan:      var(--shadow-md);
  --glow-purple:    var(--shadow-md);

  /* Typography */
  --font-heading:   'Plus Jakarta Sans', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'Inter', sans-serif;  /* mono replaced with Inter for clean look */

  /* Spacing */
  --section-pad:    100px 0;
  --container-max:  1280px;

  /* Radius */
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;

  /* Transitions */
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 65ch;
  font-size: 1rem;
}

.mono {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SECTION UTILITY ────────────────────────────── */
.section {
  padding: var(--section-pad);
  position: relative;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 55ch;
  margin-bottom: 56px;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.05);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: #6BFF2E;
  color: #0A0A0A; /* Absolute black text for readability on neon */
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(107, 255, 46, 0.1); /* Very minimal subtle glow */
}

.btn-primary:hover {
  background: #4DE000;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 255, 46, 0.15); /* Soft, non-flashy hover glow */
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-orange);
  padding: 10px 0;
  gap: 6px;
  border-radius: 0;
  font-weight: 600;
}

.btn-ghost::after { display: none; }

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

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* ─── CARDS ──────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(107,255,46,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── ICON BOX ───────────────────────────────────── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.icon-box svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .icon-box svg {
  transform: scale(1.1) rotate(5deg);
}

.icon-cyan {
  background: rgba(107,255,46,0.08);
  color: var(--accent-orange);
  border: 1px solid rgba(107,255,46,0.15);
}

.icon-purple {
  background: rgba(37,99,235,0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37,99,235,0.15);
}

.icon-red {
  background: rgba(124,58,237,0.08);
  color: var(--accent-red);
  border: 1px solid rgba(124,58,237,0.15);
}

/* ─── GRID BACKGROUNDS ───────────────────────────── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,255,46,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,255,46,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ─── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(107,255,46,0.06);
  border: 1px solid rgba(107,255,46,0.18);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

/* ─── DIVIDER ────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 30%, var(--border-subtle) 70%, transparent);
  margin: 80px 0;
}

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* ─── UTILITIES ──────────────────────────────────── */
.text-cyan    { color: var(--accent-orange); }   /* mapped so all existing text-cyan classes get orange */
.text-purple  { color: var(--accent-blue); }
.text-red     { color: var(--accent-red); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4       { gap: 16px; }
.gap-8       { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

/* ─── PAGE HERO SHARED ───────────────────────────── */
.page-hero {
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 60ch;
}

/* ─── HIGHLIGHT SPAN ─────────────────────────────── */
.highlight {
  color: var(--accent-orange);
  position: relative;
}
