:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-soft: #121826;
  --surface: rgba(20, 27, 41, 0.85);
  --surface-strong: rgba(18, 24, 38, 0.95);
  --text: #f8fafc;
  --muted: #97a3b7;
  --accent: #f6c77a;
  --accent-strong: #f59f00;
  --accent-cool: #40e0d0;
  --border: rgba(248, 250, 252, 0.08);
  --shadow: 0 20px 40px rgba(8, 11, 20, 0.55);
  --font-display: "Fraunces", "Cormorant Garamond", serif;
  --font-body: "Space Grotesk", "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(64, 224, 208, 0.18), transparent 55%),
    radial-gradient(circle at 10% 10%, rgba(245, 159, 0, 0.2), transparent 42%),
    radial-gradient(circle at 80% 15%, rgba(246, 199, 122, 0.2), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 214, 147, 0.95) rgba(10, 16, 28, 0.95);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle, rgba(246, 199, 122, 0.5), transparent 60%);
  top: -220px;
  right: -200px;
}

body::after {
  background: radial-gradient(circle, rgba(64, 224, 208, 0.45), transparent 65%);
  bottom: -200px;
  left: -220px;
}

a {
  color: inherit;
  text-decoration: none;
}

.tip-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0 0.08rem;
  border-radius: 4px;
  background: transparent;
}

.tip-link:hover {
  color: #ffe8c6;
  background: rgba(246, 199, 122, 0.12);
}

.page {
  position: relative;
  z-index: 1;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.8rem 0 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.brand-title {
  font-size: 0.92rem;
  color: var(--text);
}

.brand-subtitle {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a,
.nav-actions .lang-select {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.lang-select select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding-inline: 0 1.2rem;
  cursor: pointer;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 214, 147, 0.95) rgba(12, 18, 30, 0.95);
}

.lang-select select:focus {
  outline: none;
  color: var(--text);
}

.lang-select select option {
  background: #0f172a;
  color: var(--text);
}

.lang-select select::-webkit-scrollbar {
  width: 6px;
}

.lang-select select::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.95), rgba(15, 23, 42, 0.85));
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lang-select select::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd693, #f5a524);
  border-radius: 999px;
  border: 1px solid rgba(12, 18, 30, 0.95);
  box-shadow:
    inset 0 0 6px rgba(255, 255, 255, 0.3),
    0 0 10px rgba(255, 214, 147, 0.65),
    0 0 18px rgba(245, 165, 36, 0.45);
}

.lang-select select::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe0ad, #ffb648);
}

body::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.98), rgba(13, 19, 32, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe0ad, #f5a524 55%, #3fd5c6);
  border-radius: 999px;
  border: 1px solid rgba(10, 16, 28, 0.95);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.3),
    0 0 14px rgba(255, 214, 147, 0.65),
    0 0 22px rgba(64, 224, 208, 0.45);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff0c7, #ffbe57 50%, #55e6d9);
}

.lang-select::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  width: 0.55rem;
  height: 0.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23f8fafc' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.8;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1b1304;
  box-shadow: 0 14px 28px rgba(246, 199, 122, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(246, 199, 122, 0.35);
}

.btn.ghost {
  border-color: rgba(246, 199, 122, 0.4);
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.85);
}

.hero {
  padding: 2.6rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.8rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent-cool);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 1.05;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-row span,
.pill-row .pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(64, 224, 208, 0.35);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.85rem;
  color: #d6f5ea;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.note {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 1.4rem;
}

