/* ========================================
   Mila Burmova — Digital Business Card
   Mobile-first, blue & white theme
   ======================================== */

:root {
  --color-base: #0d1b2a;
  --color-surface: #142236;
  --color-surface-elevated: #1b2d45;
  --color-accent: #4a90e2;
  --color-accent-light: #6ba8f0;
  --color-accent-dark: #3578c7;
  --color-text-primary: #f0ece2;
  --color-text-secondary: #a0aab4;
  --color-text-muted: #6b7a88;
  --color-border: rgba(74, 144, 226, 0.2);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 480px;
  --transition: 0.2s ease;
}

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

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

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

/* ---- Card Container ---- */

.card-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---- Section Spacing ---- */

section {
  padding: 2rem 0;
}

section + section {
  border-top: 1px solid var(--color-border-subtle);
}

/* ---- Typography ---- */

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-accent);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ---- Hero Section ---- */

#hero {
  text-align: center;
  padding-top: 2.5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #1b2d45 0%, #0d1b2a 100%);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-name {
  margin-bottom: 0;
}

/* ---- Credential Badges ---- */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.25em 0.7em;
  white-space: nowrap;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(74, 144, 226, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-secondary:hover {
  background: rgba(74, 144, 226, 0.06);
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
}

.btn-ghost:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

.btn-linkedin {
  background: #0A66C2;
  color: #fff;
}

.btn-linkedin:hover {
  background: #004182;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-row {
  display: flex;
  gap: 0.5rem;
}

.wallet-row .btn {
  font-size: 0.8rem;
  padding: 0.65rem 0.75rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- Quick Links ---- */

#quick-links h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.link-card:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

.link-card svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* ---- Lead Capture ---- */

#lead-capture {
  text-align: center;
}

#lead-capture h2 {
  margin-bottom: 0.25rem;
}

.lead-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.form-input,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23a0aab4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.form-consent {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-consent a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.form-success.visible {
  display: block;
}

.form-success .checkmark {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.form-error {
  display: none;
  color: #e74c3c;
  font-size: 0.8rem;
  text-align: center;
}

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

/* ---- Credibility Strip ---- */

#proof {
  text-align: center;
}

#proof h2 {
  margin-bottom: 1rem;
}

.proof-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.proof-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.proof-marker {
  flex-shrink: 0;
  width: 3px;
  min-height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  align-self: stretch;
}

.proof-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sector-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.3em 0.8em;
}

/* ---- Footer ---- */

footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border-subtle);
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

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

.footer-text a:hover {
  text-decoration: underline;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.qr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  background: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 1rem;
  transition: border-color var(--transition);
}

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

.qr-container {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  display: inline-block;
}

.qr-container.hidden {
  display: none !important;
}

.qr-container canvas,
.qr-container img {
  display: block;
  margin: 0 auto;
}

.qr-label {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

/* ---- Animations ---- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* ---- Loading state ---- */

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Utilities ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---- Print ---- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .card-container {
    max-width: 100%;
  }

  .btn, .wallet-row, .qr-toggle, #lead-capture {
    display: none;
  }
}
