/* =====================================================================
   CYWELL Group — "Bright"
   Colorful modern · Soft gradients · Rounded cards · Reused 3D visuals
   ===================================================================== */

:root {
  --blue: #2563eb;
  --text: #1a2233;
  --text-soft: #5b6478;
  --bg: #ffffff;
  --bg-2: #f4f7ff;
  --line: rgba(20, 30, 60, 0.08);
  --shadow-card: 0 18px 44px rgba(30, 50, 110, 0.10);
  --shadow-hover: 0 30px 70px rgba(40, 70, 160, 0.18);
  --radius: 26px;
  --sans: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.cw-body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cw-shell { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.cw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.cw-nav-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.cw-brand { display: inline-flex; align-items: center; gap: 11px; }
.cw-brand-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}
.cw-brand-icon img { width: 30px; height: 30px; image-rendering: -webkit-optimize-contrast; }
.cw-brand-text { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.cw-brand-text b { font-weight: 800; }

.cw-nav-menu { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.cw-nav-menu a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: color 0.2s ease;
}
.cw-nav-menu a:hover { color: var(--blue); }

.cw-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cw-nav-cta:hover { transform: translateY(-1px); background: #0b1220; }

/* ---------- Hero ---------- */
.cw-hero {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 38.7vw, 780px);
  background: #f4f7ff;
}
.cw-hero-track,
.cw-hero-slide {
  position: absolute;
  inset: 0;
}
.cw-hero-slide {
  z-index: 0;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}
.cw-hero-slide.is-active {
  z-index: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.cw-hero-slide.is-transitioning {
  visibility: visible;
  pointer-events: auto;
}
.cw-hero-slide-banner { background: #edf3ff; }
.cw-hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cw-hero-slide-platform {
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, #eef4ff 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-2) 100%);
}
.cw-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.cw-blob-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: #7cc0ff; }
.cw-blob-2 { width: 360px; height: 360px; top: -80px; right: -60px; background: #c4b5fd; }
.cw-blob-3 { width: 320px; height: 320px; top: 120px; left: 45%; background: #99f6e4; opacity: 0.4; }

.cw-hero-inner { position: relative; z-index: 1; }
.cw-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 18px;
}
.cw-hero-title {
  font-size: clamp(40px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.cw-grad {
  background: linear-gradient(100deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cw-hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
}
.cw-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

.cw-carousel-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 30, 74, 0.34);
  box-shadow: 0 8px 24px rgba(15, 30, 74, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cw-carousel-arrow,
.cw-carousel-dot {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.cw-carousel-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.2s ease;
}
.cw-carousel-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.cw-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}
.cw-carousel-dot.is-active { width: 24px; background: #fff; }
.cw-carousel-arrow:focus-visible,
.cw-carousel-dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Buttons ---------- */
.cw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cw-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}
.cw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(37, 99, 235, 0.5); }
.cw-btn-soft {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 50, 110, 0.06);
}
.cw-btn-soft:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 50, 110, 0.12); }

/* ---------- Solutions ---------- */
.cw-solutions { padding: clamp(40px, 6vw, 76px) 0 clamp(20px, 4vw, 48px); }
.cw-section-head { margin-bottom: 32px; }
.cw-section-head-2 { margin-top: clamp(48px, 7vw, 84px); }
.cw-section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em; }
.cw-section-desc { margin-top: 8px; font-size: 1.0625rem; color: var(--text-soft); }

.cw-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cw-card-lg { grid-column: span 3; }
.cw-card { grid-column: span 2; }

/* ---------- Card ---------- */
.cw-card {
  --accent: var(--blue);
  --soft: #eef4ff;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cw-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--blue) 36%, transparent);
}
.cw-card.a-blue   { --accent: #2563eb; --soft: #e9f1ff; }
.cw-card.a-indigo { --accent: #6366f1; --soft: #eeeeff; }
.cw-card.a-cyan   { --accent: #0891b2; --soft: #e4f8fd; }
.cw-card.a-sky    { --accent: #0ea5e9; --soft: #e6f5ff; }
.cw-card.a-violet { --accent: #7c3aed; --soft: #f2ebff; }

.cw-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 16%, rgba(37, 99, 235, 0.09), transparent 38%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 70%);
}
.cw-media img { width: 100%; height: 100%; object-fit: contain; }

.cw-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #00d4ff));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent);
}

.cw-card-body {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
}
.cw-card-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.025em; }
.cw-card-lg .cw-card-title { font-size: 1.55rem; }
.cw-card-text { margin-top: 6px; font-size: 0.9844rem; color: var(--text-soft); }
.cw-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue);
  transition: gap 0.2s ease;
}
.cw-card:hover .cw-card-cta { gap: 10px; }
.cw-cta-arrow { font-size: 1.05em; line-height: 1; }

/* ---------- Business portfolio (premium info card) ---------- */
.cw-business { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 120px); }
.cw-portfolio {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: clamp(36px, 5vw, 60px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 46%, #eef5ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.14);
  box-shadow: 0 34px 88px rgba(16, 24, 40, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.cw-portfolio-orb {
  position: absolute;
  right: -120px; bottom: -150px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  opacity: 0.16;
  filter: blur(8px);
  pointer-events: none;
}
.cw-portfolio-copy { position: relative; z-index: 1; }
.cw-portfolio-eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.cw-portfolio-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
}
.cw-portfolio-desc {
  margin: 18px 0 28px;
  max-width: 420px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  color: var(--text-soft);
}
.cw-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
  transition: gap 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cw-portfolio-btn:hover { gap: 12px; transform: translateY(-2px); box-shadow: 0 22px 44px rgba(37, 99, 235, 0.42); }

/* right preview panel — real portfolio image in a window frame */
.cw-portfolio-preview {
  position: relative;
  z-index: 1;
  display: block;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cw-portfolio-preview:hover { transform: translateY(-4px); box-shadow: 0 34px 72px rgba(16, 24, 40, 0.18); }

.cw-preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-radius: 14px 14px 0 0;
  background: #eef1f6;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-bottom: none;
}
.cw-preview-dots { display: inline-flex; gap: 6px; }
.cw-preview-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e3; }
.cw-preview-dots i:nth-child(1) { background: #ff5f57; }
.cw-preview-dots i:nth-child(2) { background: #febc2e; }
.cw-preview-dots i:nth-child(3) { background: #28c840; }
.cw-preview-cap {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.cw-preview-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
}
.cw-preview-shot img { width: 100%; display: block; }
.cw-preview-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent 52%, rgba(16, 24, 40, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cw-portfolio-preview:hover .cw-preview-zoom { opacity: 1; }

/* ---------- Footer ---------- */
.cw-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.cw-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cw-footer-logo { height: 26px; width: auto; opacity: 0.9; }
.cw-footer-copy { font-size: 0.875rem; color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cw-nav-menu { display: none; }
  .cw-brand { margin-right: auto; }
  .cw-hero { height: clamp(460px, 72vw, 580px); }
  .cw-hero-banner { object-position: 88% center; }
  .cw-card-lg { grid-column: span 3; }
  .cw-card { grid-column: span 3; }
  .cw-portfolio { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .cw-nav-inner { height: 62px; }
  .cw-brand-text { font-size: 0.9375rem; }
  .cw-nav-cta { height: 38px; padding: 0 15px; }
  .cw-hero { height: clamp(480px, 118vw, 560px); }
  .cw-hero-slide-banner { display: flex; align-items: center; }
  .cw-hero-banner { height: min(100%, 102vw); object-position: right center; }
  .cw-hero-title { font-size: clamp(36px, 11vw, 50px); }
  .cw-hero-sub { padding: 0 18px; }
  .cw-hero-cta { margin-top: 28px; }
  .cw-btn { width: min(270px, calc(100vw - 48px)); height: 50px; }
  .cw-carousel-controls { bottom: 12px; }
  .cw-grid { grid-template-columns: 1fr; }
  .cw-card-lg, .cw-card { grid-column: span 1; }
  .cw-br { display: none; }
}

/* ---------- Seasonal badge ---------- */
.season-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 999;
  pointer-events: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 50, 110, 0.12);
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
