:root {
  --font-sans: "Source Sans Pro", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --text: #ffffff;
  --muted: rgba(255,255,255,0.82);
  --bg: #0b0b0c;
  --primary: #ffffff;
  --accent: #ef9f85;
  --btn-bg: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

.page-fade { position: fixed; inset: 0; background: #ffffff; opacity: 1; pointer-events: none; transition: opacity .8s ease; z-index: 1200; }
body.ready .page-fade { opacity: 0; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(12px, env(safe-area-inset-top));
  background-color: rgba(0,0,0,0.02);
  backdrop-filter: saturate(140%) blur(10px);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}
body.ready .nav { transform: translateY(0); opacity: 1; }
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: .02em; font-size: 0.95rem; display: inline-flex; align-items: center; }
.nav__logo { height: clamp(26px, 3vw, 32px); width: auto; display: block; }
.nav__brand .by { opacity: .85; font-weight: 600; margin-left: 6px; }
.nav__links { display: flex; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 3vw, 24px); }
.nav__item { opacity: 0; transform: translateY(18px); transition: transform .35s ease, opacity .35s ease; }
.nav__item.enter { opacity: 1; transform: translateY(0); }
.nav__link { color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem; opacity: 0.9; }
.nav__link:hover { opacity: 1; }
.nav__toggle { display: none; border: 0; background: var(--btn-bg); color: var(--text); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.btn--signup { background: #ffffff; color: #0e0f11; padding: 10px 18px; border-radius: 4px; font-weight: 700; letter-spacing: .02em; }

.nav__dropdown { position: relative; }
.nav__dropbtn { background: var(--btn-bg); color: var(--text); border-radius: 4px; border: 0; padding: 10px 14px; font-weight: 700; letter-spacing: .02em; }
.nav__submenu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px; background: #ffffff; color: #0e0f11; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity .18s ease, transform .18s ease; visibility: hidden; pointer-events: none; }
.nav__submenu::before { content: ""; position: absolute; top: -8px; right: 18px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #ffffff; }
.nav__submenu li a { display: block; padding: 10px 14px; color: #0e0f11; text-decoration: none; font-weight: 600; }
.nav__submenu li a:hover { background: #eef3f7; }
.nav__dropdown.open .nav__submenu { opacity: 1; transform: translateY(0) scale(1); visibility: visible; pointer-events: auto; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background:
    linear-gradient(180deg, rgba(6,7,8,0.35) 0%, rgba(6,7,8,0.45) 40%, rgba(6,7,8,0.6) 100%),
    url("aktivabc.jpg") center center / cover no-repeat fixed;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,8,0.25) 0%, rgba(6,7,8,0.35) 40%, rgba(6,7,8,0.5) 100%),
    url("aktivabc.jpg") center center / cover no-repeat fixed;
  filter: blur(2px);
  z-index: -1;
}
.hero__content { max-width: 900px; padding-top: 72px; margin: 0 auto; text-align: center; }
.hero__panel { padding: clamp(20px, 4vw, 36px); max-width: 560px; margin: 0 auto; }
.hero__title { margin: 0 0 12px; font-size: clamp(2.4rem, 6.5vw, 3.4rem); line-height: 1.1; font-weight: 600; letter-spacing: .01em; }
.hero__subtitle { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.1rem); font-weight: 400; }
.hero__actions { display: flex; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 4px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.btn--primary { background: #ffffff; color: #2b2f33; box-shadow: 0 2px 0 rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.12); }
.btn--light { box-shadow: 0 2px 0 rgba(0,0,0,0.2); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.8); }

.feature { background: #eef1f4; padding: 80px 20px; }
.feature__card { max-width: 980px; margin: -80px auto 0; background: #ffffff; color: #111; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: clamp(28px, 4vw, 44px); }
.feature__title { margin: 0 0 12px; text-align: center; font-weight: 600; color: #7a8896; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.feature__divider { height: 1px; background: #e0e6eb; margin: 18px auto; max-width: 420px; }
.feature__copy { margin: 0 auto; max-width: 680px; text-align: center; color: #55606b; }

.section { padding: 72px 20px; background: #0e0f11; }
.container { max-width: 1000px; margin: 0 auto; }
.section h2 { font-size: clamp(1.25rem, 3.2vw, 2rem); margin: 0 0 12px; }
.section p { color: var(--muted); font-size: 1rem; }

.contacts-hero { min-height: 40vh; display: flex; align-items: center; justify-content: center; padding: 0 20px; background:
  linear-gradient(180deg, rgba(6,7,8,0.35) 0%, rgba(6,7,8,0.45) 40%, rgba(6,7,8,0.6) 100%),
  url("Untitled Project (1).jpg") center center / cover no-repeat fixed; }
.contacts-title { margin: 0 0 8px; font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); text-align: center; }
.contacts-subtitle { margin: 0; color: var(--muted); text-align: center; }
.contacts-section { background: #eef1f4; padding: 80px 20px; }
.contacts { list-style: none; margin: -40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 1000px; }
.contact { background: #ffffff; color: #111; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 18px; display: grid; gap: 6px; }
.contact__name { font-weight: 600; }
.contact__email { color: #2b2f33; text-decoration: none; }
.contact__email:hover { text-decoration: underline; }
.contact__role { color: #7a8896; }

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    padding: 16px;
    background: rgba(12,12,14,0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    flex-direction: column;
    gap: 14px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__toggle { display: inline-flex; }
  .nav__links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__dropdown { align-self: stretch; }
  .nav__submenu { position: relative; top: 0; right: 0; box-shadow: none; border-radius: 12px; display: none; background: rgba(255,255,255,0.95); }
  .nav__dropdown.open .nav__submenu { display: block; }
}

@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}