/* ============================================================
   라이드문(주) - style.css
   Main brand theme
   ============================================================ */

:root {
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --page-gutter: 5%;

  /* Brand colors */
  --navy: #03a1fc;
  --navy-mid: #027dcc;
  --navy-light: #4fc0ff;

  /* Accent colors */
  --accent: #03a1fc;
  --accent-light: #58c5ff;
  --accent-glow: #c8ecff;

  /* ── 중립 컬러 (그대로 유지) ── */
  --white: #ffffff;
  --off-white: #f4f6fa;
  --text-dark: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --section-bg: #f9fafb;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  background: #fff;
  color: var(--text-dark);
  overflow-x: hidden;
}

body.ai-chat-open {
  overflow: hidden;
}

img,
iframe,
video,
canvas,
svg {
  max-width: 100%;
}

section,
nav,
footer {
  width: 100%;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(3, 161, 252, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.logo {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* 로고 이미지 컨테이너 */
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-links li {
  position: relative;
}

.nav-links>li>a {
  display: block;
  padding: 0 18px;
  height: 64px;
  line-height: 64px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links>li>a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dropdown {
  position: absolute;
  top: 64px;
  left: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.nav-links li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
#home {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 64px 5% 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(3, 161, 252, 0.25) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-family-base);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 28px;
  word-break: keep-all;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffe0c0, #fff4e8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION BASE
   ============================================================ */
section {
  padding: 90px var(--page-gutter);
}

.section-label {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.company-award-title {
  margin-bottom: 18px;
  color: #0341fc;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.section-divider {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-glow), var(--accent));
  margin-bottom: 40px;
}

.section-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.section-title {
  font-family: var(--font-family-base);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 16px;
  word-break: keep-all;
}

.section-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
  max-width: 680px;
}

.section-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
  max-width: 680px;
}

.section-header {
  margin-bottom: 52px;
}

/* ============================================================
   회사소개 – CEO
   ============================================================ */
#about {
  background: var(--off-white);
  padding: 0;
}

.about-vision-image {
  display: block;
  width: 100%;
  height: auto;
}

.ceo-section-header {
  max-width: 1100px;
  margin: 0 0 52px;
}

.ceo-message-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  max-width: 1100px;
  margin: 0;
}

.ceo-profile {
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.ceo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.ceo-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ceo-role {
  font-size: 13px;
  color: var(--text-light);
}

.ceo-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.95;
}

#ceo-message {
  background: #f0f0f0;
  padding-top: 70px;
}

.company-interview {
  max-width: 1100px;
  margin: 0;
}

.interview-lead {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 30px;
  border-left: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.ai-chat-cta {
  margin-top: 4px;
  min-height: 260px;
}

.ai-chat-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ai-chat-open-btn {
  margin-top: 0;
  box-sizing: border-box;
  min-width: 280px;
  padding: 18px 42px;
  font-size: 17px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ai-chat-cta .ai-chat-open-btn,
button#openAiChatBtn.ai-chat-open-btn {
  width: 320px;
  height: 130px;
  min-width: 0;
  font-size: 22px;
}

.interview-lead strong,
.interview-lead span {
  display: block;
}

.interview-lead strong {
  color: var(--text-dark);
  font-size: 21px;
  line-height: 1.35;
}

.interview-lead span {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.interview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.interview-item {
  padding: 24px 24px 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.interview-item h3 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.45;
  word-break: keep-all;
}

.interview-item p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.interview-item p + p {
  margin-top: 12px;
}

/* ============================================================
   기업AI
   ============================================================ */
#bizai {
  background: #fff;
}

.bizai-change-intro,
.bizai-change-conclusion {
  max-width: 980px;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  background: #f8fafc;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.bizai-change-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.bizai-change-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.bizai-change-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.bizai-change-num {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(3, 161, 252, 0.1);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.bizai-change-card h3 {
  position: relative;
  margin-bottom: 13px;
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.45;
  word-break: keep-all;
}

.bizai-change-card p {
  position: relative;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.bizai-change-conclusion {
  margin-top: 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  border-left-color: var(--accent-glow);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.step-num {
  font-size: 52px;
  font-weight: 900;
  color: rgba(3, 161, 252, 0.08);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(3, 161, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.step-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.85;
}

.infographic-wrap {
  margin-top: 50px;
  background: var(--navy);
  border-radius: 16px;
  padding: 40px;
  color: #fff;
}

.infographic-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.infographic-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: center;
}

.info-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.info-box-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-glow);
  margin-bottom: 10px;
}

.info-box-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-box-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.info-arrow {
  text-align: center;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
}

.bizai-summary {
  margin-top: 42px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.bizai-summary-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.bizai-summary h3 {
  margin-bottom: 14px;
  color: var(--text-dark);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  word-break: keep-all;
}

.bizai-summary p {
  max-width: 940px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.bizai-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.bizai-summary-item {
  padding: 18px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(3, 161, 252, 0.14);
}

.bizai-summary-item strong,
.bizai-summary-item span {
  display: block;
}

.bizai-summary-item strong {
  margin-bottom: 9px;
  color: var(--text-dark);
  font-size: 15px;
}

.bizai-summary-item span {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}

/* ============================================================
   병원AI
   ============================================================ */
#hospitalai {
  background: var(--off-white);
}

.hospital-intro {
  max-width: 980px;
  margin: 0 0 30px;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.hospital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hospital-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 32px 26px;
  transition: border-color 0.2s, transform 0.2s;
}

.hospital-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.h-stage {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(3, 161, 252, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.h-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.h-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.85;
}

.h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.h-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

/* ============================================================
   로봇
   ============================================================ */
#robot {
  background: #fff;
}

.robot-contract-status {
  margin: 8px 0 14px;
  color: #03a1fc;
  font-size: 18px;
  font-weight: 700;
}

.robot-showcase {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 0.75fr);
  gap: 24px;
  align-items: center;
}

.robot-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.robot-visual img {
  display: block;
  width: 100%;
  max-width: 430px;
  max-height: 650px;
  object-fit: contain;
}

.robot-product-name {
  margin-top: 14px;
  color: #03a1fc;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.robot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 20px;
  justify-content: start;
  width: 100%;
  max-width: 700px;
}

.robot-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
  width: 100%;
}

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

.robot-header {
  background: var(--navy);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.robot-icon {
  font-size: 30px;
}

.robot-header-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.robot-header-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin-top: 3px;
}

.robot-body {
  padding: 18px 20px;
}

.robot-feat {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: flex-start;
}

.robot-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.robot-feat-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

.robot-gallery {
  background: var(--section-bg);
  padding-top: 80px;
}

.robot-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.robot-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.robot-gallery-item.wide {
  grid-column: span 2;
}

.robot-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.robot-gallery-item img.robot-gallery-contain {
  object-fit: contain;
  padding: 12px 12px 42px;
}

.robot-gallery-item:hover img {
  transform: scale(1.04);
}

.robot-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

/* ============================================================
   플랫폼 사업
   ============================================================ */
#platform {
  background: #F9FAFB;
  color: var(--text-dark);
  padding: 64px 0 0;
}

