:root {
  --color-bg: #020617;
  --color-surface: #020617;
  --color-card: #020617;
  --color-elevated: #020617;
  --color-primary: #10b981;
  --color-primary-soft: rgba(16, 185, 129, 0.12);
  --color-primary-strong: #059669;
  --color-accent: #38bdf8;
  --color-border: rgba(148, 163, 184, 0.35);
  --color-muted: #9ca3af;
  --color-text: #e5e7eb;
  --color-heading: #f9fafb;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #000 100%);
  color: var(--color-text);
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 20% 20%, var(--color-accent), var(--color-primary-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--color-heading);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
  color: var(--color-heading);
  border-color: rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.85));
  transform: translateY(-1px);
}

.main-nav a.active {
  color: var(--color-heading);
  border-color: rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.26), rgba(15, 23, 42, 0.95));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* Buttons */
.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #a7f3d0, var(--color-primary-strong));
  color: #022c22;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.75);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--color-heading);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.9);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-muted);
}

.btn-ghost:hover {
  color: var(--color-heading);
  background: rgba(15, 23, 42, 0.85);
}

.btn-primary.full-width {
  width: 100%;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.9));
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Hero */
.hero {
  padding: 3.2rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0.6rem 0 1rem;
  color: var(--color-heading);
}

.hero-subtitle {
  color: var(--color-muted);
  max-width: 32rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 1.1rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  font-size: 0.82rem;
  color: var(--color-muted);
}

.hero-highlight .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}

/* Hero right */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  width: max-content;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.stat-number {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-heading);
}

.hero-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

.hero-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: var(--color-heading);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Typography helpers */
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent);
}

.page-hero {
  padding: 3rem 0 1.2rem;
}

.page-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-heading);
}

.page-intro {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Grids and cards */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.card h2,
.card h3 {
  margin-top: 0;
  color: var(--color-heading);
}

.card p {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.service-card h2 {
  font-size: 1.3rem;
}

.project-card {
  position: relative;
}

.project-card .tag {
  margin-bottom: 0.6rem;
}

/* Icon list */
.icon-list {
  list-style: none;
  padding-left: 0;
  margin: 0.8rem 0 0;
}

.icon-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.icon-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.icon-list.compact li {
  margin-bottom: 0.2rem;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  background: rgba(15, 23, 42, 0.98);
}

/* Checklists / steps */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}

.checklist li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--color-muted);
  font-size: 0.94rem;
  margin-bottom: 0.4rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--color-primary);
}

.steps-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Note cards / CTA */
.note-card {
  margin-top: 2.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* CTA banner */
.cta-banner {
  padding: 1.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.3), rgba(15, 23, 42, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner h2 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

.cta-banner p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Contact page */
.contact-layout {
  align-items: flex-start;
}

.contact-form {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

.field-group {
  margin-bottom: 0.9rem;
}

.field-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-heading);
  font-size: 0.9rem;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.6);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.7rem;
}

/* Footer */
.site-footer {
  padding: 2.3rem 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at bottom, #020617, #000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.88rem;
}

.footer-grid h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--color-heading);
}

.footer-grid p {
  margin: 0;
  color: var(--color-muted);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.3rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-heading);
}

.footer-bottom {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(31, 41, 55, 1);
  padding-top: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Misc links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: none;
}

.text-link::after {
  content: "↗";
  font-size: 0.78rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .footer-grid,
  .cards-grid.two,
  .cards-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-banner {
    border-radius: var(--radius-xl);
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .header-inner {
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset: 100% 1rem auto;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.65);
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    width: 100%;
    text-align: left;
  }
}
