/* ============================================
   Михаил Саргсян — сайт-визитка
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #08090b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0e9;
  --text-soft: #b6bac2;
  --muted: #8b8f98;
  --acid: #d8ff4a;
  --violet: #8b7cff;
  --font-display: "Unbounded", "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 88% -8%, rgba(216, 255, 74, 0.09), transparent 60%),
    radial-gradient(900px 800px at 4% 24%, rgba(139, 124, 255, 0.11), transparent 62%),
    radial-gradient(800px 600px at 60% 100%, rgba(216, 255, 74, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, p, dl, dd {
  margin: 0;
}

main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
}

::selection {
  background: var(--acid);
  color: #0a0b0d;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Background FX ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 40%, rgba(216, 255, 74, 0.10), transparent 58%),
    radial-gradient(circle at 62% 62%, rgba(139, 124, 255, 0.10), transparent 55%);
  filter: blur(18px);
  transition: opacity 0.8s ease;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 17px 40px;
}

.logo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
}

.logo span {
  color: var(--acid);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.year {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 130px) 40px clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  animation: fadeUp 0.9s var(--ease) both;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px rgba(216, 255, 74, 0.7);
}

.hero h1 {
  margin: 26px 0 clamp(26px, 3.4vw, 40px);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.055em;
  animation: fadeUp 0.9s var(--ease) 0.08s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--acid);
  text-shadow: 0 0 46px rgba(216, 255, 74, 0.25);
}

.hero-lead {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.68;
  color: var(--text-soft);
  animation: fadeUp 0.9s var(--ease) 0.18s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: fadeUp 0.9s var(--ease) 0.26s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid var(--acid);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--ease);
}

.btn span {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover span {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--acid);
  color: #0a0b0d;
}

.btn-primary:hover {
  background: transparent;
  color: var(--acid);
  box-shadow: 0 0 26px rgba(216, 255, 74, 0.18);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-site {
  border-color: rgba(139, 124, 255, 0.55);
  color: #c9c2ff;
}

.btn-site:hover {
  border-color: var(--violet);
  background: rgba(139, 124, 255, 0.14);
  color: #e4dfff;
  box-shadow: 0 0 26px rgba(139, 124, 255, 0.2);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 40px;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(36px, 4vw, 52px) 2px 8px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.about-copy p {
  max-width: 52ch;
  margin-bottom: 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

.facts {
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  margin-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  font-size: 14.5px;
  color: var(--text);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: clamp(28px, 4vw, 44px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 255, 74, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-4px);
}

.card:hover::after {
  opacity: 1;
}

.card-index {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card h2 {
  margin-top: auto;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.card p {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Contacts */
.contacts-section {
  overflow: hidden;
  padding-bottom: clamp(70px, 8vw, 110px);
}

.contacts {
  position: relative;
  z-index: 1;
  padding-top: clamp(32px, 4vw, 48px);
}

.contacts-lead {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.contact-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  padding: 22px 2px;
  border-top: 1px solid var(--line);
  transition: color 0.3s ease;
}

.contact-row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-row:hover {
  color: var(--acid);
}

.contact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row strong {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.contact-arrow {
  justify-self: end;
  font-size: 18px;
  transition: transform 0.3s var(--ease);
}

.contact-row:hover .contact-arrow {
  transform: translate(3px, -3px);
}

.watermark {
  position: absolute;
  right: -0.05em;
  bottom: -0.25em;
  font-family: var(--font-display);
  font-size: clamp(64px, 15vw, 220px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 40px;
}

.footer-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.footer-top span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s var(--ease);
}

.footer-top:hover {
  color: var(--acid);
}

.footer-top:hover span {
  background: var(--acid);
  border-color: var(--acid);
  color: #0a0b0d;
  transform: translateY(-3px);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero,
  .section,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 18px;
    margin-left: 0;
  }

  .year {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .facts div {
    grid-template-columns: 130px 1fr;
  }

  .contact-row {
    grid-template-columns: 100px minmax(0, 1fr) 24px;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .year {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3rem);
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .contact-label {
    grid-column: 1 / -1;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow {
    display: none;
  }
}
