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

:root {
  --color-bg: #fafaf9;
  --color-bg-alt: #f5f5f0;
  --color-surface: #ffffff;
  --color-surface-alt: #f9f9f6;
  --color-text: #1a1a1a;
  --color-text-secondary: #525252;
  --color-text-muted: #8a8a8a;
  --color-primary: #0d9488;
  --color-primary-light: #ccfbf1;
  --color-primary-dark: #0f766e;
  --color-accent: #f59e0b;
  --color-border: #e5e5e0;
  --color-border-light: #efefea;
  --color-step-number: #99f6e4;
  --color-guarantee-bg: linear-gradient(135deg, #ccfbf1, #f0fdfa);
  --color-nav-bg: rgba(250, 250, 249, 0.85);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
}

/* ===== Dark theme (auto) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1210;
    --color-bg-alt: #141916;
    --color-surface: #1a201c;
    --color-surface-alt: #1e2622;
    --color-text: #ededeb;
    --color-text-secondary: #b0b0a8;
    --color-text-muted: #7a7a72;
    --color-primary: #2dd4bf;
    --color-primary-light: #042f2e;
    --color-primary-dark: #5eead4;
    --color-accent: #fbbf24;
    --color-border: #2a3028;
    --color-border-light: #222820;
    --color-step-number: #1a5c55;
    --color-guarantee-bg: linear-gradient(135deg, #042f2e, #0f1f1a);
    --color-nav-bg: rgba(15, 18, 16, 0.85);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  }
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

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

.btn--full {
  width: 100%;
  padding: 14px 32px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

.nav__logo-dot {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.hero__trust-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__graphic {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
}

.hero__circle--1 {
  width: 400px;
  height: 400px;
  top: 0;
  left: 0;
  animation: spin 60s linear infinite;
}

.hero__circle--2 {
  width: 280px;
  height: 280px;
  top: 60px;
  left: 60px;
  border-color: var(--color-primary-light);
  animation: spin 45s linear infinite reverse;
}

.hero__circle--3 {
  width: 160px;
  height: 160px;
  top: 120px;
  left: 120px;
  border-style: dashed;
  border-color: var(--color-primary);
  opacity: 0.3;
  animation: spin 30s linear infinite;
}

.hero__node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
  z-index: 2;
}

.hero__node--1 {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  animation: float1 4s ease-in-out infinite;
}

.hero__node--2 {
  bottom: 40px;
  left: -8px;
  animation: float 4s ease-in-out infinite 1.3s;
}

.hero__node--3 {
  bottom: 40px;
  right: -8px;
  animation: float 4s ease-in-out infinite 2.6s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes float1 {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-12px); }
}

/* ===== Section common ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== How it works ===== */
.how {
  padding: 100px 0;
  background: var(--color-surface-alt);
}

.how__steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.how__step:last-child {
  border-bottom: none;
}

.how__step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-step-number);
  line-height: 1;
  flex-shrink: 0;
  width: 72px;
}

.how__step-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.how__step-content p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 24px;
}

.pricing-card__name {
  font-size: 22px;
  margin-bottom: 6px;
}

.pricing-card__desc {
  color: var(--color-text-muted);
  font-size: 14px;
}

.pricing-card__price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pricing-card__features svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Guarantee ===== */
.guarantee {
  padding: 60px 0;
}

.guarantee__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--color-guarantee-bg);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border-light);
}

.guarantee__icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.guarantee__text h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.guarantee__text p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== Contact author ===== */
.contact__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.contact__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact__author-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.contact__author-role {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--color-surface-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-status {
  font-size: 14px;
  min-height: 20px;
}

.form-status--success {
  color: #059669;
}

.form-status--error {
  color: #dc2626;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: border-color 0.2s;
}

.contact__channel:hover {
  border-color: var(--color-border);
}

.contact__channel-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact__channel h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__channel p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact__channel-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s;
}

.contact__channel-link:hover {
  color: var(--color-primary-dark);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border-light);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Dark mode overrides ===== */
@media (prefers-color-scheme: dark) {
  .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23b0b0a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
  }

  .btn--primary:hover {
    box-shadow: 0 4px 16px rgba(45, 212, 191, 0.3);
  }

  .form-status--success {
    color: #34d399;
  }

  .form-status--error {
    color: #f87171;
  }

  .hero__title-accent {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .how__step-content p {
    color: #c0c0b8;
  }
}

/* ===== Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__graphic {
    width: 280px;
    height: 280px;
  }

  .hero__circle--1 {
    width: 280px;
    height: 280px;
  }

  .hero__circle--2 {
    width: 196px;
    height: 196px;
    top: 42px;
    left: 42px;
  }

  .hero__circle--3 {
    width: 112px;
    height: 112px;
    top: 84px;
    left: 84px;
  }

  .hero__node {
    width: 44px;
    height: 44px;
  }

  .hero__node svg {
    width: 20px;
    height: 20px;
  }

  .hero__node--2 {
    bottom: 24px;
    left: -4px;
  }

  .hero__node--3 {
    bottom: 24px;
    right: -4px;
  }

  .hero__title {
    text-align: center;
  }

  .hero__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badge {
    display: block;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__trust {
    align-items: center;
  }

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

  .how__step {
    gap: 20px;
  }

  .how__step-number {
    font-size: 36px;
    width: 52px;
  }

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

  .guarantee__inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .services,
  .how,
  .pricing,
  .contact {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 15px;
  }

  .hero__graphic {
    width: 220px;
    height: 220px;
  }

  .hero__circle--1 {
    width: 220px;
    height: 220px;
  }

  .hero__circle--2 {
    width: 154px;
    height: 154px;
    top: 33px;
    left: 33px;
  }

  .hero__circle--3 {
    width: 88px;
    height: 88px;
    top: 66px;
    left: 66px;
  }

  .hero__node--2 {
    bottom: 16px;
  }

  .hero__node--3 {
    bottom: 16px;
  }
}
