:root {
  --bg: #090b10;
  --bg-elev: #10141c;
  --bg-soft: #151b25;
  --text: #edf1f7;
  --text-soft: #aeb8c8;
  --muted: #7c879b;
  --brand: #ff1e3f;
  --brand-soft: #ff4b66;
  --accent: #8e98a8;
  --accent-soft: #c6cfdd;
  --line: rgba(198, 207, 221, 0.17);
  --radial-brand: radial-gradient(circle at top right, rgba(255, 30, 63, 0.3), transparent 45%);
  --radial-accent: radial-gradient(circle at left bottom, rgba(142, 152, 168, 0.25), transparent 45%);
  --hero-overlay: linear-gradient(100deg, rgba(9, 11, 16, 0.96) 0%, rgba(9, 11, 16, 0.82) 38%, rgba(9, 11, 16, 0.3) 72%, rgba(9, 11, 16, 0.1) 100%);
  --radius: 18px;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background: var(--radial-brand);
}

body::after {
  background: var(--radial-accent);
}

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

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5.2rem 0;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.section-intro {
  color: var(--text-soft);
  max-width: 750px;
}

.glass {
  background: linear-gradient(160deg, rgba(16, 20, 28, 0.95), rgba(16, 20, 28, 0.7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 16, 0.78);
  border-bottom: 1px solid rgba(198, 207, 221, 0.1);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo img {
  width: 184px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.logo strong {
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.4rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: 0.25s ease;
}

.btn-brand {
  background: linear-gradient(100deg, var(--brand), var(--brand-soft));
  color: #fff;
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 30, 63, 0.35);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.hero {
  min-height: clamp(520px, 76vh, 760px);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
}

@media (max-width: 820px) {
  .hero {
    align-items: center;
    min-height: clamp(430px, 62vh, 560px);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay), url("../images/hero.png") 72% center/cover no-repeat;
  z-index: -2;
}

@media (max-width: 820px) {
  .hero::before {
    background: var(--hero-overlay), url("../images/hero.png") 78% center/cover no-repeat;
  }
}

@media (max-width: 560px) {
  .hero::before {
    background: var(--hero-overlay), url("../images/hero.png") 82% center/cover no-repeat;
  }
}

@media (max-width: 420px) {
  .hero {
    align-items: center;
  }
  .hero::before {
    background: var(--hero-overlay), url("../images/hero.png") 58% center/cover no-repeat;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg), transparent 40%);
  z-index: -1;
}

.hero-content {
  max-width: 500px;
  margin: 0 auto 0 max(3vw, calc((100vw - 1180px) / 2));
  padding: 5.8rem 0 4rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

@media (max-width: 820px) {
  .hero-content {
    max-width: 86vw;
    margin: 0 auto 0 4vw;
    padding: 0.9rem 0 1.4rem;
    /* background: linear-gradient(180deg, transparent 0%, rgba(9, 11, 16, 0.55) 12%, rgba(9, 11, 16, 0.92) 45%); */
    border-radius: 14px 14px 0 0;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
    line-height: 1.15;
  }

  .hero p {
    font-size: 0.98rem;
    margin-bottom: 1.4rem;
  }

  .badge {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: clamp(420px, 60vh, 500px);
  }

  .hero-content {
    max-width: 84vw;
    margin: 0 auto 0 4vw;
    padding-top: 0.7rem;
  }
}

@media (max-width: 820px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    height: auto;
    align-items: stretch;
    padding-top: 0.6rem;
  }

  .hero::before {
    background: var(--hero-overlay), url("../images/hero.png") 75% center/cover no-repeat;
  }

  .hero-content {
    padding: 0.8rem 0 1rem;
    max-width: 62vw;
    margin: 0 auto 0 3vw;
    /* background: linear-gradient(180deg, transparent 0%, rgba(9, 11, 16, 0.6) 20%, rgba(9, 11, 16, 0.9) 60%); */
  }

  .hero h1 {
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }

  .hero p {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
  }

  .badge {
    font-size: 0.68rem;
    padding: 0.15rem 0.65rem;
    margin-bottom: 0.4rem;
  }

  .hero-actions .btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .hero {
    display: block;
    min-height: 0;
  }

  .hero::before {
    position: relative;
    inset: auto;
    display: block;
    height: 44svh;
    min-height: 240px;
    max-height: 360px;
    background: var(--hero-overlay), url("../images/hero.png") 80% center/cover no-repeat;
    z-index: 0;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    max-width: 90vw;
    margin: 0 auto;
    padding: 1rem 0 1.5rem;
    border-radius: 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .hero p {
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .hero {
    min-height: calc(100svh - 78px);
  }

  .hero::before {
    height: clamp(200px, 36svh, 310px);
    background:
      linear-gradient(110deg, rgba(9, 11, 16, 0.28), rgba(9, 11, 16, 0.08)),
      url("../images/hero-mobile.png") center top/contain no-repeat;
    background-color: #050912;
  }
}

@media (max-width: 767px) and (orientation: portrait) and (max-height: 760px) {
  .hero::before {
    height: clamp(170px, 30svh, 240px);
  }

  .hero-content {
    padding: 0.7rem 0 1rem;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    line-height: 1.12;
    margin-bottom: 0.65rem;
  }

  .hero p {
    font-size: 0.98rem;
    margin-bottom: 0.9rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn {
    padding: 0.62rem 0.95rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    display: grid;
    align-items: end;
    min-height: calc(100svh - 78px);
    position: relative;
    isolation: isolate;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    background:
      linear-gradient(96deg, rgba(9, 11, 16, 0.9) 0%, rgba(9, 11, 16, 0.64) 36%, rgba(9, 11, 16, 0.14) 72%),
      url("../images/hero.png") 76% center/cover no-repeat;
    z-index: -2;
  }

  .hero::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 9, 18, 0.9), rgba(5, 9, 18, 0.12) 44%);
    z-index: -1;
  }

  .hero-content {
    max-width: 56vw;
    margin: 0 auto 0 3vw;
    padding: 0 0 0.9rem;
    border-radius: 0;
  }

  .badge {
    font-size: 0.64rem;
    margin-bottom: 0.4rem;
    padding: 0.12rem 0.6rem;
  }

  .hero h1 {
    font-size: clamp(1rem, 3vw, 1.35rem);
    line-height: 1.12;
    margin-bottom: 0.35rem;
  }

  .hero p {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
    max-width: 46ch;
  }

  .hero-actions {
    gap: 0.45rem;
  }

  .hero-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.74rem;
  }
}

@media (min-width: 768px) and (max-width: 980px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: calc(100svh - 78px);
    align-items: end;
  }

  .hero::before {
    background: var(--hero-overlay), url("../images/hero.png") 76% center/cover no-repeat;
  }

  .hero-content {
    max-width: 54vw;
    margin: 0 auto 0 3.5vw;
    padding: 0 0 1rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 3.3vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 0.6rem;
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.9rem;
    max-width: 42ch;
  }

  .hero-actions .btn {
    padding: 0.58rem 1rem;
    font-size: 0.9rem;
  }
}

