/* ==========================================================================
   Smart Applications, LLC — Site Stylesheet
   Palette pulled from brand logo:
     Blue   #4D8DFF
     Green  #00D99C
     Slate  #5A6474 / #7C8698 / #9AA5B4
   Layout/structure inspired by a modern dark-theme consulting site
   (nav, hero, service cards, numbered process, why-us grid, CTA, footer).
   ========================================================================== */

:root {
  /* Brand colors (from logo) */
  --blue: #4d8dff;
  --blue-light: #7fb0ff;
  --blue-dim: rgba(77, 141, 255, 0.12);
  --green: #00d99c;
  --green-dim: rgba(0, 217, 156, 0.12);
  --slate-900: #5a6474;
  --slate-600: #7c8698;
  --slate-400: #9aa5b4;

  /* Surfaces */
  --bg: #05080d;
  --bg-alt: #080d15;
  --bg-elevated: rgba(154, 165, 180, 0.06);
  --card-bg: rgba(124, 134, 152, 0.08);
  --card-border: rgba(77, 141, 255, 0.14);
  --nav-bg: rgba(5, 8, 13, 0.85);

  /* Text */
  --text-primary: #eef1f5;
  --text-body: #c7d0da;
  --text-muted: #9aa5b4;
  --text-dim: #6e7887;

  /* Shape */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Type */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

@media (max-width: 768px) {
  section.section { padding: 72px 0; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.section-head p { font-size: 18px; color: var(--text-muted); margin: 0; }

.gradient-text {
  background: linear-gradient(90deg, var(--blue-light), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #05080d; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(77,141,255,0.25); }

.btn-outline { background: transparent; color: var(--text-primary); border-color: rgba(154,165,180,0.35); }
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: var(--radius-sm); }

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-dim);
  border: 1px solid rgba(77,141,255,0.18);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154,165,180,0.08);
  transition: padding 0.2s ease;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.2s ease;
}
.nav.scrolled .container { padding-top: 12px; padding-bottom: 12px; }

.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

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

@media (max-width: 960px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid rgba(154,165,180,0.08); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(154,165,180,0.06); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
/* Fonts used only for the hero's animated graphic (from the Claude Design
   source) — kept scoped to .hero so the rest of the site stays on Manrope. */
.hero {
  --hero-font-display: "Space Grotesk", var(--font);
  --hero-font-mono: "JetBrains Mono", monospace;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 96px;
  font-family: var(--hero-font-display);
}

/* Layer 0: animated aurora-ribbon canvas, full bleed */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Layer 1: fade the canvas out toward the right so the right-aligned
   copy stays readable — animation reads strongest on the left. */
.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 8, 13, 0.25) 0%,
    rgba(5, 8, 13, 0.55) 35%,
    rgba(5, 8, 13, 0.9) 58%,
    rgba(5, 8, 13, 0.99) 74%
  );
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 15% 45%, rgba(77, 141, 255, 0.12), transparent 70%);
}

/* Layer 2: content, flush right */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.hero-content { max-width: 580px; }

.hero-eyebrow { font-family: var(--hero-font-mono); }

.hero-headline {
  font-size: clamp(38px, 5.2vw, 67px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 24px;
}
.hero .lead {
  font-family: var(--font);
  font-size: 18px;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font); }

@media (max-width: 900px) {
  .hero-inner { justify-content: flex-start; }
  .hero-fade { background: rgba(5, 8, 13, 0.72); }
}

@media (max-width: 768px) {
  .hero { padding: 128px 0 64px; min-height: unset; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(77,141,255,0.35); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; color: var(--text-primary); margin: 0 0 12px; font-weight: 700; }
.card p { font-size: 15px; color: var(--text-muted); margin: 0 0 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Split (solutions) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.split-copy h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.split-copy > p { font-size: 17px; color: var(--text-muted); margin: 0 0 32px; }

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}
.check-list .check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--green-dim);
  border: 1px solid rgba(0,217,156,0.3);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.visual-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(77,141,255,0.14), rgba(0,217,156,0.08));
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

/* Add class="has-media" to .visual-panel or .showcase-placeholder once you
   drop a real <img> inside — it strips the placeholder padding/dashing so
   the image fills the whole card edge-to-edge. Pair with class="media-fill"
   on the <img> itself. See CONTENT-GUIDE.md. */
.visual-panel.has-media,
.showcase-placeholder.has-media {
  padding: 0;
  border-style: solid;
  border-color: var(--card-border);
  background: var(--bg-elevated);
  overflow: hidden;
}
.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.visual-panel .bar { height: 12px; border-radius: 6px; background: rgba(238,241,245,0.12); }
.visual-panel .bar.w60 { width: 60%; }
.visual-panel .bar.w80 { width: 80%; }
.visual-panel .bar.w40 { width: 40%; }
.visual-panel .chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(5,8,13,0.4);
  color: var(--blue-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step .step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(77,141,255,0.3);
  background: var(--blue-dim);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 20px;
}
.process-step h3 { font-size: 18px; color: var(--text-primary); margin: 0 0 10px; font-weight: 700; }
.process-step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Showcase / portfolio placeholders ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .showcase-grid { grid-template-columns: 1fr; } }

.showcase-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(154,165,180,0.3);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.showcase-placeholder .plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed rgba(154,165,180,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
}

/* ---------- Contact / CTA ---------- */
.cta-section { background: var(--bg); }
.contact-panel {
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(77,141,255,0.08), rgba(5,8,13,0));
  padding: 64px 56px;
  text-align: center;
}
.contact-panel .section-head { margin: 0 auto 40px; text-align: center; }
.contact-panel .section-head p { margin: 0 auto; }

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--text-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: left;
}
.form-card .field { margin-bottom: 20px; }
.form-card label { display: block; font-size: 13px; font-weight: 700; color: #1a2230; margin-bottom: 8px; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #d7dce3;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: #1a2230;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-card .btn-primary { width: 100%; margin-top: 8px; }
.form-note { font-size: 12.5px; color: var(--text-dim); max-width: 640px; margin: 0 auto 32px; line-height: 1.6; }

@media (max-width: 640px) {
  .contact-panel { padding: 40px 20px; }
  .form-card { padding: 24px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid rgba(154,165,180,0.08);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-logo img { height: 30px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid rgba(154,165,180,0.08);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
