/* =========================================================
   Solutioneer — Design tokens
   ========================================================= */
:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #111827;
  --surface-2: #161f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #eef1f7;
  --text-muted: #9aa4b8;
  --text-faint: #6b7488;

  --accent: #4f7cff;
  --accent-2: #a855f7;
  --accent-teal: #22d3c4;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 0 1px rgba(79,124,255,0.15), 0 20px 60px -20px rgba(79,124,255,0.35);
  --container: 1180px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79,124,255,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(79,124,255,0.65); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(79,124,255,0.08); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Section shared
   ========================================================= */
section { position: relative; z-index: 2; padding: 120px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-top: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79,124,255,0.1);
  border: 1px solid rgba(79,124,255,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 8px var(--accent-teal);
}
.eyebrow-alt { color: var(--accent-2); background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.25); }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.edit-hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--accent-teal);
  font-family: var(--font-mono);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-1 { width: 420px; height: 420px; background: var(--accent); top: -100px; right: -60px; }
.orb-2 { width: 380px; height: 380px; background: var(--accent-2); bottom: -140px; left: -80px; opacity: 0.25; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 40%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-highlights {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.highlight-item { display: flex; flex-direction: column; gap: 4px; }
.highlight-item strong { font-size: 0.98rem; }
.highlight-item span { font-size: 0.85rem; color: var(--text-faint); }

/* Hero visual */
.hero-visual { position: relative; }
.code-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code-card-header span[class^="dot-"] { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.code-card-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.code-card-body {
  padding: 24px 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #cbd5e1;
  overflow-x: auto;
}
.c-kw { color: #c792ea; }
.c-var { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-fn { color: #82aaff; }
.c-obj { color: #ffcb6b; }
.c-comment { color: var(--text-faint); font-style: italic; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
  font-size: 0.82rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 0.85rem; }
.float-card small { color: var(--text-faint); font-size: 0.75rem; }
.float-icon { font-size: 1.2rem; }
.float-card-1 { top: -18px; right: -10px; animation-delay: 0.3s; }
.float-card-2 { bottom: -18px; left: -20px; animation-delay: 1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,124,255,0.4);
  background: var(--surface-2);
}
.service-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(79,124,255,0.1);
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card > p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: 0.85rem;
  color: var(--text-faint);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio { background: var(--bg-alt); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.4); }
.portfolio-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(79,124,255,0.18), rgba(168,85,247,0.18));
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.portfolio-thumb::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.14);
}
.portfolio-body { padding: 24px 24px 26px; }
.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portfolio-body h3 { font-size: 1.1rem; margin: 10px 0; }
.portfolio-body > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.portfolio-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.portfolio-stack span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 4px 9px;
  border-radius: 999px;
}
.portfolio-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.portfolio-link:hover { text-decoration: underline; }
.portfolio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
}
.portfolio-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

/* =========================================================
   Process
   ========================================================= */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  counter-reset: step;
}
.process-step { position: relative; padding-left: 4px; }
.process-step:not(:last-child)::after {
  content: "";
  display: none;
}
.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-alt); }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Sectors
   ========================================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.sector-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--surface);
}
.sector-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.sector-card p { color: var(--text-muted); font-size: 0.9rem; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  padding: 90px 0;
}
.cta-banner-inner {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(79,124,255,0.16), transparent 60%);
}
.cta-banner-inner h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; position: relative; }
.cta-banner-inner p { color: var(--text-muted); margin-bottom: 30px; position: relative; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner-inner .btn { position: relative; }

/* =========================================================
   Contact
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list a { font-size: 1.02rem; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-row input, .form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { font-size: 0.85rem; color: var(--accent-teal); text-align: center; min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.footer-col a { font-size: 0.92rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 80px; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto 20px; }
  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  section { padding: 80px 0; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .float-card { display: none; }
}
