/* Cloudscalify — minimalist light theme */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --bg-muted: #ebf1ef;
  --ink: #1a2421;
  --muted: #5c6b66;
  --accent: #3d8b7a;
  --accent-hover: #327265;
  --accent-soft: #e4f2ee;
  --border: #d8e3df;
  --danger: #b42318;
  --success: #1f7a5c;
  --shadow: 0 18px 40px rgba(26, 36, 33, 0.06);
  --radius: 12px;
  --font-sans: "Noto Sans KR", "Pretendard", sans-serif;
  --font-display: "Noto Serif KR", "Noto Sans KR", serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, #6bb5a4 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
  left: 0;
}

main {
  overflow-x: clip;
}

/* Hero — brand-forward full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  background: #1a2421;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 36, 33, 0.25) 0%, rgba(26, 36, 33, 0.82) 70%, rgba(26, 36, 33, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.05;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-support {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

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

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

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.proof-strip {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg);
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 0.7s var(--ease) forwards;
}

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

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.course-grid,
.card-grid,
.blog-grid,
.tier-grid {
  display: grid;
  gap: 1.5rem;
}

.course-grid,
.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.media-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease);
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.media-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
}

.media-card p {
  flex: 1;
  font-size: 0.95rem;
}

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

.quote-stack {
  display: grid;
  gap: 1.75rem;
}

.quote {
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.quote p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote footer {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(61, 139, 122, 0.18), transparent 45%),
    var(--bg-muted);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

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

.page-hero p {
  max-width: 40rem;
}

.page-hero.with-image {
  padding: 0;
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  color: #fff;
  background: #1a2421;
  border-bottom: 0;
}

.page-hero.with-image .page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero.with-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-hero.with-image .container {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.page-hero.with-image h1,
.page-hero.with-image p {
  color: rgba(255, 255, 255, 0.92);
}

/* Pricing */
.tier {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--accent-soft), #fff 40%);
}

.tier h3 {
  font-size: 1.3rem;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

.tier .price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

.tier ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

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

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 1rem;
}

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

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: #fdecea;
  color: var(--danger);
}

.contact-aside {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

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

.contact-aside p {
  font-size: 0.95rem;
  word-break: break-word;
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--bg-soft);
}

/* Course detail */
.modules {
  display: grid;
  gap: 1rem;
}

.module {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.module h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
}

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

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

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

.faq details p {
  margin-top: 0.65rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.prose {
  max-width: 42rem;
}

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

.prose img.cover {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.25rem 0 1.75rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Reviews / case studies */
.case {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
}

.case h3 {
  font-size: 1.25rem;
}

.rating {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
  background: #15201d;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.inline-error.is-visible {
  display: block;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 960px) {
  .proof-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .footer-grid,
  .form-layout,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .site-nav a {
    padding: 0.65rem 0.4rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.35rem;
  }

  .proof-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .footer-grid,
  .form-layout,
  .two-col,
  .instructor,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }
}
