:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-muted: #0f172a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.08);
  --accent-strong: #2563eb;
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.75);
  --shadow-subtle: 0 18px 30px rgba(15, 23, 42, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, var(--bg) 40%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  color: var(--text-soft);
}

h1, h2, h3, h4 {
  margin: 0 0 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 3.1vw, 3.1rem);
}

h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 0%, #4f46e5, #0ea5e9 45%, #22c55e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9fafb;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.6);
  font-size: 1rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.2rem 0;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.btn-nav {
  background: var(--accent);
  color: #f9fafb;
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.6);
  padding-inline: 1.1rem;
}

.btn-nav:hover {
  background: var(--accent-strong);
}

/* feedback messages */
.form-success {
  color: #4ade80;
  margin-bottom: 1rem;
}

.form-error {
  color: #f87171;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #f9fafb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #2563eb);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
}

.btn-light {
  background: #f9fafb;
  color: #0f172a;
}

.btn-light:hover {
  background: #e5e7eb;
}

.full-width {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.8rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero-meta {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.1rem;
}

.meta-value {
  font-size: 0.88rem;
  color: var(--text);
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  border-radius: 24px;
  padding: 0.9rem;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 60%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
}

.hero-img {
  border-radius: 18px;
  object-fit: cover;
  height: 320px;
  width: 100%;
}

.hero-stat {
  position: absolute;
  left: 1.6rem;
  bottom: 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.hero-stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-stat-value {
  font-size: 0.76rem;
  color: var(--text);
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-muted {
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.18) 0, rgba(37, 99, 235, 0.02) 35%, transparent 60%), #020617;
}

.section-accent {
  background: linear-gradient(135deg, #1d293b, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.section-heading {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.2rem;
}

.section-heading p {
  margin-top: 0.35rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.4rem;
  align-items: flex-start;
}

#about-preview h2 {
  margin-bottom: 0.75rem;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #93c5fd;
  margin-top: 0.6rem;
}

.link-inline:hover {
  color: #bfdbfe;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.pill-card {
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.pill-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.pill-card p {
  font-size: 0.85rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.service-card h3 {
  font-size: 1.02rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #22c55e);
}

.centered-cta {
  text-align: center;
  margin-top: 2.2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.step {
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem 1.1rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.38);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
  background: var(--accent-soft);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.6);
}

.step h3 {
  font-size: 0.95rem;
}

.step p {
  font-size: 0.85rem;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.cta-note {
  font-size: 0.8rem;
  color: #cbd5f5;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.6rem 0 2.6rem;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 2.6rem;
  align-items: center;
}

.page-hero-subtitle {
  font-size: 0.98rem;
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.45rem;
}

.page-hero-media {
  justify-self: flex-end;
}

.page-hero-img {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  height: 280px;
  width: 100%;
  object-fit: cover;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.6rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: #4ade80;
}

.checklist span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.stack-tags span {
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Services page */
.tech-cards .service-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.contact-card {
  border-radius: 24px;
  padding: 1.8rem 1.7rem 1.7rem;
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
  background: rgba(15, 23, 42, 1);
}

.form-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.contact-info {
  padding-top: 0.4rem;
}

.contact-text {
  font-size: 0.9rem;
}

.contact-detail-group {
  margin-top: 1.15rem;
}

.contact-detail-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.contact-detail-group p {
  font-size: 0.9rem;
}

.contact-detail-group a {
  color: #93c5fd;
}

.contact-detail-group a:hover {
  color: #bfdbfe;
}

/* Footer */
.site-footer {
  padding: 2.4rem 0 2.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.32);
  margin-top: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 0.4rem;
}

.footer-text {
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-credit {
  text-align: right;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .section-grid,
  .page-hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-media {
    order: -1;
    justify-content: flex-start;
  }

  .hero-img {
    height: 260px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-media {
    justify-self: stretch;
  }

  .page-hero-img {
    height: 240px;
  }

  .cta-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.75rem;
  }

  .main-nav {
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    padding: 0.12rem 0.18rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
  }

  .nav-link {
    padding-inline: 0.7rem;
  }

  .btn-nav {
    padding-inline: 0.85rem;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .pill-grid,
  .cards-grid,
  .steps-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    border-radius: 18px;
  }

  .site-footer {
    padding-top: 2rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .container {
    padding-inline: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-img,
  .page-hero-img {
    height: 220px;
  }
}

