/* --- Variables --- */
:root {
  --bg-dark: #0f0e14;
  --bg-section: #16141d;
  --bg-card: #1c1924;
  --text: #e8e6ed;
  --text-muted: #9d98a8;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1200px;
  --space: 1.5rem;
  --radius: 8px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--outline, .btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover, .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}
.btn--section-add {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  gap: 0.5rem;
}
.btn--section-add:hover { background: var(--accent-hover); }
.btn--section-add__icon { font-size: 1.25rem; line-height: 1; }

/* --- Layout helpers --- */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2.5rem;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.navbar__nav {
  display: flex;
  gap: 2rem;
}
.navbar__nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.navbar__nav a:hover { color: #fff; }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: #fff;
  padding: 4px;
  cursor: pointer;
}
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .navbar__nav,
  .navbar__actions { display: none; }
  .navbar__toggle { display: flex; }
  .navbar--open .navbar__nav,
  .navbar--open .navbar__actions {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .navbar--open .navbar__actions { flex-direction: row; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--space);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-section)
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1920&q=80') center/cover;
  filter: brightness(0.35) blur(1px);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: #fff;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.65;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Features (What we do) --- */
.features {
  padding: 5rem 0;
  background: var(--bg-dark);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(124, 58, 237, 0.4); }
.feature-card__image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-section);
}
.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.25rem 1.25rem 0.5rem;
  color: #fff;
}
.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 1.25rem 1rem;
  line-height: 1.6;
}
.feature-card__link {
  display: inline-block;
  margin: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.feature-card__link:hover { color: var(--accent-hover); }

.section-add {
  text-align: center;
  margin-top: 3rem;
}
.section-add .btn--section-add { margin: 0 auto; }

@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* --- Benefits (Why enterprises choose us) --- */
.benefits {
  padding: 5rem 0;
  background: var(--bg-section);
}
.benefits__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.benefits__content .section-title { margin-bottom: 2rem; }
.benefits__blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.benefit-block__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}
.benefit-block__text {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.benefit-block__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.benefit-block__link:hover { color: var(--accent-hover); }

.benefits__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.benefits__gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}
.benefits__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benefits__gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

@media (max-width: 768px) {
  .benefits__inner { grid-template-columns: 1fr; }
  .benefits__gallery { order: -1; }
}

/* --- CTA --- */
.cta {
  padding: 5rem 0;
  background: var(--bg-dark);
  text-align: center;
}
.cta__inner { padding: 0 var(--space); }
.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
}
.cta__subtitle {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space); }
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.footer__col a, .footer__contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.footer__col a:hover { color: #fff; }
.footer__contact {
  max-width: 200px;
}
.footer__contact .footer__col-title { margin-bottom: 0.5rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__legal a:hover { color: #fff; }
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__social a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
