/* ===========================
   CLDH.io — Brand Variables
   =========================== */
:root {
  /* Brand Colors - Charcoal Black, Electric Cyan, Soft Violet */
  --primary: #0a0e14;        /* Charcoal Black */
  --secondary: #00d9ff;      /* Electric Cyan */
  --accent: #a78bfa;         /* Soft Violet */
  
  /* Text Colors (Dark Mode) */
  --text-primary: #e4e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Background Colors (Dark Theme) */
  --bg-dark: #0a0e14;
  --bg-darker: #060810;
  --bg-lighter: #151a24;
  --bg-card: #1a1f2e;
  
  /* Borders & Effects */
  --border: rgba(100, 120, 150, 0.2);
  --border-bright: rgba(0, 217, 255, 0.3);
  --glow: 0 0 20px rgba(0, 217, 255, 0.3);
  --glow-violet: 0 0 20px rgba(167, 139, 250, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===========================
   Base Reset & Typography
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent); }

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-darker);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  color: var(--secondary);
}

.logo-image {
  height: 64px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--secondary);
  color: var(--bg-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-base);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--secondary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  padding: 8rem 0 6rem;
  background: 
    radial-gradient(800px circle at 30% 20%, rgba(0, 217, 255, 0.15), transparent 50%),
    radial-gradient(600px circle at 70% 40%, rgba(167, 139, 250, 0.1), transparent 50%),
    var(--bg-darker);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.highlight-icon {
  font-size: 1.25rem;
}

/* Code Block in Hero */
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.code-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.code-content {
  padding: 1.5rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.code-keyword {
  color: var(--accent);
  font-weight: 600;
}

.code-method {
  color: var(--secondary);
}

.code-comment {
  color: var(--text-muted);
  font-style: italic;
}

/* ===========================
   Services Section
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: var(--glow);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ===========================
   Stack Section
   =========================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stack-category h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  border-color: var(--border-bright);
  background: rgba(0, 217, 255, 0.1);
  transform: translateY(-2px);
}

/* ===========================
   How We Work Section
   =========================== */
.work-flow {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step-number {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--bg-dark);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--glow);
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.flow-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  margin: 0 auto;
  margin-left: 34px;
  opacity: 0.5;
}

.principles {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.principles h3 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.principle {
  text-align: center;
}

.principle-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.principle strong {
  display: block;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===========================
   Credibility Section
   =========================== */
.credibility-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.credibility-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.credibility-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1rem;
}

.text-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.credibility-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-bright);
  transform: translateX(-4px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Proof Strip */
.proof-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
}

.proof-item {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
  text-align: center;
  line-height: 1.5;
}

.proof-item:last-child {
  border-right: none;
}

/* ===========================
   Contact Section
   =========================== */
.section-contact {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 4rem 0;
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  box-shadow: var(--glow);
}

.contact-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.contact-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stack-grid {
    grid-template-columns: 1fr;
  }
  
  .principles-grid {
    grid-template-columns: 1fr;
  }
  
  .credibility-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .nav {
    display: none; /* Mobile menu needed */
  }
  
  .hero {
    padding: 5rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .flow-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
  }
  
  .flow-connector {
    margin-left: 29px;
  }
  
  .proof-strip {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .proof-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
  }
  
  .proof-item:last-child {
    border-bottom: none;
  }
  
  .contact-card {
    padding: 2.5rem 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-methods {
    flex-direction: column;
    width: 100%;
  }
  
  .contact-methods .btn {
    width: 100%;
  }
}