.badge {
  display: inline-flex;
  border: 1px solid rgba(255, 30, 63, 0.55);
  color: #ffd6dd;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero p {
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.card {
  padding: 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16, 20, 28, 0.9);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  margin: 0.35rem 0 0.6rem;
}

.card p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.card-tag {
  color: var(--brand-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.8rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.split figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.split figcaption {
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding-left: 0.85rem;
  border-left: 2px solid var(--brand);
}

.split-media-left {
  grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 980px) {
  .split-media-left {
    grid-template-columns: 1fr;
  }
}

.highlight {
  margin-top: 1rem;
  color: #ffdbe2;
  border-left: 3px solid var(--brand);
  padding-left: 0.9rem;
}

.feature-panel {
  margin-top: 2rem;
  padding: 1.8rem;
}

.feature-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.45rem;
}

.feature-panel p {
  color: var(--text-soft);
}

.image-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.image-grid figure {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #121722;
}

.image-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.image-grid figcaption {
  padding: 0.9rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.callout {
  margin-top: 2.2rem;
  padding: 1.7rem;
  text-align: center;
}

.callout h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.55rem;
}

.callout p {
  color: var(--text-soft);
}

.contact-card {
  margin-top: 2.2rem;
  text-align: center;
  padding: 2rem 1.4rem;
}

.contact-card h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.contact-link {
  display: inline-block;
  color: #ffe8ec;
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

footer {
  border-top: 1px solid rgba(198, 207, 221, 0.12);
  padding: 1.8rem 0 2.5rem;
  margin-top: 2.4rem;
}

.foot-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.card.perspective-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card.perspective-card .card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #0f131b;
  overflow: hidden;
}

.card.perspective-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card.perspective-card:hover .card-media img {
  transform: scale(1.04);
}

.card.perspective-card .card-body {
  padding: 1.4rem 1.45rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card.perspective-card .card-body > a {
  margin-top: auto;
}

.article-banner {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 0 auto 1.8rem;
  max-width: 980px;
  aspect-ratio: 2 / 1;
  background: #0f131b;
}

.article-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
  margin: 1.4rem auto 0;
  text-align: left;
}

.form input,
.form textarea {
  background: rgba(10, 13, 19, 0.8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 30, 63, 0.18);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button {
  justify-self: start;
  cursor: pointer;
  border: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site-footer {
  background: #0a0d13;
  border-top: 1px solid rgba(198, 207, 221, 0.12);
  padding: 3rem 0 1.6rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
  align-items: flex-start;
}

.footer-grid h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-grid p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(198, 207, 221, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

.article {
  max-width: 780px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.article-meta .tag {
  color: var(--brand-soft);
  font-weight: 700;
}

.article h1.article-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.article .lede {
  color: var(--text);
  font-size: 1.18rem;
  border-left: 3px solid var(--brand);
  padding-left: 1rem;
  margin-bottom: 1.8rem;
}

.article p {
  color: var(--text-soft);
  font-size: 1.04rem;
  margin-bottom: 1.1rem;
}

.article .closing {
  color: var(--accent-soft);
  font-weight: 600;
}

.article-footer {
  margin-top: 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.animate {
  opacity: 0;
  transform: translateY(14px);
  transition: 0.5s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .card-grid,
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto;
    background: rgba(9, 11, 16, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 4vw 1.6rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-wrap .btn {
    display: none;
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .logo img {
    width: 150px;
  }

  .card-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }
}
