/* =============== BASE =============== */

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

:root {
  --bg-main: #050816;
  --bg-dark: #070b1c;
  --bg-card: #0b1022;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --accent-strong: #7c3aed;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition: 200ms ease;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #111827 0, var(--bg-main) 55%);
  color: var(--text-main);
}

/* =============== LAYOUT HELPERS =============== */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-dark {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

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

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.8rem;
}

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

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

/* Support single-column grids */
.grid-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* =============== HEADER / NAV =============== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.95), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  /* Keep the default logo mark size but allow the inner image to control its own size */
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--accent-strong), #0ea5e9);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* Ensure the logo image scales properly and aligns with the text */
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Increase the header logo mark size so the logo aligns vertically with the text */
.header .logo .logo-mark {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), #22d3ee);
  border-radius: 999px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.26rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

/* =============== BUTTONS =============== */

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background var(--transition), color var(--transition), transform var(--transition),
    box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #06b6d4);
  color: white;
  box-shadow: 0 18px 48px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(79, 70, 229, 0.7);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

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

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

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
}

.full-width {
  width: 100%;
}

.nav-cta {
  font-size: 0.85rem;
  padding-block: 0.45rem;
}

/* =============== HERO =============== */

.hero {
  padding: 4.5rem 0 5rem;
}

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

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent-strong), #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  width: fit-content;
}

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

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero card */

.hero-card {
  max-width: 370px;
  margin-left: auto;
}

.hero-card-inner {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), #020617 50%);
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(circle at 100% 10%, rgba(129, 140, 248, 0.18), transparent 62%);
  opacity: 0.9;
  z-index: -1;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.hero-card-label {
  font-size: 0.8rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.hero-stat {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.hero-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-metric-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metric-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  width: 60%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), #22d3ee);
}

.metric-fill-alt {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.metric-value {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.hero-bottom-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-avatar-stack {
  display: flex;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.7);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: -8px;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.hero-bottom-title {
  font-size: 0.83rem;
  margin-bottom: 0.1rem;
}

.hero-bottom-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============== CARDS =============== */

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), var(--bg-card));
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
}

/* Services */

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

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

.service-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #e5e7eb;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

/* Process */

.process-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.4rem 1.2rem 1.25rem;
}

.process-step h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

/* Pricing */

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  position: relative;
}

.pricing-name {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.pricing-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.pricing-price {
  font-size: 1.7rem;
  margin: 0 0 0.7rem;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.pricing-list li {
  margin-bottom: 0.35rem;
}

.pricing-card-featured {
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 26px 60px rgba(79, 70, 229, 0.8);
  transform: translateY(-5px);
}

.pricing-card-featured .pricing-price {
  background: linear-gradient(90deg, var(--accent-strong), #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.badge-popular {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(45, 212, 191, 0.5);
}

/* Case studies */

.case-card h3 {
  margin: 0 0 0.2rem;
}

.case-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.case-list {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.case-list li {
  margin-bottom: 0.32rem;
}

.case-result {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.case-result span {
  color: var(--accent-strong);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-info p {
  color: var(--text-muted);
  max-width: 480px;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-label {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.contact-points ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.88rem;
  color: #e5e7eb;
}

/* Form */

.contact-form {
  padding: 1.6rem 1.4rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), #020617);
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.85rem;
  color: #e5e7eb;
}

input,
select,
textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

textarea {
  resize: vertical;
}

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

/* Extras checkboxes styling */
.extras-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.extras-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* =============== FOOTER =============== */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 2.5rem 0 1.8rem;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo .logo-mark {
  width: 28px;
  height: 28px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.86rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

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

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============== RESPONSIVE =============== */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin: 0 auto;
    max-width: 420px;
  }

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

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

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    inset-inline: 1.25rem;
    top: 60px;
    background: rgba(15, 23, 42, 0.97);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.85rem 1rem;
    flex-direction: column;
    gap: 0.55rem;
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-links.nav-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .grid-2,
  .grid-3,
  .process-grid,
  .contact-grid,
  .contact-points,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-card-featured {
    transform: translateY(0);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================= LANGUAGE SWITCH BUTTON ================= */

.lang-switch {
  position: fixed;
  bottom: 22px;
  right: 22px;
  padding: 0.55rem 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), #020617);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #f9fafb;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 9999;
}

.lang-switch:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 38px rgba(0,0,0,0.65);
}