/* Cyber Secure Framework — warm pastel theme */
:root {
  --cream: #fdf7f2;
  --blush: #f7e8e0;
  --peach: #e8a598;
  --peach-deep: #d48474;
  --sage: #a8c5b8;
  --sage-deep: #7fa894;
  --lavender: #c9b8d9;
  --lavender-soft: #ebe3f2;
  --ink: #3d3a36;
  --ink-soft: #6b6560;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(92, 74, 66, 0.08);
  --shadow-soft: 0 4px 14px rgba(92, 74, 66, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
  --max: 1120px;
  --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 80% 50% at 10% -10%, #f3ddd4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, #dfeee6 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--lavender-soft) 0%, transparent 45%),
    var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.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% - 2rem, var(--max));
  margin-inline: auto;
}

.site-main {
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(253, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 165, 152, 0.25);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, var(--peach), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--sage), var(--blush));
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.nav-cta {
  background: var(--peach);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.nav-cta:hover {
  background: var(--peach-deep);
  color: var(--white) !important;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, transparent, var(--blush) 18%);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(232, 165, 152, 0.2);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

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

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

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

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

.footer-links a,
.footer-contact a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--peach-deep);
}

.footer-contact p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(92, 74, 66, 0.1);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.btn-soft {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 165, 152, 0.35);
}

.btn-sage {
  background: var(--sage);
  color: var(--ink);
}

.btn-sage:hover {
  color: var(--ink);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(232, 165, 152, 0.15);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.card h3 {
  font-size: 1.15rem;
}

.card h3 a {
  text-decoration: none;
  color: var(--ink);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.section {
  padding: 3.25rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  max-width: 18em;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 38em;
  margin-bottom: 1.75rem;
}

/* Soft blobs / illustrations */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.blob-peach {
  background: rgba(232, 165, 152, 0.35);
}

.blob-sage {
  background: rgba(168, 197, 184, 0.4);
}

.blob-lav {
  background: rgba(201, 184, 217, 0.35);
}

/* Home hero — editorial stack, not default dual-CTA */
.hero-editorial {
  position: relative;
  padding: 2rem 0 1rem;
  overflow: hidden;
}

.hero-editorial .blob {
  width: 220px;
  height: 220px;
}

.hero-editorial .blob:nth-child(1) {
  top: -40px;
  right: 8%;
  animation: floaty 8s ease-in-out infinite;
}

.hero-editorial .blob:nth-child(2) {
  bottom: 10%;
  left: -30px;
  width: 160px;
  height: 160px;
  animation: floaty 10s ease-in-out infinite reverse;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.35em;
  position: relative;
  z-index: 1;
}

.hero-brand span {
  display: block;
  color: var(--peach-deep);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: end;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-bottom: 1rem;
}

.hero-copy p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 28em;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  animation: rise-in 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(61, 58, 54, 0.25));
}

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

.hero-action {
  margin-top: 1.5rem;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 2.5rem 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--peach-deep);
}

.trust-item span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Benefits */
.benefit-list {
  display: grid;
  gap: 1.25rem;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(168, 197, 184, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--lavender-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.benefit h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.benefit p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Feature spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, var(--white), var(--lavender-soft));
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

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

.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  list-style: none;
  padding: 0;
}

.module-chips li {
  background: var(--white);
  border: 1px solid rgba(232, 165, 152, 0.35);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--sage);
}

.quote.alt {
  border-left-color: var(--peach);
}

.quote.muted {
  border-left-color: var(--lavender);
  background: rgba(255, 255, 255, 0.65);
}

.quote p {
  margin-bottom: 0.85rem;
}

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

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

/* Page heroes (inner) */
.page-hero {
  padding: 1rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 40em;
  font-size: 1.05rem;
}

.hero-media {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

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

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 165, 152, 0.2);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(180deg, #fff8f5, var(--white));
  border-color: var(--peach);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.price-amount {
  font-size: 1.8rem;
  font-family: var(--font-display);
  color: var(--peach-deep);
  margin-bottom: 0.75rem;
}

.price-amount small {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-card ul {
  flex: 1;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(92, 74, 66, 0.18);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: transparent;
}

.field-error {
  display: none;
  color: #b5544a;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

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

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b5544a;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status.success {
  display: block;
  background: #e5f3eb;
  color: #2f6b4f;
}

.form-status.error {
  display: block;
  background: #fce8e6;
  color: #8f3a32;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-aside {
  background: linear-gradient(160deg, var(--blush), var(--lavender-soft));
  border-radius: var(--radius);
  padding: 1.75rem;
}

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

.contact-aside p,
.contact-aside address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Legal */
.legal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

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

.legal-content th,
.legal-content td {
  border: 1px solid rgba(92, 74, 66, 0.12);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: var(--blush);
}

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

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Course detail */
.course-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.course-hero img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.instructor {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

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

.modules ol {
  padding-left: 1.2em;
}

.modules li {
  margin-bottom: 0.65rem;
}

.modules li strong {
  display: block;
  font-weight: 500;
}

/* Case study */
.case-study {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

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

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: 4rem;
  color: var(--peach);
  margin-bottom: 0.2em;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 200;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(61, 58, 54, 0.16);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(232, 165, 152, 0.35);
  animation: rise-in 0.45s ease both;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

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

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

/* Blog article */
.article-body {
  max-width: 720px;
}

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

.article-meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Custom topic page */
.topic-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.topic-band article {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid rgba(168, 197, 184, 0.3);
}

.topic-band h3 {
  font-size: 1.05rem;
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--blush), var(--lavender-soft));
  border-radius: var(--radius);
  margin-top: 2rem;
}

.cta-band h2 {
  font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-split,
  .spotlight,
  .course-hero,
  .contact-layout,
  .footer-grid,
  .grid-3,
  .pricing-grid,
  .topic-band,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(232, 165, 152, 0.25);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .trust-strip {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-banner {
    inset: auto 0.75rem 0.75rem;
  }
}
