:root {
  --ivory: #faf8f3;
  --champagne: #f4eee8;
  --gold: #c9a961;
  --gold-dark: #b8964f;
  --bronze: #8b7355;
  --ink: #1a1614;
  --ink-soft: #4a4540;
  --ink-medium: #6b6661;
  
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--champagne) 100%);
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  padding: 2.5rem 1.5rem;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-align: center;
  margin: 0;
}

.ornament {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.ornament-left::before {
  left: 0;
}

.ornament-right::after {
  right: 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 10rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--champagne) 50%, var(--ivory) 100%);
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.title-underline {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  position: relative;
  animation: expandWidth 1.2s ease-out;
}

.title-underline::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--ink-soft);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.agents-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

/* Divider */
.divider {
  padding: 3rem 0;
}

.divider-line {
  max-width: 600px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.divider-line::before,
.divider-line::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.divider-line::before {
  left: 50%;
  margin-left: -4px;
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(26, 22, 20, 0.06);
  backdrop-filter: blur(10px);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  text-align: center;
}

.section-ornament {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 2.5rem;
  position: relative;
}

.section-ornament::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.about-text {
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 1.75rem;
  text-align: center;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Connect Section */
.connect {
  padding: 5rem 0 6rem;
}

.connect-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(244, 238, 232, 0.4) 100%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 2px;
  box-shadow: 0 15px 50px rgba(26, 22, 20, 0.08);
}

.connect-text {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-button {
  position: relative;
  display: inline-block;
  padding: 1.125rem 3rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  border: 1px solid var(--gold-dark);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

.contact-button:active {
  transform: translateY(-1px);
}

/* Registry Section */
.registry {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, var(--champagne) 0%, var(--ivory) 100%);
}

.registry-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 2px;
  box-shadow: 0 15px 50px rgba(26, 22, 20, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
}

.registry-intro {
  font-size: 1.125rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.registry-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease-out;
}

.step-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.625rem;
  letter-spacing: 0.02em;
}

.required {
  color: var(--gold-dark);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input-large {
  font-size: 1.125rem;
  padding: 1rem 1.25rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-medium);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* Relation Chips */
.relation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.relation-chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(201, 169, 97, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.chip:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.relation-chips input[type="radio"]:checked + .chip {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--gold);
}

.checkbox-label {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  cursor: pointer;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.continue-button,
.submit-button {
  position: relative;
  display: inline-block;
  padding: 1.125rem 3rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ivory);
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
  width: 100%;
  max-width: 320px;
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.continue-button:hover:not(:disabled),
.submit-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

.continue-button:active:not(:disabled),
.submit-button:active:not(:disabled) {
  transform: translateY(-1px);
}

.continue-button:disabled,
.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.skip-button {
  background: transparent;
  border: none;
  color: var(--ink-medium);
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-button:hover {
  color: var(--gold-dark);
}

.back-button {
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--ink-soft);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-button:hover {
  border-color: var(--gold);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  text-align: center;
  display: none;
}

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

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Success State */
.success-state {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.success-state.active {
  display: block;
}

.success-icon {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.success-message {
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.reset-button {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.reset-button:hover {
  background: var(--gold);
  color: var(--ivory);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
}

.footer-divider {
  max-width: 1200px;
  margin: 0 auto 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-medium);
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .header {
    padding: 2rem 1rem;
  }

  .logo-wrapper {
    gap: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .ornament {
    width: 40px;
  }

  .hero {
    padding: 5rem 0 7rem;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .about-card,
  .connect-card {
    padding: 3rem 2rem;
  }

  .about-text,
  .connect-text {
    font-size: 1rem;
  }

  .contact-button {
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
  }

  .registry-card {
    padding: 3rem 2rem;
  }

  .registry-intro {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .relation-chips {
    gap: 0.625rem;
  }

  .chip {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .continue-button,
  .submit-button {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-card,
  .connect-card {
    padding: 2.5rem 1.5rem;
  }

  .contact-button {
    padding: 0.875rem 2rem;
  }
}

.optional { font-weight: 300; opacity: 0.65; font-size: 0.85em; }

.form-step { display: none; }
.form-step.active { display: block; }
