/* Evenipe Agile Studio — cool slate workshop theme */
@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@500;700;800&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --ink: #1a2433;
  --ink-soft: #4a5568;
  --muted: #6b7a8d;
  --paper: #eef2f6;
  --paper-2: #e2e8f0;
  --surface: #f7f9fc;
  --accent: #d94a2b;
  --accent-deep: #b53a20;
  --teal: #1a6b7a;
  --teal-soft: #c5dde3;
  --line: rgba(26, 36, 51, 0.12);
  --shadow: 0 18px 40px rgba(26, 36, 51, 0.08);
  --radius: 4px;
  --max: 1120px;
  --font-display: 'Hahmlet', 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(197, 221, 227, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(217, 74, 43, 0.08), transparent 45%),
    linear-gradient(180deg, #f4f7fa 0%, var(--paper) 40%, #e8eef4 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 249, 252, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 22, 32, 0.88) 0%, rgba(15, 22, 32, 0.55) 48%, rgba(15, 22, 32, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 22, 32, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 36rem;
  animation: riseIn 0.9s ease both;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.04em;
}

.hero-brand em {
  font-style: normal;
  color: #ffb39f;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  max-width: 22ch;
}

.section-lead {
  max-width: 38rem;
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.bleed-photo {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.92) contrast(1.05);
}

/* —— Proof / numbers —— */
.proof-band {
  background: var(--ink);
  color: #fff;
  padding: 2.25rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #ffb39f;
  margin-bottom: 0.25rem;
}

.proof-grid span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 600px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Feature list (not cards) —— */
.feature-list {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: riseIn 0.7s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.05s; }
.feature-item:nth-child(2) { animation-delay: 0.15s; }
.feature-item:nth-child(3) { animation-delay: 0.25s; }

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

/* —— Course preview —— */
.course-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

@media (max-width: 800px) {
  .course-row {
    grid-template-columns: 1fr;
  }
}

.course-row img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.course-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-meta .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.price-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
}

.price-note strong {
  color: var(--ink);
  font-size: 1.25rem;
  font-family: var(--font-display);
}

/* —— Quote / testimonials —— */
.quote-block {
  margin: 0;
  padding: 2rem 0 2rem 1.5rem;
  border-left: 3px solid var(--accent);
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.quote-block footer {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

.testimonial-stack {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.testimonial {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.testimonial:last-child {
  border-bottom: none;
}

.testimonial .stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.testimonial cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

/* —— Pricing —— */
.pricing-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.pricing-tier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.pricing-tier.featured {
  background: linear-gradient(90deg, rgba(217, 74, 43, 0.06), transparent);
  margin: 0 -1rem;
  padding-inline: 1rem;
}

.pricing-tier h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.pricing-tier .amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.pricing-tier ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
}

.pricing-tier li {
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}

.pricing-tier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

@media (max-width: 600px) {
  .pricing-tier {
    grid-template-columns: 1fr;
  }
}

/* —— Forms —— */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(217, 74, 43, 0.35);
  border-color: var(--accent);
}

.field-error {
  color: var(--accent-deep);
  font-size: 0.85rem;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--accent);
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e4f3ef;
  color: #1a5c4a;
}

.form-status.is-error {
  display: block;
  background: #fdecea;
  color: #8f2a1a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-aside {
  padding-top: 0.5rem;
}

.contact-aside h2 {
  font-size: 1.25rem;
}

.contact-aside address {
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* —— Blog / course grids —— */
.listing {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.listing-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.listing-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
}

.listing-item h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.listing-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.listing-item h2 a:hover {
  color: var(--accent);
}

.listing-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .listing-item {
    grid-template-columns: 1fr;
  }

  .listing-item img {
    height: 200px;
  }
}

/* —— Article —— */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  max-width: 18ch;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2.5rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.25rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.modules {
  margin: 2rem 0;
  counter-reset: mod;
}

.module {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: mod;
}

.module h3::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--accent);
  margin-right: 0.75rem;
  font-size: 0.95em;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin-top: 0.75rem;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 1.25rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
}

.cookie-inner a {
  color: #ffb39f;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-accept {
  background: var(--accent);
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffb39f;
}

.footer-nav {
  display: grid;
  gap: 0.45rem;
}

.footer-nav strong {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Misc —— */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
}

.case-study {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case-study h3 {
  font-size: 1.35rem;
}

.inline-error {
  background: #fdecea;
  color: #8f2a1a;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, #154e5a 100%);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 2rem;
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
}

.avatar-sm {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
