/* spadanamd.ir — coming-soon landing
   Direction: clinical precision · medical monitoring
   No third-party CDN · OS fonts only */

:root {
  --ink: #0a2e32;
  --ink-soft: #1e4a4f;
  --muted: #4a6b6f;
  --surface: #eef4f2;
  --surface-elevated: #f7faf9;
  --panel: #0d3a3f;
  --panel-line: #2a6a70;
  --accent: #147068;
  --accent-bright: #2bb8ab;
  --warn: #c47a2a;
  --border: #c3d5d2;
  --focus: #0a6e66;
  --radius-sm: 4px;
  --radius-md: 8px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --font-fa: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
  --font-tech: "Cascadia Mono", "Consolas", "Segoe UI Mono", monospace;
  --shadow-panel: 0 18px 40px rgba(10, 46, 50, 0.18);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-fa);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(43, 184, 171, 0.12), transparent 55%),
    linear-gradient(165deg, var(--surface) 0%, #e4eeeb 48%, var(--surface-elevated) 100%);
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: -3rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-md);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

.page {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-block: var(--space-lg) var(--space-md);
}

/* —— top —— */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  animation: rise 0.7s ease both;
}

.domain {
  margin: 0;
  font-family: var(--font-tech);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.status-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(196, 122, 42, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

/* —— hero —— */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
  animation: rise 0.85s 0.08s ease both;
}

.eyebrow {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.brand {
  margin: 0 0 var(--space-md);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-line {
  display: block;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
}

.brand-emphasis {
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  color: var(--ink);
  position: relative;
}

.brand-emphasis::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: var(--space-sm);
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  margin: 0 0 var(--space-lg);
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

.contact {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  font-size: 0.9375rem;
}

.contact-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.contact-link {
  font-family: var(--font-tech);
  font-size: 0.9375rem;
  color: var(--focus);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-link:hover {
  color: var(--ink);
}

.contact-link:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* —— monitor panel —— */
.hero-panel {
  justify-self: stretch;
}

.panel-frame {
  background: linear-gradient(160deg, var(--panel) 0%, #0a2e32 100%);
  color: #d8ecea;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-panel);
  border: 1px solid rgba(43, 184, 171, 0.25);
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.waveform {
  display: block;
  width: 100%;
  height: auto;
  margin-block: var(--space-xs) var(--space-md);
}

.wave-grid {
  fill: none;
  stroke: rgba(42, 106, 112, 0.55);
  stroke-width: 1;
}

.wave-line {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: draw-wave 2.4s 0.35s ease forwards, glow-line 3s 2.6s ease-in-out infinite;
}

.panel-stats {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
  border-top: 1px solid rgba(42, 106, 112, 0.65);
}

.panel-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--space-xs);
  text-align: center;
}

.panel-stats strong {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.panel-stats span {
  font-size: 0.75rem;
  color: #9ec4c0;
}

/* —— footer —— */
.site-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  animation: rise 0.9s 0.16s ease both;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* —— motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 122, 42, 0.5);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(196, 122, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 122, 42, 0);
  }
}

@keyframes draw-wave {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glow-line {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

/* —— responsive —— */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-panel {
    order: -1;
    max-width: 26rem;
  }

  .page {
    padding-block: var(--space-md);
  }

  .topbar {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .panel-stats {
    grid-template-columns: 1fr;
  }

  .panel-stats li {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}