.platform-slider-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.platform-image-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  border: 0;
  box-shadow: none;
}

.platform-slide-title {
  margin: 0 calc(var(--page-gutter) + 2px) 24px;
  color: #b8bab9;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.platform-image-swiper .swiper-wrapper {
  align-items: flex-start;
}

.platform-image-slide {
  height: auto;
  background: #fff;
}

.platform-image-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.platform-swiper-button {
  width: 44px;
  height: 44px;
  color: var(--accent);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.platform-swiper-button::after {
  font-size: 18px;
  font-weight: 700;
}

.platform-pagination {
  display: none;
}

.platform-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(15, 23, 42, 0.35);
  opacity: 1;
}

.platform-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
}

/* ============================================================
   오시는 길
   ============================================================ */
#map-section {
  background: var(--section-bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 32px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.location-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 22px;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 15px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-frame {
  width: 100%;
  height: clamp(200px, 28vw, 300px);
  border: none;
  display: block;
}

.location-addr {
  padding: 14px 22px;
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--text-mid);
  line-height: 1.6;
  word-break: keep-all;
}

/* ============================================================
   고객 문의
   ============================================================ */
/* ============================================================
   FOOTER
   ============================================================ */
.certificate-gallery {
  padding: 70px var(--page-gutter);
  background: #fff;
}

.certificate-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: start;
}

.certificate-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .certificate-gallery {
    padding: 50px var(--page-gutter);
  }

  .certificate-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* AI chat modal */
.ai-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ai-chat-modal[aria-hidden="false"] {
  display: flex;
}

.ai-chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.ai-chat-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.ai-chat-modal-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(3, 161, 252, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ai-chat-modal-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  color: #0f172a;
}

.ai-chat-modal-desc {
  margin-bottom: 16px;
  color: var(--text-light);
  line-height: 1.7;
}

.ai-chat-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

#userPrompt {
  width: 100%;
  min-height: 140px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  font: inherit;
  resize: vertical;
  outline: none;
}

#userPrompt:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(3, 161, 252, 0.12);
}

.ai-chat-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-chat-send-btn,
.ai-chat-cancel-btn,
.ai-chat-open-btn {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ai-chat-open-btn,
.ai-chat-send-btn {
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--navy-mid));
  color: #fff;
  box-shadow: 0 14px 24px rgba(3, 161, 252, 0.22);
}

