/* Tarkalogix — Global Styles */
:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.03);
  --bg-subtle: rgba(255,255,255,0.02);
  --text: #f5f3ef;
  --text-muted: rgba(255,255,255,0.65);
  --accent: #e8e6e1;
  --accent-warm: #c9a96e;
  --accent-gold: #d4b87a;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --radius: 8px;
  --font: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-warm); text-decoration: none; }
a:hover { color: var(--accent-gold); text-decoration: none; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
nav .logo { font-weight: 700; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1rem; }
nav .logo span { color: var(--accent-warm); }
nav .nav-links a { color: var(--text-muted); margin-left: 2rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
nav .nav-links a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(ellipse at 60% 40%, rgba(201,169,110,0.12) 0%, transparent 60%);
}
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg stroke='%23c9a96e' stroke-width='0.5' fill='none' opacity='0.6'%3E%3Ccircle cx='300' cy='300' r='80'/%3E%3Ccircle cx='300' cy='300' r='140'/%3E%3Ccircle cx='300' cy='300' r='200'/%3E%3Ccircle cx='300' cy='300' r='260'/%3E%3Cline x1='300' y1='40' x2='300' y2='560'/%3E%3Cline x1='40' y1='300' x2='560' y2='300'/%3E%3Cline x1='116' y1='116' x2='484' y2='484'/%3E%3Cline x1='484' y1='116' x2='116' y2='484'/%3E%3Ccircle cx='300' cy='120' r='4' fill='%23c9a96e'/%3E%3Ccircle cx='300' cy='480' r='4' fill='%23c9a96e'/%3E%3Ccircle cx='120' cy='300' r='4' fill='%23c9a96e'/%3E%3Ccircle cx='480' cy='300' r='4' fill='%23c9a96e'/%3E%3Ccircle cx='170' cy='170' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='430' cy='170' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='170' cy='430' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='430' cy='430' r='3' fill='%23c9a96e'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; bottom: -15%; left: -5%;
  width: 500px; height: 500px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Cg stroke='%23c9a96e' stroke-width='0.4' fill='none' opacity='0.5'%3E%3Cpath d='M50,250 L150,100 L300,150 L400,50 L450,200 L350,300 L450,400 L300,450 L150,350 L50,250Z'/%3E%3Cpath d='M150,100 L350,300'/%3E%3Cpath d='M300,150 L150,350'/%3E%3Cpath d='M400,50 L300,450'/%3E%3Cpath d='M450,200 L50,250'/%3E%3Ccircle cx='150' cy='100' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='300' cy='150' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='400' cy='50' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='450' cy='200' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='350' cy='300' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='450' cy='400' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='300' cy='450' r='3' fill='%23c9a96e'/%3E%3Ccircle cx='150' cy='350' r='3' fill='%23c9a96e'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
  animation: drift 25s ease-in-out infinite reverse;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  position: relative;
  color: #fff;
}
.hero h1 strong { font-weight: 700; color: var(--accent-gold); }
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}
.hero .cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--accent-warm);
  color: #0a0a0f;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.hero .cta:hover { background: var(--accent-gold); text-decoration: none; }

/* Section */
section { padding: 5rem 0; }
section:nth-child(even) {
  background: var(--bg-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg stroke='%23c9a96e' stroke-width='0.3' fill='none' opacity='0.12'%3E%3Cline x1='0' y1='30' x2='60' y2='30'/%3E%3Cline x1='30' y1='0' x2='30' y2='60'/%3E%3C/g%3E%3C/svg%3E");
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.section-header h2 strong { font-weight: 700; color: var(--accent-gold); }
.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-hover); }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; letter-spacing: 0.01em; }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.card .icon { font-size: 1.3rem; margin-bottom: 1rem; display: block; color: var(--accent-warm); }

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
  padding: 3rem 0;
}
.stat .number { font-size: 2.5rem; font-weight: 300; color: var(--accent-warm); }
.stat .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Verticals list */
.verticals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.vertical-item {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.vertical-item strong { color: var(--accent-gold); }
.vertical-item span { color: var(--text-muted); }

/* Methodology */
.methodology {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.method-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.method-step::before {
  counter-increment: step;
  content: '0' counter(step);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 1rem;
}
.method-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.method-step p { color: var(--text-muted); font-size: 0.9rem; }

/* Deliverables */
.deliverables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.deliverable {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.deliverable h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--accent-warm); letter-spacing: 0.02em; }
.deliverable ul { list-style: none; padding: 0; }
.deliverable ul li { color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0; padding-left: 1.2rem; position: relative; }
.deliverable ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent-warm); }

/* Quote */
.quote-block {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.quote-block blockquote {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-warm);
  line-height: 1.7;
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.5rem;
  text-align: left;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  background: var(--bg);
}
.cta-section h2 { font-size: 2rem; font-weight: 300; margin-bottom: 1rem; letter-spacing: 0.02em; color: #fff; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }
.cta-section .cta { display: inline-block; padding: 1rem 2.5rem; background: var(--accent-warm); color: #0a0a0f; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; border-radius: var(--radius); transition: background 0.2s; }
.cta-section .cta:hover { background: var(--accent-gold); text-decoration: none; }

/* Footer */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}
@keyframes grid-fade {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.18; }
}

/* Responsive */
@media (max-width: 768px) {
  nav .nav-links { display: none; }
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 2rem; }
}
