:root {
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --surface: #f8fafc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body.lang-fa {
  font-family: "Vazirmatn", sans-serif;
}

body.lang-en {
  font-family: "Inter", sans-serif;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hydro-site-wrap {
  min-height: 100vh;
  background: #fff;
}

.hydro-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 4rem;
  isolation: isolate;
}

.shape {
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.shape-blue {
  width: 380px;
  height: 380px;
  top: -180px;
  right: -170px;
  border-radius: 999px;
  border: 28px solid rgba(59, 130, 246, 0.34);
}

.shape-green {
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: -190px;
  border-radius: 999px;
  border: 24px solid rgba(34, 197, 94, 0.3);
}

.hydro-hero .container {
  position: relative;
  z-index: 1;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-kicker {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  text-decoration: none;
  color: #111827;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.mail-link {
  color: #111827;
  text-underline-offset: 4px;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-title {
  margin: 1.35rem 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 720px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 1.05rem;
}

.hero-cta-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-primary {
  background: #111827;
  color: #fff;
}

.btn-primary:hover {
  background: #1f2937;
}

.btn-secondary {
  border-color: var(--border);
  color: #111827;
}

.btn-secondary:hover {
  border-color: #111827;
}

.hydro-main {
  padding: 2rem 0 4rem;
}

.apps-heading {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.apps-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.apps-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-section {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.app-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app-title {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.app-category {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-description,
.app-extra {
  max-width: 760px;
  margin: 0.9rem 0 0;
  line-height: 1.95;
}

.app-extra {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-download {
  margin-top: 0.95rem;
  border-color: #111827;
  color: #111827;
}

.btn-download:hover {
  background: #111827;
  color: #fff;
}

.screenshots-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.95rem 0 0.5rem;
  scroll-snap-type: x mandatory;
}

.shot {
  margin: 0;
  min-width: 280px;
  height: 210px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  scroll-snap-align: start;
}

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

.empty-state {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1.2rem;
}

.reveal-up,
.reveal-side {
  opacity: 0;
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal-up {
  transform: translateY(20px);
}

.reveal-side.from-left {
  transform: translateX(-44px);
}

.reveal-side.from-right {
  transform: translateX(44px);
}

.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 860px) {
  .apps-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-top-row {
    flex-wrap: wrap;
  }

  .hero-actions {
    width: 100%;
    justify-content: space-between;
  }
}
