/* ───────────────────────────────────────────
   Luna Consulting — Stylesheet
   ─────────────────────────────────────────── */

/* ── Tokens ── */
:root {
  --bg:         #0a0d14;
  --bg-alt:     #0f1420;
  --surface:    #141926;
  --border:     rgba(255,255,255,.08);
  --text:       #e2e8f0;
  --text-muted: #7a8499;
  --accent:     #6c9cff;
  --accent-2:   #a78bfa;
  --accent-3:   #34d399;
  --heading:    #f1f5f9;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 32px rgba(0,0,0,.35);
  --nav-h:      68px;
  --font-sans:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:  'Cascadia Code', 'Fira Code', 'Courier New', monospace;
}

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

/* ── Container ── */
.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #5585ee; }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ── */
header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
header.scrolled {
  background: rgba(10,13,20,.85);
  border-color: var(--border);
  backdrop-filter: blur(16px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.logo-mark {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + 5rem) 7rem;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108,156,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  padding: .3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--heading);
  margin-bottom: 1.4rem;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section { padding-block: 6rem; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--heading);
  margin-bottom: .8rem;
}
.section-sub { color: var(--text-muted); }

/* ── Service Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: pointer;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108,156,255,.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }
.card-cloud .card-icon { background: linear-gradient(135deg, #1d6fa4, #3b9fd4); }
.card-dev   .card-icon { background: linear-gradient(135deg, #5a4fcf, #7c6de0); }
.card-ai    .card-icon { background: linear-gradient(135deg, #0e7c59, #2ac98a); }
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
}
.card p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: .2rem .65rem;
  background: rgba(108,156,255,.1);
  border: 1px solid rgba(108,156,255,.2);
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
}
.card-cta {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Service Detail ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.service-detail--reverse { direction: rtl; }
.service-detail--reverse > * { direction: ltr; }
.service-text .section-eyebrow { margin-bottom: .6rem; }
.service-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--heading);
  margin-bottom: 1rem;
}
.service-text > p { color: var(--text-muted); margin-bottom: 2rem; }

/* ── Feature list ── */
.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }
.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-icon--aws     { background: rgba(255,153,0,.12);  color: #ff9900; }
.feature-icon--azure   { background: rgba(0,120,212,.15);  color: #0078d4; }
.feature-icon--devops  { background: rgba(108,156,255,.12); color: var(--accent); }
.feature-icon--dotnet  { background: rgba(129,0,255,.12);  color: #a855f7; }
.feature-icon--js      { background: rgba(234,179,8,.12);  color: #eab308; }
.feature-icon--python  { background: rgba(52,211,153,.12); color: #34d399; }
.feature-icon--ai      { background: rgba(167,139,250,.12); color: var(--accent-2); }
.feature-icon--analytics { background: rgba(59,130,246,.12); color: #60a5fa; }
.feature-icon--pipeline  { background: rgba(52,211,153,.12); color: var(--accent-3); }
.feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .25rem;
}
.feature p { color: var(--text-muted); font-size: .9rem; }

/* ── Service visuals ── */
.service-visual { display: flex; justify-content: center; }
.visual-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.visual-badge::before { content: '●'; font-size: .5rem; }
.visual-badge--green { background: rgba(52,211,153,.15); color: var(--accent-3); }
.visual-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.metric { text-align: center; }
.metric-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--heading);
}
.metric-label { font-size: .73rem; color: var(--text-muted); }
.visual-bar-group { display: flex; flex-direction: column; gap: .75rem; }
.visual-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }

/* Code window */
.code-window {
  width: 100%;
  max-width: 420px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-window-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.code-window-title {
  font-size: .78rem;
  color: var(--text-muted);
  margin-left: .5rem;
  font-family: var(--font-mono);
}
.code-block {
  margin: 0;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.75;
  color: #cdd9e5;
  overflow-x: auto;
}
.code-block code { display: block; }
.c-kw  { color: #f47067; }
.c-fn  { color: #dcbdfb; }
.c-str { color: #96d0ff; }
.c-dec { color: #6cb6ff; }
.c-type{ color: #6cb6ff; }
.c-num { color: #f69d50; }

/* Chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 120px;
  margin-bottom: 1.25rem;
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex: 1;
}
.chart-bar {
  width: 100%;
  background: rgba(108,156,255,.25);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(108,156,255,.3);
}
.chart-bar--accent {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(108,156,255,.4) 100%);
  border-color: var(--accent);
}
.chart-col span { font-size: .75rem; color: var(--text-muted); }
.insight-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.insight-chip {
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
}
.chip--green  { background: rgba(52,211,153,.15); color: var(--accent-3); }
.chip--blue   { background: rgba(108,156,255,.15); color: var(--accent); }
.chip--purple { background: rgba(167,139,250,.15); color: var(--accent-2); }

/* ── Why section ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.why-item {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.why-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -.04em;
  margin-bottom: .75rem;
}
.why-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .5rem;
}
.why-item p { font-size: .9rem; color: var(--text-muted); }

/* ── Contact ── */
.section-contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--heading);
  margin-bottom: 1rem;
}
.contact-text > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: .85rem; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.contact-details li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.contact-details a { color: var(--text-muted); transition: color .2s; }
.contact-details a:hover { color: var(--accent); }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
}
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: .65rem .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,156,255,.15);
}
select { appearance: none; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: .88rem; text-align: center; min-height: 1.2em; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { color: var(--text-muted); font-size: .88rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .service-detail,
  .service-detail--reverse,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    direction: ltr;
  }
  .service-visual { order: -1; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10,13,20,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding-block: 4rem; }
}
