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

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --cta: #238636;
  --cta-hover: #2ea043;
  --border: #30363d;
  --error: #f85149;
}

html {
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Animated background blobs */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}


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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  position: relative;
  z-index: 1;
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.logo-letter {
  display: inline-block;
  background: linear-gradient(
    160deg,
    #58a6ff,
    #a78bfa,
    #58a6ff,
    #a78bfa
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-color 10s ease-in-out infinite,
             logo-breathe 4s ease-in-out infinite;
}

@keyframes logo-color {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 300% center; }
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* Main */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.card {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 4px;
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
}

.pitch {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.85)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.06))
          drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.price {
  margin-bottom: 1.5rem;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #58a6ff, #a78bfa, #58a6ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: price-shimmer 10s ease-in-out infinite;
}

.price-currency {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #58a6ff, #a78bfa, #58a6ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: price-shimmer 10s ease-in-out infinite;
}

@keyframes price-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.price-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input.invalid {
  border-color: var(--error);
}

.error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.error-msg.visible {
  display: block;
}

.cta {
  display: block;
  width: 100%;
  padding: 0.6rem 1.5rem;
  margin-top: 1.5rem;
  background: var(--cta);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cta-shadow 8s ease-in-out infinite;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(35, 134, 54, 0.5),
              0 0 50px rgba(139, 92, 246, 0.25);
}

.cta:active {
  transform: translateY(0);
}

.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

@keyframes cta-shadow {
  0%, 100% {
    box-shadow: 4px 4px 20px rgba(35, 134, 54, 0.3),
                -2px 0 15px rgba(139, 92, 246, 0.05);
  }
  25% {
    box-shadow: -4px 6px 25px rgba(139, 92, 246, 0.2),
                4px -2px 15px rgba(35, 134, 54, 0.15);
  }
  50% {
    box-shadow: -2px -4px 20px rgba(35, 134, 54, 0.25),
                6px 4px 18px rgba(139, 92, 246, 0.15);
  }
  75% {
    box-shadow: 6px -2px 22px rgba(139, 92, 246, 0.18),
                -4px 6px 16px rgba(35, 134, 54, 0.2);
  }
}

/* Status messages */
.status-banner {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
  font-size: 0.875rem;
  display: none;
  word-break: break-word;
}

.status-banner.success {
  background: rgba(35, 134, 54, 0.15);
  border: 1px solid var(--cta);
  color: var(--cta-hover);
}

.status-banner.cancelled {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Deliverables */
.deliverables {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.25rem 0;
}

.check-list svg {
  flex-shrink: 0;
  color: var(--cta);
}

/* Coverage grid */
.coverage {
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.coverage-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.coverage-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.coverage-item:hover {
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.05);
  text-decoration: none;
  color: inherit;
}

/* Tooltip handled by JS (follows cursor) */

.coverage-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.coverage-item div {
  display: flex;
  flex-direction: column;
}

.coverage-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.coverage-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Steps */
.steps {
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.steps-row {
  display: flex;
  gap: 1rem;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.step-icon {
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.3;
}

/* Guarantee */
.guarantee {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guarantee svg {
  color: var(--cta);
  flex-shrink: 0;
}

/* Trust badges */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge svg {
  flex-shrink: 0;
}

.badge-sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 540px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .main {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .pitch {
    font-size: 1.25rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .price-currency {
    font-size: 1.5rem;
  }

  .steps-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step {
    flex-direction: row;
    text-align: left;
    gap: 0.5rem;
  }

  .step-num {
    display: none;
  }

  .trust-badges {
    flex-direction: column;
    gap: 0.375rem;
  }

  .badge-sep {
    display: none;
  }
}
