@font-face {
  font-family: "Arad";
  src: url("/fonts/Arad-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arad";
  src: url("/fonts/Arad-Medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arad";
  src: url("/fonts/Arad-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --bg-soft: #0b1018;
  --surface: rgba(15, 23, 34, 0.65);
  --surface-strong: rgba(21, 31, 46, 0.85);

  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --blue: #2563eb;
  --purple: #8b5cf6;

  --gameland: #4ade80;
  --gameland-soft: rgba(74, 222, 128, 0.16);
  --watchmates: #f472b6;
  --watchmates-soft: rgba(244, 114, 182, 0.16);

  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;

  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(56, 189, 248, 0.25);

  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.1), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.07), transparent 38%),
    radial-gradient(circle at 0% 65%, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(160deg, #060810 0%, #05070b 45%, #070a12 100%);
  font-family: "Arad", "Vazirmatn", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.035) 0%, transparent 30%, transparent 70%, rgba(139, 92, 246, 0.035) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.orb {
  position: fixed;
  z-index: -2;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-one {
  top: -200px;
  left: -150px;
  background: var(--blue);
}

.orb-two {
  right: -200px;
  bottom: 0;
  background: var(--accent);
  animation-delay: -10s;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.navbar {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: min(1160px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 12px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 4px;
  white-space: nowrap;
  z-index: 5;
}

.logo img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.logo span {
  color: var(--accent);
}

.user-account-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  z-index: 1;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  z-index: 6;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.nav-discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.nav-discord-button:hover {
  color: #fff;
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.16);
  transform: translateY(-2px);
}

.nav-discord-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer-discord-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.nav-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.25s var(--ease);
}

.nav-auth-login-button {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.nav-auth-login-button:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.user-account-menu {
  position: relative;
  z-index: 30;
}

.user-account-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 10px 5px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.user-account-menu-trigger:hover,
.user-account-menu-is-open .user-account-menu-trigger {
  border-color: var(--border-accent);
  background: rgba(56, 189, 248, 0.08);
}

.user-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.user-account-summary {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.2;
}

.user-account-label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.user-account-name {
  max-width: 110px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account-menu-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease);
}

.user-account-menu-is-open .user-account-menu-arrow {
  transform: rotate(180deg);
}

.user-account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 240px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  color: var(--text);
  background: rgba(13, 18, 25, 0.95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s var(--ease);
}

.user-account-menu-is-open .user-account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-account-dropdown-header {
  display: grid;
  gap: 2px;
  padding: 8px 10px 12px;
}

.user-account-dropdown-label {
  color: var(--muted);
  font-size: 0.65rem;
}

.user-account-dropdown-full-name {
  overflow: hidden;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account-dropdown-email {
  overflow: hidden;
  direction: ltr;
  color: var(--muted-light);
  font-family: sans-serif;
  font-size: 0.7rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account-dropdown-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}

.user-account-menu-link,
.user-account-signout-button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 12px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.user-account-menu-link {
  color: var(--text);
}

.user-account-menu-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.user-account-signout-button {
  color: #fca5a5;
  margin-top: 2px;
}

.user-account-signout-button:hover:not(:disabled) {
  color: #fff;
  background: rgba(239, 68, 68, 0.9);
}

.user-account-signout-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.user-account-link-icon,
.user-account-signout-icon {
  display: flex;
  align-items: center;
  opacity: 0.8;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 640px;
  padding: 130px 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, black 55%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, black 55%, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  direction: ltr;
  animation: reveal 0.8s var(--ease) both;
}

.hero-title {
  margin: 0 auto 20px;
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  animation: heroTitle 1s var(--ease) both;
}

.hero-title span {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 600px;
  min-height: 60px;
  margin: 0 auto 36px;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  animation: reveal 0.9s 0.2s var(--ease) both;
}

.typing {
  display: inline-block;
  min-width: 4px;
  color: var(--accent);
  font-weight: 500;
  border-left: 2px solid currentColor;
  padding-left: 4px;
  animation: cursorBlink 0.8s step-end infinite;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: reveal 0.9s 0.35s var(--ease) both;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ===== Stats ===== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 90px;
}

.stat-card {
  position: relative;
  padding: 32px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--surface-strong);
}

.stat-number {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.section {
  padding: 80px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section-title {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
}

.section-caption {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-box {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.about-box p {
  max-width: 850px;
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 220px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: all 0.3s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--surface-strong);
}

.card-index {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  direction: ltr;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.service-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* ===== Reveal on scroll ===== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Subsidiaries (signature showcase) ===== */

.subsidiaries-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.subsidiary-card {
  --accent-color: var(--accent);
  --accent-color-soft: rgba(56, 189, 248, 0.16);
  position: relative;
  border-radius: 24px;
  isolation: isolate;
}

.subsidiary-border {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0deg,
    var(--accent-color) 70deg,
    transparent 160deg,
    transparent 220deg,
    var(--accent-color) 320deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 7s linear infinite;
  opacity: 0.9;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

.subsidiary-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 180px;
  padding: 36px 42px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.subsidiary-card:hover .subsidiary-inner {
  background: var(--surface-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -10px var(--accent-color-soft);
}

.subsidiary-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.subsidiary-content,
.subsidiary-badge {
  position: relative;
  z-index: 2;
}

.subsidiary-content {
  max-width: 600px;
}

.subsidiary-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-color-soft);
  background: var(--accent-color-soft);
  color: var(--accent-color);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.live-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 0 var(--accent-color-soft);
  animation: livePulse 1.7s ease-in-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 var(--accent-color-soft); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.subsidiary-name {
  direction: ltr;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.subsidiary-name span {
  color: var(--accent-color);
}

.subsidiary-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 12px;
}

.subsidiary-actions {
  margin-top: 20px;
}

.btn-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.btn-sub-link svg {
  transition: transform 0.2s var(--ease);
  opacity: 0.7;
}

.btn-sub-link:hover {
  background: var(--accent-color);
  color: #04120c;
  border-color: var(--accent-color);
}

.btn-sub-link:hover svg {
  transform: translate(-2px, -2px);
  opacity: 1;
}

.subsidiary-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
  animation: badgeFloat 4.5s ease-in-out infinite;
}

.subsidiary-card:nth-child(2) .subsidiary-badge {
  animation-delay: -2.2s;
}

.subsidiary-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

footer {
  margin-top: 60px;
  padding: 30px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.footer-discord-link:hover {
  color: #fff;
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(88, 101, 242, 0.16);
  transform: translateY(-2px);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitle {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes orbFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, 40px); }
}

@keyframes cursorBlink {
  0%, 45% { border-color: var(--accent); }
  46%, 100% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .subsidiary-border,
  .live-dot,
  .subsidiary-badge,
  .orb {
    animation: none !important;
  }
}

@media (max-width: 800px) {
  .navbar {
    top: 10px;
    width: calc(100% - 24px);
    margin-top: 10px;
    min-height: auto;
    padding: 10px 14px;
    /* روی گوشی، navbar نباید هیچ‌وقت از عرض صفحه بیرون بزنه؛ اگه محتوای
       داخلش (مثلاً باکس حساب کاربری با آواتار و اسم) جا نشه، به‌جای
       بیرون‌زدن از صفحه باید فشرده بشه. */
    flex-wrap: nowrap;
  }
  .logo {
    position: static;
    transform: none !important;
    margin: 0 auto 0 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .auth-actions { min-width: 0; flex-shrink: 0; }
  /* وقتی کاربر وارد حساب شده، باکس حساب کاربری (آواتار + اسم) جای
     دکمه‌های مهمان رو می‌گیره و به‌طور پیش‌فرض عریض‌تره. روی گوشی فقط
     آواتار نمایش داده می‌شه تا navbar از صفحه بیرون نزنه. */
  .user-account-menu-trigger {
    gap: 0;
    padding: 5px;
    min-height: 38px;
  }
  .user-account-summary,
  .user-account-menu-arrow {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav-links a::after { display: none; }
  .hero { min-height: 520px; padding: 100px 0 70px; }
  .stats, .services-grid { grid-template-columns: 1fr; }
  .stats { margin-bottom: 60px; }
  .section { padding: 60px 0; }
  .about-box { padding: 24px; }
  .section-heading { display: block; }
  .section-caption { display: block; margin-top: 8px; }
  .subsidiary-inner { align-items: flex-start; padding: 26px; }
  .subsidiary-badge { width: 64px; height: 64px; flex-basis: 64px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, 1160px); }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .subsidiary-inner { display: block; }
  .subsidiary-badge { margin-top: 20px; }
  .user-account-name { max-width: 70px; }
}

@media (max-width: 360px) {
  .navbar { padding: 8px 10px; }
  .logo { font-size: 0.85rem; letter-spacing: 2px; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 1.5px; }
  .about-box { padding: 18px; }
}