:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #172038;
  --muted: #67718b;
  --line: rgba(23, 32, 56, 0.12);
  --gradient-1: #7f5af0;
  --gradient-2: #2cb67d;
  --gradient-3: #ff8ba7;
  --gradient-4: #6ea8fe;
  --shadow: 0 18px 50px rgba(48, 56, 90, 0.12);
  --radius: 24px;
  --container: 1180px;
  --narrow: 780px;
  --transition: 0.35s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f7fb 0%, #f0f4ff 100%);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: var(--narrow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list > li {
  position: relative;
}

.nav-list a,
.dropdown-toggle {
  font-size: 0.94rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-list a:hover,
.nav-list a.active,
.dropdown-toggle:hover {
  color: var(--text);
}

.arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: var(--transition);
}

.has-dropdown:hover .arrow,
.has-dropdown.open .arrow {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 220px;
  padding: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: linear-gradient(135deg, rgba(127,90,240,0.10), rgba(44,182,125,0.10));
  color: var(--text);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 60px;
}

.hero-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-gradient-1 {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-3));
  top: 20px;
  left: -60px;
}

.hero-gradient-2 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--gradient-2), var(--gradient-4));
  right: -80px;
  top: 160px;
}

.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-top {
  max-width: 760px;
  margin-bottom: 40px;
}

.eyebrow,
.aside-tag,
.note-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gradient-1);
}

.hero-top h1,
.inner-copy h1,
.content-main h2,
.contact-box h1 {
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-top h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.hero-side {
  display: grid;
  gap: 24px;
}

.hero-card {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.72);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 1s ease;
}

.hero-card:hover img,
.inner-image:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.hero-card-large {
  border-radius: 36px;
}

.hero-card-large img {
  height: 560px;
}

.hero-card-small {
  border-radius: 26px;
}

.hero-card-small img {
  height: 250px;
}

.hero-note {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(127,90,240,0.08), rgba(44,182,125,0.08));
  border: 1px solid var(--line);
}

.hero-note p {
  color: var(--muted);
  margin: 0;
}

/* content */
.content-section {
  padding: 20px 0 90px;
}

.content-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.content-main {
  max-width: 760px;
}

.content-main h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 18px;
}

.content-main p,
.article-shell p,
.contact-text,
.contact-details p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.aside-tag {
  padding-top: 6px;
}

/* inner pages */
.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 34px;
}

.inner-gradient,
.contact-gradient {
  position: absolute;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  background: linear-gradient(135deg, rgba(127,90,240,0.22), rgba(44,182,125,0.20));
  right: -60px;
  top: 30px;
  pointer-events: none;
}

.inner-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: center;
}

.inner-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.inner-image {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.inner-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 1s ease, filter 1s ease;
}

.inner-content-section {
  padding-top: 10px;
}

.article-shell {
  padding: 30px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* contact */
.contact-main {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.contact-box {
  position: relative;
  z-index: 2;
  padding: 36px;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.contact-box h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 14px;
}

.contact-details {
  margin-bottom: 26px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  transition: var(--transition);
}

.contact-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(90, 96, 180, 0.18);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid,
  .inner-layout,
  .content-layout,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card-large img {
    height: 420px;
  }

  .content-layout {
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(127,90,240,0.05);
  }

  .has-dropdown.open .dropdown-menu {
    display: grid;
  }

  .hero-top h1,
  .inner-copy h1,
  .contact-box h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .site-nav {
    top: 72px;
  }

  .hero {
    padding-top: 74px;
  }

  .hero-card-large img {
    height: 300px;
  }

  .hero-card-small img,
  .inner-image img {
    height: 220px;
  }

  .article-shell,
  .contact-box {
    padding: 24px;
  }
}