/* ==========================================================================
   CloudBread.me Redesign Prototype — Trust-Tech Hybrid Design System
   Desktop-Editorial + Smartphone-First UX
   ========================================================================== */

:root {
  /* Brand & Surface Tokens */
  --navy-950: #090f1d;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;

  --surface-white: #ffffff;
  --surface-slate: #f8fafc;
  --surface-tint: #f0f9ff;

  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --accent-bright: #38bdf8;
  --accent-emerald: #10b981;

  /* Text Tokens */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #94a3b8;

  /* Borders & Shadows */
  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --border-dark: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --shadow-accent: 0 10px 25px rgba(2, 132, 199, 0.28);

  /* Radii & Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1160px;
  --header-height: 68px;
  --mobile-bar-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text-body);
  background: var(--surface-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--surface-white);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  display: block;
  line-height: 1.1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-pill {
  padding: 6px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-pill:hover {
  border-color: var(--accent-bright);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-accent);
}

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

.btn-header-cta {
  padding: 9px 16px;
  font-size: 0.86rem;
  border-radius: var(--radius-full);
}

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light {
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
  padding: 11px 20px;
  font-size: 0.92rem;
}

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

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* Mobile Fullscreen Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 320px);
  height: 100dvh;
  background: var(--navy-900);
  color: #fff;
  z-index: 210;
  padding: 20px 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid var(--border-dark);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  max-height: calc(100dvh - 230px);
  overflow-y: auto;
}

.drawer-links a {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-bright);
}

.drawer-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   2. Hero Section (Deep Navy Authority)
   ========================================================================== */
.hero-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.22), transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.14), transparent 45%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--text-on-dark);
  padding: 72px 0 110px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .accent-text {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-desc strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.86rem;
  color: #94a3b8;
}

.hero-meta-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-badges i {
  color: var(--accent-bright);
}

/* Hero Portrait Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 370px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.portrait-img-wrap {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #1e293b;
}

.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portrait-caption {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portrait-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.portrait-role {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

.qr-mini-link {
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qr-mini-link:hover {
  background: rgba(56, 189, 248, 0.24);
}

/* ==========================================================================
   3. Trust Bar (Floating Metrics + Client Institutions)
   ========================================================================== */
.trust-section {
  position: relative;
  z-index: 20;
  margin-top: -54px;
  padding-bottom: 40px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.metric-value {
  font-family: 'Inter', 'Pretendard', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.metric-value span {
  color: var(--accent-primary);
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.client-strip {
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--surface-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.client-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.client-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ==========================================================================
   Common Section Header
   ========================================================================== */
.section-block {
  padding: 80px 0;
}

.section-slate {
  background: var(--surface-slate);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: var(--navy-900);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.section-dark .section-kicker {
  color: var(--accent-bright);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  line-height: 1.28;
  margin-bottom: 12px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.section-dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   4. Target Solutions (3-Column Branching)
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.35);
}

.solution-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-tint);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.solution-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.solution-card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.35;
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.solution-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.solution-list i {
  color: var(--accent-emerald);
  margin-top: 4px;
  font-size: 0.8rem;
}

.solution-action {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-slate);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.solution-card:hover .solution-action {
  background: var(--navy-900);
  color: #ffffff;
}

/* ==========================================================================
   5. Signature Case Studies
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-tint);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.case-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.case-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.4;
}

.case-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.case-row {
  font-size: 0.87rem;
  line-height: 1.55;
}

.case-row strong {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 6px;
}

.case-impact {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Testimonial Strip */
.testimonial-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.testimonial-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.testimonial-quote {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.65;
}

.testimonial-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
}

.testimonial-author span {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}

/* ==========================================================================
   6. Interactive AI Edge (Curriculum Recommender + RAG)
   ========================================================================== */
.ai-edge-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.ai-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.ai-form-group {
  margin-bottom: 18px;
}

.ai-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.chip-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-bright);
  color: #ffffff;
}

.ai-result-box {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
}

.ai-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
}

.ai-result-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.ai-result-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-bright);
}

.ai-modules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-modules li {
  font-size: 0.89rem;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-modules li strong {
  color: var(--accent-bright);
  margin-right: 6px;
}

.ai-ref-note {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* ==========================================================================
   7. Authority Hub (Tabs: Books / YouTube / Press)
   ========================================================================== */
.tab-bar {
  display: inline-flex;
  background: var(--surface-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--navy-900);
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.media-thumb {
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.media-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.4;
}

.media-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. Frictionless Conversion (Smart Inquiry Form + Speaker Kit)
   ========================================================================== */
.conversion-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.speaker-kit-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.speaker-kit-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.speaker-kit-card p {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 22px;
}

.direct-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
}

.direct-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.direct-contact-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inquiry-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.form-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-slate);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.form-chip.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--surface-white);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-heading);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 92px;
  margin-bottom: 16px;
}

.email-notify-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.email-notify-badge i {
  color: var(--accent-primary);
}

/* ==========================================================================
   9. Footer & Mobile Sticky Action Bar
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 48px 0 60px;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.86rem;
}

.mobile-sticky-bar {
  display: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 29, 0.72);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-top h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-slate);
  color: var(--navy-900);
}

.toast-banner {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.toast-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   10. Smartphone-First Responsive Rules (<= 768px)
   ========================================================================== */
@media (max-width: 960px) {
  .desktop-nav, .btn-header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid, .ai-edge-grid, .conversion-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solutions-grid, .cases-grid, .tab-panel.active {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  body {
    padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding: 0 18px;
  }

  .hero-section {
    padding: 36px 0 82px;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-card {
    max-width: 100%;
    display: grid;
    grid-template-columns: 104px 1fr;
    align-items: center;
  }

  .portrait-img-wrap {
    aspect-ratio: 1 / 1.1;
    height: 100%;
  }

  .portrait-caption {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 8px;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.26;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .trust-section {
    margin-top: -44px;
  }

  .metric-card {
    padding: 16px 12px;
  }

  .metric-value {
    font-size: 1.45rem;
  }

  .section-block {
    padding: 54px 0;
  }

  /* Horizontal Snap Carousel on Mobile for Solutions & Cases */
  .mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 10px;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel > * {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 12px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .tab-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-btn {
    padding: 9px 8px;
    font-size: 0.8rem;
  }

  /* Smartphone Thumb-Zone Sticky Action Bar */
  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    height: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-medium);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.25fr;
    gap: 8px;
    align-items: center;
  }

  .sticky-btn {
    height: 46px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .sticky-btn-tel {
    background: var(--surface-slate);
    color: var(--navy-900);
    border: 1px solid var(--border-medium);
  }

  .sticky-btn-pdf {
    background: var(--surface-tint);
    color: var(--accent-primary);
    border: 1px solid rgba(2, 132, 199, 0.25);
  }

  .sticky-btn-inquiry {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  }
}

@media (min-width: 769px) {
  .swipe-hint {
    display: none;
  }
}
