:root {
  --bg-primary: #02224a;
  --bg-secondary: #043668;
  --bg-tertiary: #0a4682;
  --accent-1: #4dd5ff;
  --accent-2: #00b8e6;
  --accent-glow: rgba(77, 213, 255, 0.35);
  --text-primary: #e6f3ff;
  --text-secondary: #a8c8e6;
  --text-muted: #6b8fb5;
  --border: rgba(77, 213, 255, 0.18);
  --border-strong: rgba(77, 213, 255, 0.35);
  --card-bg: rgba(8, 56, 110, 0.5);
  --card-bg-hover: rgba(10, 70, 130, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto",
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(77, 213, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 184, 230, 0.10), transparent 70%),
    linear-gradient(180deg, #02224a 0%, #01142e 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 34, 74, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: block;
}

.brand:hover {
  color: var(--accent-1);
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: var(--card-bg);
  color: var(--accent-1);
}

/* === Hero === */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero__logo {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  margin: 0 auto 32px;
  display: block;
  box-shadow:
    0 0 80px var(--accent-glow),
    0 20px 60px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}

.btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #001428;
  box-shadow:
    0 8px 24px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #001428;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-1);
  transform: translateY(-2px);
  color: var(--accent-1);
}

/* === Features === */
.features {
  padding: 64px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.feature:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 213, 255, 0.2), rgba(0, 184, 230, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-1);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Section title === */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* === Documents === */
.documents {
  padding: 32px 0 80px;
}

.docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.25s ease;
  color: var(--text-primary);
}

.doc-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--accent-1);
  transform: translateY(-3px);
  color: var(--text-primary);
}

.doc-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #001428;
}

.doc-card__icon svg {
  width: 28px;
  height: 28px;
}

.doc-card__body {
  flex: 1;
  min-width: 0;
}

.doc-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.doc-card__sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.doc-card__arrow {
  flex-shrink: 0;
  color: var(--accent-1);
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-card__arrow {
  transform: translateX(4px);
}

.doc-card__arrow svg {
  width: 22px;
  height: 22px;
}

/* === Footer === */
.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--text-secondary);
}

.footer a:hover {
  color: var(--accent-1);
}

.footer__links {
  margin-bottom: 12px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Document page === */
.doc-page {
  padding: 56px 0 80px;
}

.doc-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.doc-page__back:hover {
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateX(-2px);
}

.doc-page__back svg {
  width: 16px;
  height: 16px;
}

.doc-page article {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
}

.doc-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-page__meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.doc-page__lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  background: rgba(77, 213, 255, 0.06);
  border-left: 3px solid var(--accent-1);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 32px;
  line-height: 1.7;
}

.doc-page h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--accent-1);
  letter-spacing: -0.01em;
}

.doc-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.doc-page p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.doc-page strong { color: var(--text-primary); }

.doc-page ul {
  margin: 12px 0 18px;
  padding-left: 4px;
  list-style: none;
}

.doc-page ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.doc-page ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
}

.doc-page__last {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* === Pricing === */
.pricing {
  padding: 32px 0 64px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.plan:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.plan--popular {
  border-color: var(--accent-1);
  box-shadow: 0 0 32px var(--accent-glow);
}

.plan--popular:hover {
  border-color: var(--accent-1);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #001428;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.plan__badge--save {
  background: rgba(77, 213, 255, 0.18);
  color: var(--accent-1);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.plan__head {
  margin-bottom: 22px;
}

.plan__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.plan__price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}

.plan__price-currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.plan__per {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan__save {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent-1);
  font-weight: 600;
}

.plan__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.plan__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(77, 213, 255, 0.12);
}

.plan__features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 4px;
  height: 7px;
  border: solid #001428;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan__cta {
  width: 100%;
  justify-content: center;
}

.pricing__note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing__note a {
  font-weight: 600;
}

/* === Mobile === */
@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero__logo { width: 128px; height: 128px; border-radius: 26px; }
  .features, .documents, .pricing { padding: 48px 0; }
  .doc-card { padding: 22px; gap: 16px; }
  .doc-card__icon { width: 48px; height: 48px; }
  .doc-card__icon svg { width: 24px; height: 24px; }
  .nav a { padding: 6px 10px; font-size: 0.85rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 32px; height: 32px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .plan { padding: 24px 22px; }
  .plan__price-amount { font-size: 2.1rem; }
}