.ai-chat-open-btn {
  min-width: 240px;
  padding: 16px 36px;
  font-size: 16px;
}

.ai-chat-cancel-btn {
  padding: 14px 18px;
  background: #e5e7eb;
  color: #111827;
}

.ai-chat-status {
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--text-light);
  font-size: 14px;
}

.ai-chat-status.is-loading {
  color: var(--navy-mid);
  font-weight: 600;
}

.ai-chat-answer {
  min-height: 72px;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  color: #111827;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow: auto;
}

.ai-chat-answer.is-streaming {
  border: 1px solid rgba(3, 161, 252, 0.18);
}

.ai-chat-modal-panel.is-streaming {
  box-shadow: 0 30px 80px rgba(3, 161, 252, 0.18);
}

.award-image-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.award-image-modal[aria-hidden="false"] {
  display: flex;
}

.award-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.award-image-modal-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  width: min(1120px, 100%);
  max-height: 88vh;
  overflow: auto;
}

.award-image-modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.award-image-modal-panel h3 {
  margin: 0 44px 14px 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.award-image-modal-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.award-image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .award-image-modal-group {
    flex-direction: column;
    justify-content: flex-start;
  }

  .award-image-modal-panel {
    width: 100%;
  }

  .ai-chat-modal {
    padding: 14px;
  }

  .ai-chat-modal-panel {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .ai-chat-actions {
    flex-direction: column;
  }

  .ai-chat-open-btn,
  .ai-chat-send-btn,
  .ai-chat-cancel-btn {
    width: 100%;
  }

  .ai-chat-cta .ai-chat-open-btn {
    width: min(320px, 100%);
    height: auto;
    min-height: 64px;
    padding: 14px 20px;
  }

  .ai-chat-open-btn {
    height: auto;
    min-height: 64px;
    padding: 14px 24px;
    font-size: 17px;
  }
}

footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 40px var(--page-gutter);
  font-size: 13px;
  line-height: 1.8;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo-image {
  display: block;
  width: 128px;
  height: auto;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 20px;
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE – 태블릿 (768px ~ 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1180px) {
  :root {
    --page-gutter: clamp(24px, 4vw, 44px);
  }

  section {
    padding-top: clamp(64px, 8vw, 82px);
    padding-bottom: clamp(64px, 8vw, 82px);
  }

  nav {
    padding: 0 var(--page-gutter);
  }

  .logo {
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-image {
    width: clamp(180px, 24vw, 240px);
  }

  .nav-links {
    flex-shrink: 0;
  }

  .nav-links>li>a {
    padding: 0 clamp(10px, 1.35vw, 15px);
    font-size: 13px;
  }

  .section-label {
    font-size: clamp(30px, 4.4vw, 40px);
  }

  .section-title,
  .section-desc,
  .interview-lead span,
  .interview-item h3,
  .interview-item p,
  .bizai-change-intro,
  .bizai-change-conclusion,
  .bizai-change-card h3,
  .bizai-change-card p,
  .hospital-intro,
  .location-addr {
    overflow-wrap: break-word;
  }

  .interview-lead {
    grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
    padding: clamp(22px, 3vw, 28px);
  }

  .ai-chat-cta {
    min-height: auto;
    margin: 18px 0 8px;
  }

  .ai-chat-cta .ai-chat-open-btn,
  button#openAiChatBtn.ai-chat-open-btn {
    width: min(320px, 100%);
  }

  .steps-grid,
  .hospital-grid,
  .bizai-change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robot-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
    align-items: start;
  }

  .robot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robot-visual img {
    max-height: min(560px, 68vh);
  }

  .robot-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robot-gallery-item.wide {
    grid-column: span 2;
  }

  .certificate-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .nav-hamburger {
    display: flex;
    z-index: 1100;
  }

  .nav-hamburger span {
    background: #111827;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    padding: 12px 0 20px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    z-index: 1000;
  }

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

  .nav-links>li>a {
    height: auto;
    padding: 14px var(--page-gutter);
    line-height: 1.4;
    font-size: 15px;
  }

  .dropdown {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 4px 0;
  }

  .dropdown.open {
    display: block;
  }

  .dropdown a {
    padding: 10px calc(var(--page-gutter) + 16px);
  }

  .interview-lead,
  .location-grid,
  .robot-showcase {
    grid-template-columns: 1fr;
  }

  .robot-grid {
    max-width: none;
  }
}

@media (max-width: 1024px) {

  .steps-grid,
  .hospital-grid,
  .bizai-change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bizai-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .infographic-row {
    grid-template-columns: 1fr 32px 1fr 32px 1fr;
  }

  .ceo-message-wrap {
    gap: 36px;
  }

  .interview-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE – 모바일 (768px 이하)
   ============================================================ */
@media (max-width: 768px) {
  nav {
    padding: 0 5%;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1100;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(3, 161, 252, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 0 20px;
    z-index: 1000;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
  }

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

  .nav-links>li>a {
    padding: 13px 24px;
    height: auto;
    line-height: 1.4;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
  }

  .nav-links>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    display: none;
    padding: 4px 0;
  }

  .dropdown.open {
    display: block;
  }

  .dropdown a {
    padding: 10px 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
  }

  section {
    padding: 60px var(--page-gutter);
  }

  .hero-sub {
    font-size: 14px;
  }

  .ceo-message-wrap,
  .robot-grid,
  .steps-grid,
  .hospital-grid,
  .bizai-change-grid,
  .robot-gallery-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .robot-gallery-item.wide {
    grid-column: span 1;
  }

  .infographic-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .info-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* ============================================================
   RESPONSIVE – 소형 모바일 (480px 이하)
   ============================================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .infographic-wrap {
    padding: 24px 16px;
  }

  .interview-lead {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .interview-item {
    padding: 22px 20px;
  }

  .bizai-change-intro,
  .bizai-change-conclusion,
  .bizai-change-card {
    padding: 22px 20px;
  }

  .bizai-summary {
    padding: 24px 18px;
  }

  .bizai-summary-grid {
    grid-template-columns: 1fr;
  }

  .ceo-message-wrap {
    gap: 28px;
  }

  .step-card,
  .hospital-card {
    padding: 24px 20px;
  }
}

/* Home banner overlay */
nav {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  transform: translateY(0);
  transition: transform 0.28s ease, opacity 0.28s ease;
  will-change: transform, opacity;
}

nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.logo,
.nav-links>li>a {
  color: #111827;
  text-shadow: none;
}

.nav-links>li>a:hover,
.dropdown a:hover {
  color: #000;
}

.logo-mark {
  background: rgba(255, 255, 255, 0.22);
}

.dropdown a {
  color: #111827;
  text-shadow: none;
}

#home {
  background: #111827;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  background-position: center;
  background-size: cover;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.16) 38%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-bg {
  z-index: 1;
}

.hero-grid {
  opacity: 0.42;
}

.hero-pagination {
  bottom: 28px !important;
  z-index: 3;
}

.hero-pagination .swiper-pagination-bullet {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 1;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* Genspark banner images already include their own text. */
#home {
  display: block;
  min-height: 0;
  padding: 64px 0 0;
  overflow: visible;
  background: #f4f8fb;
}

.hero-slider {
  position: relative;
  inset: auto;
  top: auto;
  bottom: auto;
  width: 100%;
  height: auto;
}

.hero-slide {
  height: auto;
  background: none !important;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.home-banner-swiper .swiper-wrapper {
  align-items: flex-start;
}

.home-banner-swiper .swiper-slide {
  height: auto;
}

.hero-slide {
  background-size: auto;
  background-repeat: no-repeat;
  background-color: #f4f8fb;
}

.hero-slide::before,
.hero-bg,
.hero-content {
  display: none;
}

.home-menu {
  padding: 64px var(--page-gutter) 76px;
  background: #fff;
}

.home-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.home-menu-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.home-menu-card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.home-menu-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
}

.home-menu-card strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
}

.home-menu-card span:last-child {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.92);
  }

  .nav-hamburger span {
    background: #111827;
  }

  .hero-pagination {
    bottom: 18px !important;
  }

  .home-menu {
    padding: 42px var(--page-gutter) 56px;
  }

  .home-menu-inner {
    grid-template-columns: 1fr;
  }

  .home-menu-card {
    min-height: 156px;
    padding: 22px;
  }
}

/* Floating top button */
.top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: #6b7cd1;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(107, 124, 209, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button:hover {
  box-shadow: 0 18px 34px rgba(107, 124, 209, 0.38);
}

@media (max-width: 768px) {
  .top-button {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
    font-size: 14px;
  }
}

/* RIDEMOON wide logo */
.logo {
  min-width: 220px;
}

.logo-image {
  display: block;
  width: min(260px, 30vw);
  height: 42px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo {
    min-width: 0;
  }

  .logo-image {
    width: 190px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    width: 160px;
  }
}



@media (max-width: 768px) {
  .robot-contract-status {
  margin: 8px 0 14px;
  color: #03a1fc;
  font-size: 18px;
  font-weight: 700;
}

.robot-showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .robot-visual img {
    max-width: 300px;
  }
}
