/* Hyper Finder — Coming Soon (light / dark semantic tokens) */

/* Brand aligned with https://ntk.ir — navy #012b64, cyan #00deff */

:root,
[data-theme="light"] {
  --bg: #f0f6fc;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --text-primary: #012b64;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(1, 43, 100, 0.12);
  --accent: #012b64;
  --accent-bright: #00deff;
  --accent-hover: #01408f;
  --accent-soft: rgba(0, 222, 255, 0.14);
  --accent-glow: rgba(0, 222, 255, 0.35);
  --danger: #dc2626;
  --gradient-a: #012b64;
  --gradient-b: #0077a8;
  --gradient-c: #00deff;
  --shadow: 0 24px 60px rgba(1, 43, 100, 0.08);
  --shadow-lg: 0 32px 80px rgba(1, 43, 100, 0.14);
  --header-bg: rgba(240, 246, 252, 0.9);
  --orb-1: rgba(0, 222, 255, 0.2);
  --orb-2: rgba(1, 43, 100, 0.12);
  --orb-3: rgba(0, 222, 255, 0.1);
  --partner-gradient: linear-gradient(135deg, #012b64 0%, #0077a8 55%, #00deff 100%);
}

[data-theme="dark"] {
  --bg: #0a1020;
  --bg-elevated: #111b2e;
  --surface: rgba(17, 27, 46, 0.9);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(0, 222, 255, 0.2);
  --accent: #00deff;
  --accent-bright: #00deff;
  --accent-hover: #5eead4;
  --accent-soft: rgba(0, 222, 255, 0.12);
  --accent-glow: rgba(0, 222, 255, 0.28);
  --danger: #f87171;
  --gradient-a: #00deff;
  --gradient-b: #34d399;
  --gradient-c: #7dd3fc;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 32px 80px rgba(0, 222, 255, 0.1);
  --header-bg: rgba(10, 16, 32, 0.92);
  --orb-1: rgba(0, 222, 255, 0.14);
  --orb-2: rgba(1, 43, 100, 0.35);
  --orb-3: rgba(0, 222, 255, 0.08);
  --partner-gradient: linear-gradient(135deg, #0a1020 0%, #012b64 50%, #0077a8 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--orb-1);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--orb-2);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: var(--orb-3);
  top: 45%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.brand-icon img,
.brand-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.theme-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

/* Main layout */
main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.35;
}

.gradient-text {
  background: linear-gradient(120deg, var(--gradient-a), var(--gradient-b), var(--gradient-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.launch-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.launch-bar-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gradient-a), var(--gradient-c));
  animation: progressShine 3s ease-in-out infinite;
}

@keyframes progressShine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.launch-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Default: stats flow in column (mobile/tablet grid applied in media queries) */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.hero-stats .float-card {
  position: static;
  text-align: center;
  padding: 0.55rem 0.45rem;
}

.hero-frame {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
  animation: fadeUp 0.8s ease both;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.float-card {
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.float-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.float-card strong {
  font-size: 1rem;
  color: var(--accent-bright);
}

[data-theme="light"] .float-card strong {
  color: var(--accent);
}

.float-card small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.float-discount strong {
  color: var(--danger);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mission */
.mission,
.features,
.cta {
  margin-bottom: 3.5rem;
}

.mission h2,
.features h2,
.cta h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.mission-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.mission-card {
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
}

.mission-card--wide {
  animation-delay: 0.1s;
}

.mission-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
}

.mission-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mission-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.mission-icon svg {
  width: 100%;
  height: 100%;
}

/* Features */
.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.7s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
  }
}

.feature-card--highlight {
  border-color: var(--accent);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--accent-soft) 100%);
}

@media (min-width: 1024px) {
  .feature-card--highlight {
    grid-column: span 2;
  }
}

.feature-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 0.4rem;
  color: var(--accent);
  background: var(--accent-soft);
}

.feature-visual {
  height: 4.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.feature-visual svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Partner — Negin Tejarat Karavi (ntk.ir) */
.partner {
  margin-bottom: 3.5rem;
}

.partner h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--partner-gradient);
}

@media (min-width: 640px) {
  .partner-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 1.75rem 2rem;
    gap: 1.75rem;
  }
}

