/* ==========================================================================
   ARK — Atrin Radman Keyhan
   Minimalist Corporate 1-VH Stylesheet
   ========================================================================== */

:root {
  --bg-void: #06070a;
  
  --gold-primary: #eab308;
  --gold-glow: rgba(234, 179, 8, 0.25);
  --gold-soft: #f7eac6;
  --gold-muted: rgba(234, 179, 8, 0.45);

  --text-white: #ffffff;
  --text-primary: #f5f3ee;
  --text-secondary: rgba(245, 243, 238, 0.72);
  --text-muted: rgba(245, 243, 238, 0.42);

  --font-corporate: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono-num: 'Inter', -apple-system, sans-serif;
  --font-persian: 'Vazirmatn', Tahoma, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-corporate);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] .brand-mark,
html[dir="rtl"] .mark-full,
html[dir="rtl"] .brand-formal,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .status-title,
html[dir="rtl"] .status-sub,
html[dir="rtl"] .footer-note,
html[dir="rtl"] [data-i18n] {
  font-family: var(--font-persian) !important;
}

html[dir="rtl"] {
  direction: rtl;
}

/* --------------------------------------------------------------------------
   GhostFibers Background Container & Canvas
   -------------------------------------------------------------------------- */
.ghost-fibers-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 0;
  pointer-events: auto;
}

.ghost-fibers-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.screen-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(6, 7, 10, 0.35) 0%,
    rgba(6, 7, 10, 0.75) 75%,
    #06070a 100%
  );
}

/* --------------------------------------------------------------------------
   Single 100-VH Viewport Structure
   -------------------------------------------------------------------------- */
.vh-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  padding: 2rem 3rem;
  box-sizing: border-box;
  pointer-events: none;
}

.page-header,
.page-center,
.page-footer {
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Minimal Header (Pure Typographic, No Clunky Boxes)
   -------------------------------------------------------------------------- */
.page-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-corporate);
  letter-spacing: 0.05em;
  
  /* Exact big ARK metallic gold gradient flowing horizontally left-to-right */
  background: linear-gradient(
    to right,
    #855f1c 0%,
    #9b7121 10%,
    #b58726 18%,
    #ebb82e 25%,
    #b58726 32%,
    #9b7121 40%,
    #855f1c 50%,
    #9b7121 60%,
    #b58726 68%,
    #ebb82e 75%,
    #b58726 82%,
    #9b7121 90%,
    #855f1c 100%
  );
  background-size: 200% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShimmerFlow 9s linear infinite;
  transition: opacity 0.25s ease;
}

.brand-mark:hover {
  opacity: 1;
}

.mark-abbr {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mark-sep {
  opacity: 0.4;
  font-size: 0.85rem;
  font-weight: 300;
}

.mark-full {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@keyframes brandShimmerFlow {
  0% {
    background-position: -200% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  transition: color 0.2s ease;
}

.lang-link.active {
  color: var(--gold-soft);
  text-shadow: 0 0 12px var(--gold-glow);
}

.lang-link:hover:not(.active) {
  color: var(--text-primary);
}

.lang-divider {
  color: var(--text-muted);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Center Hero (Decluttered, Prominent Floating Logo)
   -------------------------------------------------------------------------- */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  width: 100%;
}

/* Prominent Emblem (NO Background, NO Border, Free-floating) */
.hero-logo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.6rem;
}

.ark-emblem {
  width: clamp(220px, 28vw, 310px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 40px rgba(234, 179, 8, 0.28));
  animation: emblemFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-logo-wrap:hover .ark-emblem {
  transform: scale(1.02);
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.ark-poly {
  stroke: url(#ark-gold-stroke);
  stroke-width: 5px;
  stroke-miterlimit: 10;
  fill: none;
}

.ark-path {
  fill: url(#ark-gold-body);
}

/* Brand Naming Typography: ARK + Atrin Radman Keyhan */
.brand-naming {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.brand-acronym {
  font-family: var(--font-corporate);
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-indent: 0.18em; /* Optical center for tracked uppercase */
  display: inline-block;
  
  /* Subtle, low-contrast metallic gold gradient with gentle transitions */
  background: linear-gradient(
    to top,
    #855f1c 0%,
    #9b7121 10%,
    #b58726 18%,
    #ebb82e 25%,
    #b58726 32%,
    #9b7121 40%,
    #855f1c 50%,
    #9b7121 60%,
    #b58726 68%,
    #ebb82e 75%,
    #b58726 82%,
    #9b7121 90%,
    #855f1c 100%
  );
  background-size: 100% 200%;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Slower, continuous bottom-to-top liquid gold rise matching emblem */
  animation: arkContinuousGoldUp 9s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 35px rgba(253, 202, 11, 0.28));
}

@keyframes arkContinuousGoldUp {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 200%;
  }
}

.brand-formal {
  font-family: var(--font-corporate);
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* Message Block */
.message-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.status-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.status-dot {
  color: var(--text-muted);
}

.status-date {
  color: var(--text-primary);
  font-weight: 500;
}

.status-sub {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* Minimalist Contact Action */
.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: rgba(14, 16, 22, 0.55);
  border: 1px solid rgba(234, 179, 8, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.contact-action:hover {
  border-color: rgba(234, 179, 8, 0.55);
  box-shadow: 0 4px 24px rgba(234, 179, 8, 0.2);
}

.contact-email {
  font-family: var(--font-corporate);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--text-white);
}

.copy-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.copy-trigger:hover {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Minimal Footer
   -------------------------------------------------------------------------- */
.page-footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-note {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .vh-page {
    padding: 1.5rem 1.25rem;
  }

  .mark-full {
    display: none; /* Keep crisp ARK on mobile top-left */
  }

  .mark-sep {
    display: none;
  }

  .ark-emblem {
    width: 180px;
  }

  .brand-acronym {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .status-announcement {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.75rem;
  }

  .status-dot {
    display: none;
  }

  .status-sub {
    font-size: 0.85rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}

@media (max-height: 640px) {
  html, body {
    overflow-y: auto;
  }
  .vh-page {
    height: auto;
    min-height: 100vh;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
  .page-center {
    margin: 1.5rem 0;
  }
}
