:root {
  --bg-main: #050816;
  --bg-alt: #0b1020;
  --bg-elevated: #111827;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-strong: #60a5fa;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --error: #f97373;
  --focus-ring: rgba(59, 130, 246, 0.7);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.4);

  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #1e293b 0, #020617 45%),
    radial-gradient(circle at bottom right, #0f172a 0, #020617 55%);
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top right, #111827 0, #020617 60%);
}

.section-accent {
  padding: 4.5rem 0;
  background: radial-gradient(circle at top left, #1d283a 0, #020617 65%);
}

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

.section-header.align-left {
  text-align: left;
}

.section-header h2 {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.1rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34rem;
}

.section-header.align-left p {
  max-width: 30rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.9));
  border-bottom: 1px solid rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #93c5fd 0, #1d4ed8 55%, #020617 100%);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), var(--shadow-subtle);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.nav {
  display: flex;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: 0.35rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6, #22d3ee);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(55, 65, 81, 0.9);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 0.25rem;
}

.hero {
  padding: 4.5rem 0 4.75rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.18), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 2.9rem);
  margin: 0 0 0.9rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-aside {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top, #111827 0, #020617 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.035), transparent 60%),
    radial-gradient(circle at 70% 120%, rgba(56, 189, 248, 0.08), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-card li::before {
  content: "●";
  color: var(--accent-strong);
  margin-right: 0.35rem;
  font-size: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.11s ease-out, box-shadow 0.11s ease-out,
    background-color 0.11s ease-out, border-color 0.11s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #22c1c3);
  color: #f9fafb;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.6);
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  background-color: rgba(15, 23, 42, 0.9);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px var(--focus-ring);
}

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

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tech-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.75rem;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.45rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-subtle);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.card li + li {
  margin-top: 0.25rem;
}

.about-layout {
  display: grid;
  gap: 2.5rem;
}

.about-layout p {
  color: var(--text-muted);
  max-width: 40rem;
}

.about-aside {
  display: grid;
  gap: 0.9rem;
  align-content: flex-start;
}

.stat-block {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 0.9rem 1rem;
}

.stat-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.stat-value {
  margin: 0.2rem 0 0;
  font-weight: 500;
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.process-steps li {
  position: relative;
  padding: 1.2rem 1.4rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.95);
}

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

.process-steps p {
  margin: 0;
  color: var(--text-muted);
}

.tech-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem 1.7rem;
  border: 1px solid rgba(37, 99, 235, 0.55);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.field textarea {
  resize: vertical;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px var(--focus-ring);
}

.field-error {
  margin: 0.25rem 0 0;
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-status--success {
  color: #bbf7d0;
}

.form-status--error {
  color: var(--error);
}

.contact-note {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-aside {
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.contact-card {
  border-radius: var(--radius-md);
  padding: 1.4rem 1.45rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(31, 41, 55, 0.95);
  color: var(--text-muted);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #e5e7eb;
}

.contact-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-card li + li {
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.5rem 0 1.8rem;
  background: radial-gradient(circle at top, #020617 0, #000 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-secondary {
  color: #6b7280;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.6rem 0;
  }

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

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.17s ease-out, opacity 0.17s ease-out,
      visibility 0.17s ease-out;
  }

  .nav.open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.4rem 1.5rem 0.9rem;
    gap: 0.15rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

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

  .hero-aside {
    justify-content: flex-start;
  }

  .hero-card {
    margin-top: 0.75rem;
  }

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

  .section {
    padding: 3.25rem 0;
  }

  .section-alt,
  .section-accent {
    padding: 3.25rem 0;
  }

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

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

  .contact-form {
    padding: 1.5rem 1.2rem 1.5rem;
  }
}

@media (min-width: 769px) {
  .about-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


