/* Aladatl — soft coastal study theme */
:root {
  --ink: #142428;
  --ink-soft: #3a4f55;
  --teal: #1f6b66;
  --teal-deep: #154f4b;
  --foam: #e7f3f1;
  --mist: #f3f7f6;
  --sand: #d4a574;
  --sand-deep: #b8844f;
  --line: rgba(20, 36, 40, 0.12);
  --white: #ffffff;
  --danger: #9b3b32;
  --ok: #1f6b4a;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(20, 36, 40, 0.08);
  --font-display: "Gowun Batang", "Noto Serif KR", serif;
  --font-body: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 107, 102, 0.14), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 165, 116, 0.18), transparent 55%),
    linear-gradient(180deg, #eef5f4 0%, var(--mist) 35%, #f7faf9 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e6;
  color: var(--danger);
  border-bottom: 1px solid #e7c4bf;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 246, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.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: 50% 40% 55% 45%;
  background: linear-gradient(135deg, var(--teal) 0%, #2a8f88 50%, var(--sand) 100%);
  box-shadow: 0 0 0 3px rgba(31, 107, 102, 0.15);
  animation: brand-breathe 5s ease-in-out infinite;
}

@keyframes brand-breathe {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.06) rotate(4deg);
  }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

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

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
}

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

.nav-list a:hover {
  color: var(--teal-deep);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

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

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

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

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(31, 107, 102, 0.45);
  color: var(--teal-deep);
}

.btn-secondary:hover {
  background: rgba(31, 107, 102, 0.08);
  color: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

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

/* Hero — full bleed brand plane */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--white);
  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: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 36, 40, 0.25) 0%, rgba(20, 36, 40, 0.55) 45%, rgba(20, 36, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(21, 79, 75, 0.45), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  animation: brand-in 1s ease both;
}

.hero h1,
.hero-title {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 700;
  max-width: 18em;
  margin: 0 0 0.75rem;
  color: var(--white);
  animation: brand-in 1s ease 0.12s both;
}

.hero-support {
  max-width: 32rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  animation: brand-in 1s ease 0.22s both;
}

.hero .btn-row {
  animation: brand-in 1s ease 0.32s both;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page hero (inner pages) — still full bleed */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(20, 36, 40, 0.2), rgba(20, 36, 40, 0.82));
}

.page-hero .hero-content {
  padding: 4rem 1.25rem 2.5rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16em;
}

.page-hero .hero-support {
  max-width: 36rem;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Proof strip */
.proof-strip {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.75rem 0;
}

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

.proof-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  display: block;
  color: var(--white);
}

.proof-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Split / content blocks */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

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

.stack > * + * {
  margin-top: 1rem;
}

/* Course / media rows — not cards by default; interaction containers get light surface */
.media-row {
  display: grid;
  gap: 1.75rem;
}

.course-list {
  display: grid;
  gap: 2rem;
}

.course-item {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.course-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.course-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

.course-meta {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.course-item h3 {
  margin-bottom: 0.4rem;
}

.course-item h3 a {
  text-decoration: none;
  color: inherit;
}

.course-item h3 a:hover {
  color: var(--teal);
}

/* Testimonials */
.quote-list {
  display: grid;
  gap: 2rem;
}

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

.quote p {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.quote-long {
  max-width: 40rem;
}

.stars {
  color: var(--sand-deep);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-tier {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-tier.is-featured {
  border-color: rgba(31, 107, 102, 0.45);
  box-shadow: var(--shadow);
  background: rgba(231, 243, 241, 0.95);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}

.price-amount {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--teal-deep);
}

.price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.price-tier ul {
  margin: 0.5rem 0 1rem;
  flex: 1;
}

.price-tier .btn {
  width: 100%;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.25rem;
}

.blog-item {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.blog-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2rem;
}

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

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.25rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
}

.faq-item p {
  color: var(--ink-soft);
  padding-bottom: 0.85rem;
}

/* Modules */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.module-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

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

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

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

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: #e5f4ec;
  color: var(--ok);
}

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

.address-block {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.address-block h2 {
  font-size: 1.25rem;
}

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

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

.legal-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
  background: rgba(255, 255, 255, 0.7);
}

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

.cookie-table th {
  background: var(--foam);
  font-weight: 600;
}

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--teal);
  margin: 0;
  line-height: 1;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li + li {
  margin-top: 0.4rem;
}

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

.footer-col a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.65rem;
}

.footer-copy {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie-banner-inner {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}

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

/* Outcomes */
.outcome-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  padding-left: 1.35rem;
  position: relative;
}

.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-deep), #1f6b66 55%, #2a7a62);
  color: var(--white);
  padding: 3.5rem 0;
  margin-top: 1rem;
}

.cta-band h2 {
  color: var(--white);
}

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

.cta-band .btn-primary {
  background: var(--white);
  color: var(--teal-deep);
}

.cta-band .btn-primary:hover {
  background: var(--foam);
  color: var(--teal-deep);
}

.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* Case study */
.case-study {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.case-study + .case-study {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .split,
  .split-reverse,
  .course-item,
  .blog-item,
  .contact-layout,
  .pricing-grid,
  .footer-cols,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(243, 247, 246, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
  }

  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .header-inner {
    position: relative;
  }

  .instructor {
    grid-template-columns: 88px 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.25rem 0;
  }

  .hero {
    min-height: 78vh;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
