/* ==========================================================================
   High King — Coming Soon
   Design tokens
   ========================================================================== */
:root {
  /* Brand */
  --hk-green-900: #0B2E25;
  --hk-green-800: #0F3A2E;     /* primary */
  --hk-green-700: #14503F;
  --hk-green-600: #1B6650;
  --hk-green-50:  #E8EFEC;

  /* Neutral */
  --ink-900: #0E1513;
  --ink-700: #1F2A26;
  --ink-600: #3A4744;
  --ink-500: #5C6A66;
  --ink-400: #8A938F;
  --ink-300: #C2C9C6;
  --ink-200: #E5E9E7;
  --ink-100: #F2F5F3;
  --bg:      #FFFFFF;
  --bg-soft: #FAFBFA;

  /* Effects */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 58, 46, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 58, 46, 0.06), 0 1px 2px rgba(15, 58, 46, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 58, 46, 0.08), 0 2px 6px rgba(15, 58, 46, 0.05);
  --shadow-lg: 0 18px 48px rgba(15, 58, 46, 0.12), 0 4px 12px rgba(15, 58, 46, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Typography */
  --font-arm: "Noto Sans Armenian", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-lat: "Inter", "Noto Sans Armenian", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --header-h: 92px;
}

/* Latin scripts get Inter for tighter rhythm */
body[data-lang="ru"],
body[data-lang="en"] {
  font-family: var(--font-lat);
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-arm);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--hk-green-700); }

button { font-family: inherit; cursor: pointer; }

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--hk-green-700);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  background: var(--hk-green-800);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}

.btn-lg { padding: 16px 26px; font-size: 16px; }

.btn-primary {
  background: var(--hk-green-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--hk-green-700);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff;
  color: var(--hk-green-800);
  border-color: var(--ink-200);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--hk-green-800);
  color: var(--hk-green-800);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ==========================================================================
   Header (minimal: logo + lang switcher)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink-200);
  box-shadow: 0 1px 0 rgba(15, 58, 46, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.logo:hover { transform: translateY(-1px); }
.logo img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(15, 58, 46, 0.12));
  transition: filter .25s var(--ease);
}
.logo:hover img {
  filter: drop-shadow(0 4px 10px rgba(15, 58, 46, 0.18));
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
}
.lang-btn {
  background: transparent;
  border: none;
  padding: 6px 6px;
  color: var(--ink-400);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.lang-btn:hover { color: var(--ink-700); }
.lang-btn.is-active { color: var(--hk-green-800); }
.lang-sep { color: var(--ink-300); user-select: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding: 80px 0 200px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 28%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.18) 75%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0.55) 100%);
}

.hero-inner { position: relative; }

.hero-content { max-width: 600px; }

.hero-eyebrow {
  margin-bottom: 18px;
  width: clamp(220px, 26vw, 320px);
  animation: eyebrow-fade-in 1s var(--ease) both;
}
.hero-eyebrow img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 2px 6px rgba(255, 255, 255, 0.55))
    drop-shadow(0 1px 2px rgba(15, 58, 46, 0.18));
}
@keyframes eyebrow-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--hk-green-800);
  margin-bottom: 18px;
  white-space: nowrap;
}

/* Per-language sizing so longer titles stay on one row */
body[data-lang="en"] .hero-title {
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: -0.025em;
}
body[data-lang="ru"] .hero-title {
  font-size: clamp(52px, 8.5vw, 120px);
}

.hero-subtitle {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Signup card (overlapping hero)
   ========================================================================== */
.signup-section {
  position: relative;
  margin-top: -140px;
  padding-bottom: 80px;
}

.signup-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.signup-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--hk-green-800);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(15, 58, 46, 0.25);
}

.signup-text { min-width: 0; }
.signup-title {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.signup-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-500);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.signup-input-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup-input-wrap:focus-within {
  border-color: var(--hk-green-700);
  box-shadow: 0 0 0 4px rgba(15, 58, 46, 0.08);
}
.signup-input-wrap.is-error {
  border-color: #C2410C;
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.signup-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--ink-900);
  min-width: 0;
}
.signup-input-wrap input::placeholder { color: var(--ink-400); }

.signup-submit {
  border-radius: 0;
  padding: 0 24px;
  font-size: 15px;
  flex-shrink: 0;
}

.signup-privacy,
.signup-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.4;
}
.signup-privacy svg { color: var(--hk-green-700); flex-shrink: 0; }

