/* ============================================================
   HUMAN OR MACHINE — Clean Sci-Fi Theme
   ============================================================ */

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

:root {
  --bg:          #080c10;
  --bg-alt:      #0d1117;
  --bg-card:     #111820;
  --accent:      #4fc3f7;
  --accent-dim:  #1a3a4a;
  --text:        #e8edf2;
  --text-muted:  #6b7c8d;
  --border:      #1e2d3a;
  --font-main:   'Space Grotesk', system-ui, sans-serif;
  --font-mono:   'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

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

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

/* --- Typography ------------------------------------------- */
h1, h2, h3 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8em;
  letter-spacing: 0.04em;
}

.accent {
  color: var(--accent);
}

.accent-text {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}

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

.container-narrow {
  max-width: 700px;
}

.section {
  padding: 7rem 0;
}

.section-dark {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* --- Navigation ------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-dim) !important;
}

/* --- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Subtle grid background */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 195, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 247, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

/* Radial glow at top */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #81d4fa;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  color: var(--text);
}

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

/* --- About ------------------------------------------------ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Services --------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg-alt);
  padding: 2.5rem;
  transition: background 0.2s;
}

.service-card:hover {
  background: var(--bg-card);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Blog ------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.blog-card {
  background: var(--bg-alt);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.blog-card:hover {
  background: var(--bg-card);
}

.blog-card-featured {
  background: var(--bg-card);
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.35;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.read-more {
  font-size: 0.85rem;
  color: var(--accent);
  transition: gap 0.2s;
  display: inline-block;
  margin-top: auto;
}

.read-more:hover {
  opacity: 0.8;
}

/* --- Contact ---------------------------------------------- */
.section-contact {
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(79,195,247,0.06) 0%, transparent 60%),
              var(--bg);
}

.section-contact .section-label {
  justify-content: center;
  display: flex;
}

.section-contact .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

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

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

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

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

/* --- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  .hero-inner {
    padding: 3rem 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}
