/* ============================================================
   Volthawk Software — Main Stylesheet
   ============================================================ */

:root {
  --clr-bg:        #07080f;
  --clr-bg-2:      #0d0f1c;
  --clr-bg-3:      #12152a;
  --clr-accent:    #4f9cf9;
  --clr-accent-2:  #7b6ef6;
  --clr-text:      #e8eaf0;
  --clr-muted:     #7a7f9a;
  --clr-border:    rgba(255,255,255,0.07);

  --font-body:     'Inter', system-ui, sans-serif;
  --font-display:  'Space Grotesk', system-ui, sans-serif;

  --max-w:         1120px;
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(5rem, 10vw, 9rem); }

.section-header {
  max-width: 640px;
  margin-bottom: 4rem;
}

.section-sub {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover { background: #3a8ae8; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text);
}
.btn-outline:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

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

/* ── Nav ────────────────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(7, 8, 15, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: auto;
}
.logo-mark { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  font-size: 0.875rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--clr-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: calc(80px + clamp(4rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 420px;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 156, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 156, 249, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: var(--radius-lg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 156, 249, 0.25), transparent 70%);
  top: 20%;
  left: 30%;
}
.orb-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123, 110, 246, 0.2), transparent 70%);
  bottom: 15%;
  right: 15%;
}

/* ── Services ───────────────────────────────────────────────── */
.services { background: var(--clr-bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(79, 156, 249, 0.35);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ── About ──────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--clr-muted);
}

/* ── Code block decorative ──────────────────────────────────── */
.code-block {
  background: #0b0d1a;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--clr-border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }
.code-filename { margin-left: auto; font-size: 0.75rem; color: var(--clr-muted); }

.code-body { padding: 1.5rem; line-height: 1.8; overflow-x: auto; }
.code-body .kw  { color: #7b6ef6; }
.code-body .fn  { color: #4f9cf9; }
.code-body .str { color: #56d364; }

/* ── Process ────────────────────────────────────────────────── */
.process { background: var(--clr-bg-2); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: none;
}

.process-step {
  position: relative;
  padding-top: 1rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(79, 156, 249, 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.contact-text p {
  color: var(--clr-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}


.contact-form-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.contact-form-cta p {
  color: var(--clr-muted);
  font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--clr-border);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-right: auto;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--clr-text); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-visual { height: 260px; order: -1; }

  .about-visual { display: none; }

  .contact-card { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: var(--clr-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { margin-right: 0; }
}