.visual-card {
  background: linear-gradient(180deg, rgba(20, 27, 41, 0.95), rgba(9, 13, 21, 0.95));
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.visual-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.visual-wave {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.visual-badges span {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(246, 199, 122, 0.3);
  color: #fce7c1;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.portrait-card {
  background: rgba(18, 24, 38, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  animation: float 8s ease-in-out infinite reverse;
}

.portrait-header {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.portrait-card p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.portrait-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portrait-stack span {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(64, 224, 208, 0.15);
  border: 1px solid rgba(64, 224, 208, 0.4);
  color: #baf7e3;
}

.section {
  padding: 3.4rem 0;
}

.section-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 44rem;
}

.apps-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.app-card.alt {
  background: linear-gradient(160deg, rgba(18, 24, 38, 0.95), rgba(15, 23, 42, 0.75));
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.app-kicker {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent-cool);
  margin: 0 0 0.4rem;
}

.app-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.app-chip {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  color: var(--muted);
}

.app-body {
  margin: 0;
  color: var(--muted);
}

.app-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.app-points li {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.vision-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.vision-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.vision-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: #fce7c1;
}

.vision-card p {
  margin: 0;
  color: var(--muted);
}

.roadmap {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.roadmap-list {
  display: grid;
  gap: 1rem;
}

.roadmap-list .roadmap-item {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  color: var(--muted);
}

.roadmap-list .roadmap-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.cta-panel {
  background: linear-gradient(120deg, rgba(246, 199, 122, 0.16), rgba(64, 224, 208, 0.1));
  border: 1px solid rgba(246, 199, 122, 0.35);
  border-radius: 24px;
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.footer {
  padding: 2.8rem 0 3.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
}

.footer-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.footer-note {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .visual-card,
  .portrait-card {
    animation: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-header {
    padding: 1.2rem 0 0.6rem;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(11, 15, 23, 0.85), rgba(11, 15, 23, 0.4));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-brand {
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
  }

  .mobile-brand .brand-title {
    font-size: 0.82rem;
  }

  .mobile-brand .brand-subtitle {
    font-size: 0.66rem;
  }

  .mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding-inline: 0.3rem;
  }

  .mobile-nav-links {
    display: flex;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: var(--muted);
  }

  .mobile-nav-links a {
    white-space: nowrap;
  }

  .mobile-lang {
    flex-shrink: 0;
  }

  .mobile-hero {
    padding: 1.1rem 0 1.6rem;
    display: grid;
    gap: 0.9rem;
  }

  .mobile-hero .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    margin: 0;
  }

  .mobile-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.08;
    margin: 0;
  }

  .mobile-hero .lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
  }

  .mobile-hero .note {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.2rem 0 0;
  }

  .mobile-hero .pill-row {
    gap: 0.45rem;
  }

  .mobile-hero .pill-row span {
    font-size: 0.76rem;
    padding: 0.3rem 0.7rem;
  }

  .mobile-hero .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .mobile-hero .btn {
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
  }
  .container {
    width: min(1160px, calc(100% - 2rem));
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "links actions";
    align-items: center;
    row-gap: 0.8rem;
  }

  .nav-actions {
    width: auto;
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    grid-area: actions;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .nav-links {
    width: auto;
    grid-area: links;
  }

  .nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: transparent;
    border-bottom: none;
    padding: 1.4rem 0 0.8rem;
    gap: 1rem;
  }

  .brand {
    grid-area: brand;
    letter-spacing: 0.12em;
  }

  .brand-title {
    font-size: 0.82rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.82rem;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    white-space: nowrap;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .nav-links a {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
  }

  .nav-actions .btn.ghost {
    display: none;
  }

  .lang-select {
    display: flex;
  }

  .lang-select {
    padding: 0;
    gap: 0.35rem;
  }

  .lang-select select {
    font-size: 0.78rem;
    padding-inline: 0 1rem;
  }

  .lang-select::after {
    inset-inline-end: 0;
  }

  .mobile-only p {
    margin: 0;
  }

  .section {
    padding: 1.9rem 0;
  }

  .section-head {
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 5.4vw, 2rem);
    line-height: 1.2;
    margin: 0;
  }

  .section-head p {
    line-height: 1.6;
    margin: 0;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .roadmap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .app-card,
  .vision-card,
  .roadmap-list .roadmap-item,
  .cta-panel {
    background: linear-gradient(160deg, rgba(22, 32, 46, 0.92), rgba(12, 18, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(6, 10, 18, 0.35);
  }

  .app-card h3 {
    font-size: 1.2rem;
  }

  .app-body,
  .vision-card p,
  .roadmap-list .roadmap-item {
    line-height: 1.6;
  }

  .app-points li {
    line-height: 1.5;
  }

  .cta-panel h3 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .footer {
    padding: 1.8rem 0 2.2rem;
  }

  .mobile-only .footer-grid {
    gap: 0.6rem;
  }

  .mobile-only .footer-note {
    margin-top: 0.2rem;
  }

  .hero {
    padding: 2rem 0 2.4rem;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .lead {
    font-size: 1rem;
  }

  .pill-row span {
    font-size: 0.78rem;
  }

  .visual-card,
  .portrait-card {
    animation: none;
  }

  .visual-card {
    padding: 1rem;
  }

  .portrait-card {
    padding: 1.1rem;
  }

  .section {
    padding: 2.4rem 0;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .roadmap {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2.2rem 0 2.6rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1160px, calc(100% - 1.4rem));
  }

  .eyebrow {
    letter-spacing: 0.18em;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .lead {
    font-size: 0.96rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
  }

  .visual-badges {
    gap: 0.45rem;
  }

  .visual-badges span,
  .portrait-stack span {
    font-size: 0.72rem;
  }

  .app-card {
    padding: 1.2rem;
  }
}

[dir="rtl"] .nav,
[dir="rtl"] .nav-actions,
[dir="rtl"] .cta-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-grid {
  direction: rtl;
}

[dir="rtl"] .mobile-nav-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .section-head,
[dir="rtl"] .hero-copy,
[dir="rtl"] .cta-panel,
[dir="rtl"] .footer {
  text-align: right;
}

[dir="rtl"] .lang-select::after {
  inset-inline-end: auto;
  inset-inline-start: 0.8rem;
}
