:root {
  color-scheme: dark;
  --black: #050508;
  --panel: #101017;
  --panel-2: #171623;
  --text: #f7f3ff;
  --muted: #bbb4cb;
  --red: #f40f45;
  --purple: #8b35ff;
  --purple-dark: #45108a;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 5%, rgba(244, 15, 69, 0.26), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(139, 53, 255, 0.24), transparent 30rem),
    linear-gradient(180deg, #050508 0%, #0b0910 44%, #050508 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 99;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--red);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  box-shadow: 0 0 28px rgba(244, 15, 69, 0.35);
  overflow: hidden;
  padding: 2px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

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

.nav-links a {
  border-radius: 8px;
  padding: 0.58rem 0.85rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.page-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
  scroll-margin-top: 82px;
}

.hero {
  padding-top: 5rem;
}

.hero-grid,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #ff7b9b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-lede,
.split-section p,
.contact-section p,
.privacy-section p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1.1rem;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: white;
  box-shadow: 0 16px 40px rgba(244, 15, 69, 0.24);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 500px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244, 15, 69, 0.16), rgba(139, 53, 255, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 72px),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.signal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: center;
  width: min(100%, 410px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(5, 5, 8, 0.74);
  backdrop-filter: blur(12px);
}

.signal-card:nth-child(2) {
  margin-left: auto;
}

.signal-card.active {
  border-color: rgba(244, 15, 69, 0.7);
  box-shadow: 0 0 35px rgba(244, 15, 69, 0.18);
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.icon,
.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ff9ab1;
  font-weight: 900;
}

.automation-ring {
  position: relative;
  z-index: 1;
  display: grid;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(5, 5, 8, 0.98) 0 42%, transparent 43%),
    conic-gradient(from 120deg, var(--red), var(--purple), var(--red));
  font-weight: 900;
}

.service-strip,
.service-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-strip {
  margin-top: 1.2rem;
}

.service-strip article,
.service-card,
.about-panel,
.post-form,
.contact-form,
.privacy-grid article,
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 23, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.service-strip article {
  padding: 1.15rem;
}

.service-strip span,
.post-category {
  color: #ff7b9b;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-strip h2 {
  margin: 0.55rem 0 0.3rem;
  font-size: 1.08rem;
  line-height: 1.2;
}

.service-strip p,
.service-card p,
.post-card p {
  margin: 0;
  color: var(--muted);
}

.about-panel {
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(139, 53, 255, 0.16), rgba(244, 15, 69, 0.08)),
    rgba(16, 16, 23, 0.86);
}

.about-panel ul {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  min-height: 250px;
  padding: 1.25rem;
}

.service-card.wide {
  grid-column: span 2;
}

.service-icon {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(244, 15, 69, 0.22), rgba(139, 53, 255, 0.24));
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.blog-layout.public-view {
  grid-template-columns: 1fr;
}

[hidden] {
  display: none !important;
}

.post-form,
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

select {
  color: white;
}

select option {
  background: #101017;
  color: white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(244, 15, 69, 0.75);
  box-shadow: 0 0 0 3px rgba(244, 15, 69, 0.14);
}

textarea {
  resize: vertical;
}

.posts {
  display: grid;
  gap: 1rem;
}

.post-card {
  padding: 1.25rem;
}

.post-card time {
  display: block;
  margin-top: 1rem;
  color: #8c849b;
  font-size: 0.82rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffb4c5;
  font-weight: 800;
}

.privacy-grid article {
  padding: 1.25rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #ff9ab1;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-section,
  .contact-section,
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .service-grid,
  .service-strip,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    background: rgba(5, 5, 8, 0.97);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 0.9rem 0.6rem;
  }

  .page-section {
    width: min(100% - 1.1rem, 1180px);
    padding: 4.3rem 0;
    scroll-margin-top: 74px;
  }

  .hero {
    padding-top: 3.6rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-strip,
  .service-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .signal-card,
  .signal-card:nth-child(2) {
    margin-left: 0;
  }

  .automation-ring {
    width: 140px;
    height: 140px;
  }

  .footer {
    flex-direction: column;
  }
}
