:root {
  color-scheme: light;
  --bg: #f2f5ff;
  --bg-secondary: #e6ecff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #10b981;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, var(--bg) 50%, #dee8ff 100%);
  min-height: 100vh;
  padding: 48px 20px 80px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card {
  background: linear-gradient(140deg, #0f172a, #1e293b);
  color: #f9fafb;
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-card__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
}

.hero-card a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

.content {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel.result {
  position: relative;
}

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

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

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form__section h2,
.result__header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #f8fafc;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field small {
  color: var(--muted);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.expire {
  display: grid;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed rgba(37, 99, 235, 0.25);
}

.form__actions,
.result__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

button,
.ghost,
.primary {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
}

.primary:hover:not(:disabled),
.ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status {
  background: #ecfdf3;
  color: #065f46;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
}

.status.loading {
  background: #e0f2fe;
  color: #1d4ed8;
}

.result__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

textarea {
  resize: vertical;
}

@media (max-width: 720px) {
  body {
    padding: 32px 16px 60px;
  }

  .panel {
    padding: 20px;
  }
}
