/* Moved from root styles.css to assets/styles/main.css */
:root {
  --bg: #f8fafc;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-alt: #0f172a;
  --surface-alt-2: #18233b;
  --text: #132238;
  --text-muted: #5f6f86;
  --primary: #ed5a2c;
  --primary-dark: #c84620;
  --accent: #2d6df6;
  --line: rgba(19, 34, 56, 0.08);
  --shadow-lg: 0 28px 60px rgba(27, 44, 94, 0.14);
  --shadow-md: 0 18px 40px rgba(27, 44, 94, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 109, 246, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(237, 90, 44, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

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

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

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

.site-shell {
  overflow-x: hidden;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.78);
  border-bottom: 1px solid rgba(19, 34, 56, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffcf57, #ed5a2c);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  box-shadow: 0 12px 30px rgba(237, 90, 44, 0.28);
}

.brand-copy strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.page-home .site-header {
  position: fixed;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.page-home .site-header:not(.is-solid) .brand-copy strong,
.page-home .site-header:not(.is-solid) .brand-copy span,
.page-home .site-header:not(.is-solid) .site-nav a {
  color: rgba(255, 255, 255, 0.96);
}

.page-home .site-header:not(.is-solid) .site-nav a:hover,
.page-home .site-header:not(.is-solid) .site-nav a:focus-visible {
  color: #ffffff;
}

.page-home .site-header:not(.is-solid) .menu-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.page-home .site-header.is-solid {
  background: rgba(248, 250, 252, 0.82);
  border-bottom-color: rgba(19, 34, 56, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(27, 44, 94, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
}

.hero-layout {
  min-height: 100svh;
}

.hero-stage {
  position: relative;
  min-height: 100svh;
  padding: clamp(100px, 12vw, 144px) 0 clamp(28px, 4vw, 42px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 34, 0.72) 0%, rgba(10, 18, 34, 0.42) 34%, rgba(10, 18, 34, 0.08) 70%),
    linear-gradient(180deg, rgba(10, 18, 34, 0.08) 0%, rgba(10, 18, 34, 0.42) 100%);
  z-index: 1;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto auto -80px -40px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 87, 0.2), transparent 65%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

.hero-copy {
  max-width: 540px;
  margin-left: clamp(150px, 16vw, 320px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(45, 109, 246, 0.08);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-family: "Poppins", "Manrope", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7a36, var(--primary));
  box-shadow: 0 16px 32px rgba(237, 90, 44, 0.3);
}

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.section {
  padding: 64px 0;
}

.section-showcase {
  padding-top: 46px;
  padding-bottom: 34px;
}

.section-featured {
  padding-top: 8px;
  padding-bottom: 46px;
}

.showcase-shell,
.feature-shell {
  position: relative;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  max-width: 12ch;
  font-family: "Poppins", "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 26px;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.92));
  box-shadow: var(--shadow-md);
}

.showcase-copy {
  padding: 12px 10px 12px 2px;
}

.showcase-copy h3 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.showcase-copy p {
  margin: 0;
  max-width: 30ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.platform-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 109, 246, 0.08);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 12px;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  box-shadow: var(--shadow-lg);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 22px;
}

.video-trigger {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-trigger:hover {
  transform: translate(-50%, -50%) scale(1.03);
  background: rgba(15, 23, 42, 0.82);
}

.video-trigger-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a36, var(--primary));
  position: relative;
  flex-shrink: 0;
}

.video-trigger-icon::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.video-trigger-text {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100% - 32px));
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.video-modal-player {
  display: block;
  width: 100%;
  max-height: min(78vh, 720px);
  border-radius: 20px;
  background: #000000;
}

.featured-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 32px;
  padding: 34px 36px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.95));
  box-shadow: var(--shadow-md);
}

.featured-copy {
  min-width: 0;
}

.featured-head {
  display: block;
}

.featured-head h3 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.featured-head p {
  max-width: 44ch;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.featured-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.featured-mini-card {
  text-align: center;
}

.featured-icon-wrap {
  position: relative;
  display: inline-block;
}

.featured-mini-card img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  margin: 0 auto;
}

.featured-video-trigger {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1495ff, #035fcd);
  box-shadow: 0 10px 18px rgba(3, 95, 205, 0.26);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-video-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 22px rgba(3, 95, 205, 0.34);
}

.featured-video-trigger-icon {
  position: relative;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

.featured-mini-card h4 {
  margin: 16px 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.featured-mini-card p {
  margin: 0;
  color: #7a4df3;
  font-size: 0.96rem;
  line-height: 1.55;
  font-weight: 700;
}

.featured-visual {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(122, 77, 243, 0.12), transparent 42%),
    radial-gradient(circle at 72% 26%, rgba(34, 211, 238, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.featured-visual img {
  max-width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 34px;
}

.about-media {
  display: flex;
  align-items: center;
}

.about-media img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.about-copy {
  padding-right: 12px;
}

.about-copy h2 {
  margin: 0 0 18px;
}

.about-copy p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
}

.contact-card,
.legal-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(19, 34, 56, 0.05);
}

.contact-card h3,
.legal-card h3 {
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45, 109, 246, 0.12), rgba(237, 90, 44, 0.12));
  font-size: 1rem;
  font-weight: 800;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-item a {
  color: var(--accent);
  font-weight: 700;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.legal-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
}

.legal-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.legal-link:hover::after {
  transform: translateX(4px);
}

.site-footer {
  padding: 28px 0 42px;
}

.footer-inner {
  padding-top: 22px;
  border-top: 1px solid rgba(19, 34, 56, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-page {
  min-height: 100vh;
}

.legal-hero {
  padding: 74px 0 18px;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.35rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 760px;
}

.legal-body {
  padding: 18px 0 72px;
}

.legal-panel {
  padding: 34px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(19, 34, 56, 0.05);
}

.legal-panel .updated {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-panel h2 {
  margin: 30px 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1.44rem;
  line-height: 1.2;
}

.legal-panel p,
.legal-panel li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.legal-panel ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-panel a {
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .showcase-grid,
  .featured-panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .showcase-copy,
  .about-copy {
    padding-right: 0;
  }

  .featured-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(19, 34, 56, 0.06);
  }

  .page-home .site-header:not(.is-solid) .site-nav {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a::after {
    display: none;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero-layout,
  .hero-stage {
    min-height: 100svh;
  }

  .hero-stage {
    align-items: flex-end;
    padding-top: 116px;
  }

  .hero-stage::before {
    background:
      linear-gradient(180deg, rgba(10, 18, 34, 0.18) 0%, rgba(10, 18, 34, 0.72) 100%),
      linear-gradient(90deg, rgba(10, 18, 34, 0.56) 0%, rgba(10, 18, 34, 0.16) 65%);
  }

  .hero-actions,
  .footer-inner,
  .legal-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .section {
    padding: 48px 0;
  }

  .showcase-grid,
  .featured-panel {
    padding: 20px;
    border-radius: 26px;
  }

  .contact-card,
  .legal-card,
  .legal-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .legal-hero {
    padding: 28px 0 10px;
  }

  .legal-hero h1 {
    font-size: 2.25rem;
  }

  .legal-hero p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .legal-body {
    padding: 8px 0 40px;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .video-trigger {
    min-height: 52px;
    padding: 0 18px;
  }

  .video-modal-dialog {
    width: calc(100% - 20px);
    padding: 10px;
    border-radius: 22px;
  }

  .video-modal-close {
    top: -10px;
    right: -4px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-layout,
  .hero-stage {
    min-height: 100svh;
  }

  .hero-copy {
    margin-left: 0;
  }
}