.partner-logo {
  flex-shrink: 0;
  display: block;
  padding: 0.5rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.partner-logo:hover {
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-2px);
}

.partner-logo img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  border-radius: 0.5rem;
}

.partner-body {
  flex: 1;
  min-width: 0;
}

.partner-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.02em;
}

[data-theme="light"] .partner-eyebrow {
  color: #0077a8;
}

.partner-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.partner-body h3 a {
  color: inherit;
  text-decoration: none;
}

.partner-body h3 a:hover {
  color: var(--accent-bright);
}

[data-theme="light"] .partner-body h3 a:hover {
  color: var(--accent-hover);
}

.partner-body > p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
}

.partner-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.partner-meta li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.partner-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.partner-meta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

[data-theme="dark"] .partner-meta a {
  color: var(--accent-bright);
}

.partner-meta a:hover {
  border-bottom-color: currentColor;
}

.footer-credit {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-credit a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

[data-theme="dark"] .footer-credit a {
  color: var(--accent-bright);
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* CTA */
.cta {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--accent-soft), transparent 55%);
  border: 1px solid var(--border);
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cta-domain {
  color: var(--accent);
  font-weight: 800;
}

[data-theme="dark"] .cta-domain {
  color: var(--accent-bright);
}

.cta-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

a.cta-chip--link {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}

a.cta-chip--link:hover {
  background: var(--accent);
  color: var(--bg-elevated);
  border-color: var(--accent);
}

[data-theme="dark"] a.cta-chip--link:hover {
  color: var(--text-primary);
}

.site-footer > p:first-child a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-footer > p:first-child a:hover {
  color: var(--accent-bright);
}

[data-theme="light"] .site-footer > p:first-child a:hover {
  color: var(--accent-hover);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-note {
  font-size: 0.78rem;
  max-width: 36rem;
  margin-inline: auto !important;
}

/* ——— Mobile & small tablets ——— */
@media (max-width: 959px) {
  .hero {
    gap: 1.75rem;
    margin-bottom: 2.75rem;
  }

  .hero-copy {
    text-align: center;
  }

  .status-pill {
    margin-inline: auto;
  }

  .feature-card--highlight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem max(1rem, env(safe-area-inset-left)) 0.75rem max(1rem, env(safe-area-inset-right));
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  main {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    line-height: 1.4;
  }

  .lead {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero-frame {
    border-radius: 1rem;
  }

  /* Mobile: stats row under image (no overlap / overflow) */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .hero-stats .float-card {
    position: static;
    animation: none;
    padding: 0.55rem 0.45rem;
    text-align: center;
    min-width: 0;
  }

  .hero-stats .float-card strong {
    font-size: 0.82rem;
    display: block;
    word-break: break-word;
  }

  .hero-stats .float-label {
    font-size: 0.62rem;
  }

  .hero-stats .float-discount {
    display: block;
  }

  .mission-card,
  .feature-card {
    padding: 1.1rem 1rem;
  }

  .mission-card p,
  .feature-card p {
    font-size: 0.9rem;
  }

  .cta {
    padding: 1.5rem 1rem;
  }

  .cta-chip {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 7rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .site-footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  .orb-1 {
    width: 220px;
    height: 220px;
  }

  .orb-2 {
    width: 180px;
    height: 180px;
  }

  .orb-3 {
    display: none;
  }
}

/* Very narrow phones (e.g. 320px) */
@media (max-width: 380px) {
  .brand-text small {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats .float-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: start;
    padding: 0.65rem 0.85rem;
  }

  .hero-stats .float-label {
    margin-bottom: 0;
  }

  .hero-stats .float-card strong {
    font-size: 0.95rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-chip {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Large screens: floating badges on image */
@media (min-width: 960px) {
  .hero-stats {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .hero-visual {
    position: relative;
  }

  .hero-stats .float-card {
    position: absolute;
    animation: floatCard 5s ease-in-out infinite;
  }

  .float-price {
    top: 8%;
    left: 0;
    animation-delay: 0s;
  }

  .float-stock {
    bottom: 18%;
    right: 0;
    animation-delay: -1.5s;
  }

  .float-discount {
    top: 42%;
    right: 6%;
    animation-delay: -3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