.signup-feedback { font-weight: 500; display: none; }
.signup-feedback.is-success { display: flex; color: var(--hk-green-700); }
.signup-feedback.is-error   { display: flex; color: #C2410C; }

/* ==========================================================================
   Social section
   ========================================================================== */
.social-section { padding: 40px 0 96px; }

.section-header {
  text-align: center;
  margin: 0 auto 40px;
  max-width: 720px;
}
.section-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: inherit;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.social-instagram {
  background: linear-gradient(135deg, #FEDA77 0%, #F58529 25%, #DD2A7B 55%, #8134AF 85%, #515BD4 100%);
}
.social-facebook { background: #1877F2; }
.social-youtube  { background: #FF0000; }
.social-tiktok   { background: #000; }

.social-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.social-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.2;
}
.social-handle {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-arrow {
  color: var(--ink-400);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), color .25s var(--ease);
  flex-shrink: 0;
}
.social-card:hover .social-arrow {
  color: var(--hk-green-800);
  transform: translateX(3px);
}

/* ==========================================================================
   Minimal footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--ink-200);
  padding: 22px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-600);
  font-weight: 500;
}
.footer-contact-item svg { color: var(--hk-green-700); }
.footer-contact-item:hover { color: var(--hk-green-800); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .signup-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
  }
  .signup-form { grid-column: 1 / -1; }

  .social-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Small tablet — 860px */
@media (max-width: 860px) {
  .hero { padding: 70px 0 200px; }
  .hero-title { font-size: clamp(56px, 13vw, 96px); }
}

/* Mobile — 760px */
@media (max-width: 760px) {
  :root { --header-h: 72px; }

  .container { padding: 0 20px; }

  /* Header: tighten and make tap targets bigger */
  .header-inner { gap: 10px; height: var(--header-h); }
  .logo img { height: 52px; }
  .lang-switcher { font-size: 13px; gap: 2px; }
  .lang-btn { padding: 8px 8px; min-width: 32px; min-height: 36px; }

  /* Hero: stronger mobile presence */
  .hero {
    padding: 48px 0 200px;
    min-height: 78vh;
    align-items: flex-start;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.78) 30%,
        rgba(255, 255, 255, 0.45) 55%,
        rgba(255, 255, 255, 0.2) 78%,
        rgba(255, 255, 255, 0.55) 100%);
  }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { width: clamp(160px, 50vw, 220px); margin-bottom: 12px; }
  .hero-title {
    font-size: clamp(56px, 18vw, 110px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
  }
  body[data-lang="en"] .hero-title {
    font-size: clamp(40px, 11vw, 78px);
    letter-spacing: -0.03em;
  }
  body[data-lang="ru"] .hero-title {
    font-size: clamp(52px, 16vw, 96px);
  }
  .hero-subtitle {
    font-size: clamp(20px, 5.6vw, 26px);
    line-height: 1.25;
    margin: 0 0 18px;
  }
  .hero-description {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0 0 26px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 15.5px;
  }

  /* Signup card: stacked, comfortable thumb zones */
  .signup-section {
    margin-top: -150px;
    padding-bottom: 48px;
  }
  .signup-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "text"
      "form";
    text-align: center;
    padding: 26px 22px;
    gap: 14px;
    border-radius: 20px;
  }
  .signup-icon {
    grid-area: icon;
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }
  .signup-icon svg { width: 22px; height: 22px; }
  .signup-text { grid-area: text; }
  .signup-title { font-size: 19px; }
  .signup-desc  { font-size: 14px; }
  .signup-form  { grid-area: form; gap: 12px; }

  .signup-input-wrap {
    flex-direction: column;
    border-radius: 12px;
  }
  .signup-input-wrap input {
    padding: 16px 16px;
    font-size: 16px; /* prevents iOS zoom on focus */
    text-align: center;
  }
  .signup-submit {
    padding: 16px 20px;
    border-radius: 0;
    min-height: 52px;
    font-size: 15.5px;
    width: 100%;
  }
  .signup-privacy,
  .signup-feedback {
    justify-content: center;
    text-align: center;
    line-height: 1.5;
  }

  /* Social section: single column, generous tap targets */
  .social-section { padding: 12px 0 56px; }
  .section-header { margin-bottom: 24px; }
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14.5px; }
  .social-grid { grid-template-columns: 1fr; gap: 10px; }
  .social-card {
    padding: 16px;
    min-height: 68px;
    border-radius: 14px;
  }
  .social-icon { width: 42px; height: 42px; }

  /* Footer */
  .site-footer { padding: 20px 0 28px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
  .footer-contact {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .footer-copyright { font-size: 12.5px; }
}

/* Small phones — 420px */
@media (max-width: 420px) {
  .container { padding: 0 16px; }

  .logo img { height: 46px; }
  .lang-btn { padding: 6px 6px; min-width: 28px; }
  .hero-eyebrow { width: clamp(140px, 48vw, 190px); }

  .hero { padding: 40px 0 190px; }
  .hero-title { font-size: clamp(52px, 19vw, 84px); }
  .hero-subtitle { font-size: 19px; }
  .hero-description { font-size: 15px; }

  .signup-section { margin-top: -150px; }
  .signup-card { padding: 22px 18px; border-radius: 18px; }
  .signup-icon { width: 52px; height: 52px; }

  .social-card { padding: 14px; min-height: 64px; }
  .social-name { font-size: 14.5px; }
  .social-handle { font-size: 12.5px; }
}

/* Very small — 360px */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(44px, 18vw, 64px); }
  body[data-lang="en"] .hero-title { font-size: clamp(36px, 10vw, 52px); }
  body[data-lang="ru"] .hero-title { font-size: clamp(44px, 16vw, 60px); }
  .hero-subtitle { font-size: 18px; }
  .signup-title { font-size: 17.5px; }
}

/* Landscape phones — keep hero compact */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 32px 0 160px; min-height: auto; }
  .hero-title { font-size: clamp(48px, 9vw, 72px); margin-bottom: 10px; }
  .hero-subtitle { font-size: 18px; margin-bottom: 12px; }
  .hero-description { margin-bottom: 18px; }
  .signup-section { margin-top: -130px; }
}

/* 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;
  }
}
