/* rightofexit.com.ua — MVP landing */

:root {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --panel: #101f32;
  --text: #eaf1f7;
  --muted: #9eb0c2;
  --paper: #f5f3ec;
  --paper-text: #17202a;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(13, 28, 44, 0.14);
  --accent: #7ed7ff;
  --accent-strong: #38bdf8;
  --accent-dark: #0b4e6d;
  --success: #8be0b0;
  --warning: #ffcf70;
  --error: #ff9a9a;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 104px;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.13), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(72, 125, 175, 0.16), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #091524 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 10% 20%, white 0 1px, transparent 1.3px),
    radial-gradient(circle at 28% 70%, white 0 1px, transparent 1.3px),
    radial-gradient(circle at 57% 14%, white 0 1px, transparent 1.3px),
    radial-gradient(circle at 72% 44%, white 0 1px, transparent 1.3px),
    radial-gradient(circle at 90% 18%, white 0 1px, transparent 1.3px);
  background-size: 260px 220px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.35;
  color: #d9e6f1;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-primary {
  background: var(--accent);
  color: #04101a;
}

.button-primary:hover {
  background: #a4e5ff;
}

.button-secondary {
  border-color: rgba(126, 215, 255, 0.4);
  background: rgba(126, 215, 255, 0.06);
  color: var(--text);
}

.section-light .button-secondary,
.product-card .button-secondary {
  color: var(--paper-text);
  border-color: rgba(17, 32, 50, 0.22);
  background: rgba(17, 32, 50, 0.04);
}

.button-full {
  width: 100%;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.84rem;
}

.cover-wrap {
  justify-self: center;
  width: min(100%, 320px);
}

.cover {
  position: relative;
  aspect-ratio: 0.68;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px 14px 14px 4px;
  background:
    linear-gradient(135deg, rgba(17, 42, 66, 0.5), transparent 34%),
    #030810;
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-6deg);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.19), transparent);
}

.cover-stars {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(circle at 18% 17%, white 0 1px, transparent 1.4px),
    radial-gradient(circle at 77% 10%, white 0 1px, transparent 1.4px),
    radial-gradient(circle at 62% 32%, white 0 1px, transparent 1.4px),
    radial-gradient(circle at 31% 43%, white 0 1px, transparent 1.4px),
    radial-gradient(circle at 83% 52%, white 0 1px, transparent 1.4px);
  background-size: 170px 180px;
}

.cover-earth {
  position: absolute;
  left: -16%;
  right: -16%;
  bottom: -31%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 56% 15%, rgba(126, 215, 255, 0.9), transparent 5%),
    radial-gradient(circle at 50% 10%, #416e91 0 22%, #102a43 45%, #06111f 69%);
  box-shadow:
    0 -6px 26px rgba(126, 215, 255, 0.27),
    0 -2px 3px rgba(255, 255, 255, 0.38);
}

.cover-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 28px 25px 30px;
}

.cover-author {
  color: #a8bdcf;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
}

.cover-title {
  margin-top: auto;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.cover-subtitle {
  color: #b6c7d5;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.cover-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.section {
  padding: 96px 0;
}

.section-light {
  background: var(--paper);
  color: var(--paper-text);
}

.section-light .section-kicker {
  color: var(--accent-dark);
}

.section-light p {
  color: #34404b;
}

.section-title {
  max-width: 760px;
  margin-bottom: 42px;
}

.narrow p {
  font-size: 1.09rem;
}

.feature-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
}

.feature-number {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.fragment-section {
  padding-top: 20px;
}

.fragment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(126, 215, 255, 0.24);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(126, 215, 255, 0.09), transparent 45%),
    var(--panel);
}

.fragment-box h2 {
  margin-bottom: 12px;
}

.fragment-box p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 56px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
}

.product-featured {
  border-color: rgba(11, 78, 109, 0.36);
  box-shadow: 0 15px 45px rgba(14, 48, 72, 0.11);
}

.product-badge {
  align-self: flex-start;
  margin-bottom: 20px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #dff4ff;
  color: #0b4e6d;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.product-badge-muted {
  background: #e9ecef;
  color: #5f6770;
}

.price {
  margin: 8px 0 14px;
  color: var(--paper-text) !important;
  font-size: 2.7rem;
  font-weight: 850;
  line-height: 1;
}

.price span {
  font-size: 1rem;
  font-weight: 700;
}

.product-note {
  flex: 1;
}

.order-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  border-top: 1px solid var(--line-dark);
  padding-top: 56px;
}

.order-copy p:last-child {
  max-width: 420px;
}

.order-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #26323d;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd3d9;
  border-radius: 12px;
  outline: none;
  padding: 13px 14px;
  background: #fff;
  color: #17202a;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #5bbce8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
}

.consent input {
  width: auto;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.9rem;
}

.form-status-success {
  color: #12623a !important;
}

.form-status-warning {
  color: #855807 !important;
}

.form-status-error {
  color: #9a2929 !important;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 70px;
}

.author-text {
  max-width: 690px;
}

.author-text p {
  color: var(--muted);
  font-size: 1.06rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 70px 0 82px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .cover-wrap {
    justify-self: start;
    width: min(78vw, 300px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 22px;
  }

  .order-panel,
  .author-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 4.7rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .fragment-section {
    padding-top: 10px;
  }

  .fragment-box {
    display: grid;
    padding: 28px;
  }

  .product-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
