@import url("https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-color: #0a0a0a;
  --text-main: #f4f1ea;
  --text-secondary: #b3ada3;
  --accent: #f4f1ea;
  --accent-hover: #e4dfd4;
  --font-title: "Special Gothic Expanded One", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --container: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  font-size: 95%;
  user-select: none;
}

::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: none;
  background-color: var(--bg-color);
}

body {
  min-width: 320px;
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100dvh;
}

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

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

.home-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  width: 100%;
}

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

/* Header */
.site-header {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 50;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease;
}

.logo img {
  --app-size: 38px;
  width: var(--app-size);
  height: var(--app-size);
  padding: 3px;
  aspect-ratio: 1;
  /* border-radius: 22.5%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.14); */
  display: grid;
  place-content: center;
  /* background: #000; */
}

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

.site-nav a,
.legal-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Home Main & Hero */
.home-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 36px 0 20px;

}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 40%;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 24px);
  overflow-y: auto;
  scrollbar-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(5px, 0.8dvh, 6px) clamp(12px, 1.2vw, 14px);
  margin-bottom: clamp(10px, 1.6dvh, 16px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: clamp(0.78rem, 0.2vw + 0.72rem, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw + 0.85rem, 3.6rem);
  line-height: 1.06;
  max-width: 16ch;
  margin: 0 auto clamp(12px, 1.8dvh, 18px);
  text-wrap: balance;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.description {
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 0.3vw + 0.9rem, 1.1rem);
  line-height: 1.55;
  margin: 0 auto clamp(18px, 2.4dvh, 26px);
  text-wrap: pretty;
}

.download-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 22px;
}

.btn-windows {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-windows:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-windows i {
  font-size: 1.5rem;
}

.btn-windows span {
  display: flex;
  flex-direction: column;
  line-height: .8;
  text-align: left;
}

.btn-windows small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-windows span span {
  font-size: 1.05rem;
  font-weight: 600;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.os-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
}

.os-icons i {
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.os-icons i:hover {
  color: var(--accent);
}

.os-icons .is-hidden-os-icon {
  display: none !important;
}

/* Half-screen poster */
.hero-media-container {
  position: absolute;
  bottom: 0;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  z-index: -1;
}

.media-card {
  width: 100%;
  height: 100%;
}

.hero-poster {
  width: 100dvw;
  height: 100dvh;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

@media (min-width: 1200px) {
  .hero-poster {
    object-position: center -200px;
  }
}

/* Footer */
.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: auto;
  margin: 0 0 5px;
  padding: 24px max(24px, calc((100vw - var(--container) + 48px) / 2)) 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text-main);
  font-size: 0.88rem;

  a {
    color: var(--text-main);
  }
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Responsiveness */
@media (max-width: 820px) {

  .hero-section {
    height: 45%;
  }

  .site-header {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    padding-top: 18px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  }

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

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .download-container {
    flex-direction: column;
    gap: 16px;
  }

  .coming-soon {
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin: 0;
    padding: 24px 16px 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-poster {
    object-position: 49.3% bottom;
  }
}

@media (max-height: 820px) {
  .eyebrow {
    margin-bottom: 8px;
  }

  h1 {
    margin-bottom: 10px;
  }

  .description {
    margin-bottom: 14px;
  }

  .download-container {
    gap: 10px;
  }

  .coming-soon {
    gap: 6px;
  }
}

@media (min-width: 821px) and (max-height: 700px) {
  .home-main {
    padding: 0;
  }

  .hero-section {
    flex-direction: row;
    align-items: stretch;
    height: 100%;
    padding-bottom: 40px;
  }

  .hero-text {
    flex: 1;
    width: auto;
    max-width: none;
    height: 100%;
  }

  .hero-media-container {
    display: none;
  }

  .site-footer{
    justify-content: center;  
  }
}