:root {
  --dark-green: #0e1f14;
  --dark-green-deep: #08140c;
  --light-green: #3ecf6e;
  --light-green-hover: #35b85f;
  --light-green-soft: #e8f8ee;
  --white: #ffffff;
  --gray-50: #f7f8f9;
  --gray-100: #eef0f2;
  --gray-200: #dde1e6;
  --gray-600: #5c6670;
  --gray-800: #2d3439;
  --text: #1f2933;
  --shadow-sm: 0 2px 8px rgba(14, 31, 20, 0.06);
  --shadow-md: 0 8px 30px rgba(14, 31, 20, 0.08);
  --shadow-lg: 0 16px 48px rgba(14, 31, 20, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --container: min(1120px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--light-green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 207, 110, 0.08), transparent),
    linear-gradient(180deg, var(--dark-green-deep) 0%, var(--dark-green) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 20px 64px;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}

.hero-logo:hover,
.hero-logo:focus-visible {
  text-decoration: none;
  opacity: 0.9;
}

.hero-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 720px;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 auto 32px;
  max-width: 480px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font: 600 1rem/1.25 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--light-green);
  box-shadow: 0 4px 20px rgba(62, 207, 110, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--light-green-hover);
  color: var(--white);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--light-green);
}

/* Form section */
.form-section {
  padding: 64px 20px;
  background: var(--white);
}

.form-section h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-800);
}

.form-section h2 .highlight {
  color: var(--light-green);
}

.form-section-intro {
  margin: 0 auto 32px;
  max-width: 560px;
  text-align: center;
  color: var(--gray-600);
}

.form-card {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-progress {
  padding: 12px 24px;
  background: var(--light-green-soft);
  border-bottom: 1px solid rgba(62, 207, 110, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-green);
}

.form-progress-bar {
  height: 4px;
  margin-top: 8px;
  background: var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.form-progress-fill {
  width: 20%;
  height: 100%;
  background: var(--light-green);
  border-radius: 999px;
}

.form-placeholder {
  padding: 32px 24px 28px;
}

.form-placeholder label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.form-row input::placeholder {
  color: #9aa5b1;
}

.form-row input:disabled {
  background: var(--gray-50);
  cursor: not-allowed;
}

.form-row .btn-search {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  font: 600 0.9375rem/1 "Inter", sans-serif;
  color: var(--white);
  background: var(--light-green);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.form-secure svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--light-green);
}

.form-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9aa5b1;
}

.form-disclaimer a {
  color: var(--light-green);
}

/* Feature cards */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  padding: 24px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--light-green);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.feature-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* How it works */
.how-section {
  padding: 64px 20px;
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--gray-800);
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.step-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--light-green);
}

.step-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light-green);
}

.step-card h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-800);
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Safe hands */
.safe-section {
  padding: 64px 20px;
  background: var(--white);
}

.safe-section .section-header {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.trust-item {
  padding: 20px 16px;
  text-align: center;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.trust-item-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  color: var(--light-green);
}

.trust-item span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
}

/* Legal blocks */
.legal-section {
  padding: 48px 20px 64px;
  background: var(--white);
}

.legal-blocks {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  margin-bottom: 28px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-800);
}

.legal-block p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray-600);
}

.legal-block a {
  color: var(--light-green);
  font-weight: 500;
}

/* Legal pages */
.legal-page-header {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 207, 110, 0.06), transparent),
    linear-gradient(180deg, var(--dark-green-deep) 0%, var(--dark-green) 100%);
  color: var(--white);
  padding: 32px 20px 48px;
}

.legal-page-header .container {
  max-width: 800px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.legal-page-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-page-content {
  flex: 1;
  padding: 48px 20px 64px;
  background: var(--white);
}

.legal-page-content .container {
  max-width: 800px;
}

.legal-section-item {
  margin-bottom: 28px;
}

.legal-section-item h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.legal-section-item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.legal-updated {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 40px 20px;
  text-align: center;
  background: var(--dark-green-deep);
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-credit {
  margin-top: 16px !important;
}

.footer-credit a {
  color: var(--light-green);
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 36px 20px 48px;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .features-row,
  .steps-row {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    flex-direction: column;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
