:root {
  --bg-body: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f1f5f9;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-strong: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-subtle: rgba(100, 116, 139, 0.25);
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e2e8f0 0, #f1f5f9 40%, #f8fafc 100%);
  color: var(--text-main);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

body.is-ready {
  opacity: 1;
  transform: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-image {
  display: block;
  height: 42px;
  width: auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 34% 66% 54% 46% / 40% 30% 70% 60%;
  background: radial-gradient(circle at 30% 0, #facc15 0, #f97316 35%, #0ea5e9 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #020617;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text-main);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.1rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #ea580c, #0ea5e9);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--text-main);
}

.site-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.4);
  width: 40px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--text-main);
  border-radius: 99px;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-text h1 span {
  background: linear-gradient(to right, #0ea5e9, #7c3aed, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(100, 116, 139, 0.35);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(14, 165, 233, 0.08);
}

.hero-panel {
  position: relative;
}

.metric-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, transparent 50%), var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(100, 116, 139, 0.2);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(14, 165, 233, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.metric-card:hover::after {
  opacity: 1;
}

.metric-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.metric-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.metric {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(100, 116, 139, 0.25);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

.metric:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections and layout */

.section {
  padding: 3rem 0;
}

.section-light {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(100, 116, 139, 0.15);
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.section-dark {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, #f1f5f9 50%, #f8fafc 100%);
  border-top: 1px solid rgba(100, 116, 139, 0.1);
}

.section-title {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.section-lead {
  max-width: 34rem;
  color: var(--text-muted);
  margin: 0 0 1.6rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.card {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.3rem;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

/* Interactive cards (About, Insight) - exclude service cards which have their own hover */
.grid .card:not(.service-card),
.card-grid .card {
  position: relative;
  overflow: hidden;
}

.grid .card:not(.service-card):hover,
.card-grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
}

/* Left accent for About page "How We Work" cards */
.grid .card:not(.service-card):not(.article-card)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #7c3aed);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.grid .card:not(.service-card):not(.article-card):hover::after {
  opacity: 1;
}

.grid .card:not(.service-card)::before,
.card-grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.grid .card:not(.service-card):hover::before,
.card-grid .card:hover::before {
  opacity: 1;
}

/* Accent bar for article cards */
.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.article-card:hover::after {
  opacity: 1;
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-card-header h3 {
  margin: 0;
  flex: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}

.service-icon svg,
.service-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.service-icon-fabric {
  background: rgba(0, 120, 212, 0.12);
  color: #0078d4;
}

.service-icon-powerbi {
  background: rgba(242, 200, 17, 0.2);
  color: #c49b00;
}

.service-icon-consulting {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.service-card:hover::before {
  opacity: 1;
}

.highlight-panel {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, #ffffff 50%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}

.highlight-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.5);
}

.highlight-panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.highlight-panel p {
  margin: 0;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 2px solid #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: background 0.16s ease-out, color 0.16s ease-out, border-color 0.16s ease-out, box-shadow 0.16s ease-out, transform 0.08s ease-out;
}

.btn.primary {
  background: linear-gradient(to right, #0ea5e9, #7c3aed);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

.btn.ghost {
  border-color: rgba(100, 116, 139, 0.5);
  background: rgba(241, 245, 249, 0.9);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(226, 232, 240, 0.95);
}

.btn.full-width {
  width: 100%;
}

/* Page hero */

.page-hero {
  padding: 3rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Service details & service cards */

.service-detail {
  margin-bottom: 2.2rem;
}

.service-detail h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.service-detail p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.services-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.services-cards .card {
  flex: 0 0 calc((100% - 3rem) / 3);
  max-width: calc((100% - 3rem) / 3);
  display: flex;
  flex-direction: column;
}

.services-cards .card .checklist {
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Insight cards */

.card-grid {
  align-items: stretch;
}

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card h2 {
  font-size: 1.1rem;
}

.article-card p {
  font-size: 0.95rem;
}

.article-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
}

.section-cta {
  border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Contact */

.contact-details {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.contact-details p {
  margin: 0.15rem 0;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(100, 116, 139, 0.25);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: #f8fafc;
  color: var(--text-main);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.required {
  color: var(--danger);
  margin-left: 0.1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(100, 116, 139, 0.2);
  background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2rem;
  padding: 2rem 0 1.3rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  max-width: 16rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.footer-column h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-column li {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(100, 116, 139, 0.2);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 1rem;
  gap: 1rem;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cookie-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(100, 116, 139, 0.4);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-btn:hover {
  border-color: var(--accent-strong);
}

/* Scroll reveal */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-cards .card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .logo-image {
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.25rem 0.9rem;
    gap: 0.4rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-panel {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-cards .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

