:root {
  --ink: #0d1526;
  --muted: #5a657d;
  --line: #e3e7f2;
  --surface: #ffffff;
  --bg: #f5f7ff;
  --brand: #4338ca;
  --brand-2: #7c3aed;
  --warm: #c2410c;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 34px -22px rgba(15, 23, 42, 0.32);
  --shadow-lg: 0 30px 80px -34px rgba(67, 56, 202, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 10% -12%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(820px 500px at 94% 0%, rgba(251, 146, 60, 0.16), transparent 60%),
    var(--bg);
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
  animation: rise 0.7s var(--ease) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(67, 56, 202, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4338ca;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(2.05rem, 5.3vw, 3.55rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.grad,
.grad-warm,
.grad-main,
.grad-school {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad {
  background-image: linear-gradient(100deg, #4338ca 10%, #7c3aed 60%, #a855f7 100%);
}

.grad-warm {
  background-image: linear-gradient(100deg, #c2410c 0%, #ea580c 45%, #d97706 100%);
}

.grad-main {
  background-image: linear-gradient(100deg, #1e3a8a 0%, #4338ca 55%, #6d28d9 100%);
}

.grad-school {
  background-image: linear-gradient(100deg, #0f766e 0%, #0d9488 50%, #059669 100%);
}

.title-dash {
  color: #94a3b8;
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.hero-copy {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -14px var(--chip-shadow);
}

.hero-chips span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-dot);
  box-shadow: 0 0 0 3px var(--chip-ring);
}

.chip--notebook {
  --chip-bg: #eef2ff;
  --chip-border: #c7d2fe;
  --chip-text: #3730a3;
  --chip-dot: #6366f1;
  --chip-ring: rgba(99, 102, 241, 0.18);
  --chip-shadow: rgba(99, 102, 241, 0.55);
}

.chip--qd {
  --chip-bg: #eff6ff;
  --chip-border: #bfdbfe;
  --chip-text: #1e40af;
  --chip-dot: #2563eb;
  --chip-ring: rgba(37, 99, 235, 0.16);
  --chip-shadow: rgba(37, 99, 235, 0.5);
}

.chip--cv {
  --chip-bg: #fff7ed;
  --chip-border: #fed7aa;
  --chip-text: #9a3412;
  --chip-dot: #ea580c;
  --chip-ring: rgba(234, 88, 12, 0.16);
  --chip-shadow: rgba(234, 88, 12, 0.5);
}

.chip--time {
  --chip-bg: #ecfdf5;
  --chip-border: #a7f3d0;
  --chip-text: #065f46;
  --chip-dot: #10b981;
  --chip-ring: rgba(16, 185, 129, 0.16);
  --chip-shadow: rgba(16, 185, 129, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-download svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.download-hint {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cards {
  max-width: 1080px;
  margin: 50px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.card {
  --accent: #4338ca;
  --accent-soft: #eef2ff;
  --accent-line: rgba(67, 56, 202, 0.2);
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: rise 0.7s var(--ease) both;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
}

.card--integrate {
  --accent: #4338ca;
  --accent-2: #0ea5e9;
  --accent-soft: #eef2ff;
  --accent-line: rgba(67, 56, 202, 0.22);
}

.card--twelve {
  --accent: #c2410c;
  --accent-2: #f59e0b;
  --accent-soft: #fff7ed;
  --accent-line: rgba(194, 65, 12, 0.22);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

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

.card-kicker {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.card-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.feature:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.feature:active {
  transform: scale(0.995);
}

.feature:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feature-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.feature-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.feature-arrow {
  flex: none;
  margin-top: 4px;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.feature:hover .feature-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.card-foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 24px 56px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.site-footer strong {
  color: var(--ink);
}

.prompt-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.prompt-dialog::backdrop {
  background: rgba(9, 13, 25, 0.58);
  backdrop-filter: blur(5px);
}

.prompt-dialog[open] {
  animation: pop 0.24s var(--ease) both;
}

.dialog-inner {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-eyebrow {
  margin: 0 0 4px;
  color: #4338ca;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.dialog-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dialog-close:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.dialog-desc {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.dialog-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

#promptText {
  width: 100%;
  min-height: 320px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faff;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#promptText:focus {
  border-color: #818cf8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.dialog-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.dialog-hint strong {
  color: #334155;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid #4338ca;
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  box-shadow: 0 12px 26px -14px rgba(67, 56, 202, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(67, 56, 202, 0.85);
}

.btn-ghost {
  color: #334155;
  background: #fff;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #f8fafc;
}

.copy-status {
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .hero {
    padding-top: 48px;
  }

  .card {
    padding: 22px;
  }

  .dialog-inner {
    padding: 20px;
  }

  #promptText {
    min-height: 260px;
  }
}

@media (max-width: 420px) {
  .feature {
    padding: 12px 10px;
  }

  .feature-num {
    width: 27px;
    height: 27px;
  }

  .hero-actions .btn-download {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
