:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --input-bg: #ffffff;
  --border: #d2d2d7;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --focus-ring: rgba(0, 0, 0, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --input-bg: #2c2c2e;
    --border: #38383a;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --focus-ring: rgba(255, 255, 255, 0.2);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 88px 0 48px;
}

.availability {
  margin: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.domain-title {
  margin: 0 0 16px;
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.lead {
  margin: 0 auto;
  max-width: 48ch;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* Inquiry Card */
.inquiry-section {
  padding-bottom: 56px;
}

.inquiry-card {
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
}

.card-header {
  margin-bottom: 28px;
}

.card-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-header p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* Placeholder before third-party form is added */
.form-placeholder {
  background-color: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
}

.placeholder-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.placeholder-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Form styles for embedded Web3Forms / third-party form */
.inquiry-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.submit-btn {
  justify-self: start;
  margin-top: 4px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  background-color: #000000;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.submit-btn:hover:not(:disabled) {
  background-color: #2c2c2e;
}

.submit-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  color: #1d7a38;
}

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

.inquiry-success {
  text-align: center;
  padding: 24px 12px;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(29, 122, 56, 0.12);
  color: #1d7a38;
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

.inquiry-success h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.inquiry-success p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (prefers-color-scheme: dark) {
  .form-status--success {
    color: #30d158;
  }

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

  .success-icon {
    background-color: rgba(48, 209, 88, 0.15);
    color: #30d158;
  }
}

.hidden {
  display: none !important;
}

/* Benefits Section */
.benefits-section {
  padding: 0 0 56px;
}

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

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  margin-top: 2px;
}

.benefit-icon svg {
  width: 18px;
  height: 18px;
}

.benefit-content h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.benefit-content p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.email-sample {
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 0 36px;
  }

  .inquiry-card {
    padding: 24px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .submit-btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .h-captcha {
    min-width: 0;
    max-width: 100%;
    transform: scale(0.85);
    transform-origin: left top;
  }
}
