@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f3ef;
  --bg-alt: #efe8df;
  --text: #131212;
  --muted: #5c5a57;
  --accent: #ff6b35;
  --accent-dark: #d35428;
  --accent-2: #1b6ca8;
  --card: #ffffff;
  --stroke: rgba(19, 18, 18, 0.1);
  --shadow: 0 24px 60px rgba(19, 18, 18, 0.12);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #fdebd3 0%, transparent 50%),
    radial-gradient(circle at 20% 40%, #dce9f5 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 16px;
  backdrop-filter: blur(8px);
  background: rgba(246, 243, 239, 0.8);
  border-radius: 999px;
  padding: 14px 24px;
  border: 1px solid var(--stroke);
  z-index: 10;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

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

.hero-content h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 18px 0;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 480px;
}

.pill {
  background: var(--bg-alt);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary {
  background: #fff;
  color: var(--accent-dark);
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-stats {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 12px 16px;
  border-radius: 16px;
  min-width: 110px;
  box-shadow: var(--shadow);
}

.stat-card span {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-card small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.hero-card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: float 6s ease-in-out infinite;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  background: #e9f4ee;
  color: #216e42;
  padding: 4px 8px;
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.ghost {
  background: #f3f4f6;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.live-test {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.test-panel {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.test-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.test-header h3 {
  font-size: 1.4rem;
}

.test-header p {
  color: var(--muted);
  margin-top: 6px;
}

.question-list {
  display: grid;
  gap: 16px;
}

.question-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 18px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: #ece7e1;
  color: #5a524c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.question-prompt {
  font-weight: 600;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #fff;
}

.option input {
  accent-color: var(--accent);
}

.test-panel textarea,
.test-panel input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.test-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.test-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #f7f4f1;
  color: var(--muted);
}

.notice.error {
  background: #fff0f0;
  color: #a02323;
  border-color: rgba(160, 35, 35, 0.2);
}

.notice.success {
  background: #eaf7ef;
  color: #215b37;
  border-color: rgba(33, 91, 55, 0.2);
}

.result-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 16px;
}

.result-score {
  margin-top: 6px;
  color: var(--muted);
}

.level {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fef3e9;
  color: var(--accent-dark);
  font-weight: 600;
}

.result-breakdown {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  color: var(--muted);
  font-size: 0.9rem;
}

.result-breakdown div {
  display: flex;
  justify-content: space-between;
}

.certificate-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.certificate-form input {
  flex: 1;
  min-width: 220px;
}

.cert-links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-links a {
  color: var(--accent-dark);
  font-weight: 600;
}

.grid-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: start;
}

.account-panel {
  background: linear-gradient(145deg, #fffaf2 0%, #f4efe7 100%);
  border: 1px solid var(--stroke);
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.account-benefits {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.account-benefits li {
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.account-benefits li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 8px;
}

.account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-forms {
  display: grid;
  gap: 18px;
}

.account-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.account-card h3 {
  margin-bottom: 6px;
}

.account-card input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.account-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-header p {
  color: var(--muted);
  max-width: 560px;
  margin-top: 8px;
}

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

.tile {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  min-height: 160px;
  animation: reveal 0.6s ease forwards;
  opacity: 0;
}

.tile.accent {
  border-color: rgba(27, 108, 168, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #eef5fb 100%);
}

.tile h3 {
  margin-bottom: 12px;
}

.tile p {
  color: var(--muted);
  line-height: 1.5;
}

.certificate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
  background: var(--bg-alt);
  border-radius: 32px;
  padding: 32px;
}

.certificate-copy p {
  color: var(--muted);
  margin: 12px 0 18px;
  line-height: 1.6;
}

.certificate-preview {
  display: flex;
  justify-content: center;
}

.certificate-frame {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--stroke);
  min-height: 220px;
  max-width: 360px;
  box-shadow: var(--shadow);
}

.frame-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
}

.frame-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.price-card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card.highlight {
  border-color: rgba(255, 107, 53, 0.35);
  background: linear-gradient(150deg, #fff 0%, #fff3eb 100%);
}

.price {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
}

.price-card ul {
  list-style: none;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.verify {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.verify-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.verify input {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 1rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--stroke);
  padding-top: 24px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.certificate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card {
    animation: none;
  }

  .certificate {
    padding: 24px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .tile {
    animation: none;
  }
}
