/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #7ce3ff; /* Cyan highlight */
  --secondary-color: #a9b8c8; /* Cool gray */
  --accent-color: #3ef3ff; /* CTA glow */
  --background-light: #0b1623; /* Deep navy */
  --background-dark: #08101a; /* Footer deep */
  --surface: rgba(13, 24, 38, 0.92);
  --surface-soft: rgba(16, 30, 46, 0.78);
  --border-color: rgba(124, 227, 255, 0.14);
  --text-color-dark: #e6f1ff; /* Light text on dark */
  --text-color-light: #0b1623; /* Dark text on light */
  --muted-text: #9fb2c7;
  --font-family-sans: 'Space Grotesk', 'Noto Sans KR', sans-serif;
  --max-width: 1200px;
  --spacing-unit: 1rem; /* 16px */
  --shadow-soft: 0 12px 28px rgba(8, 16, 26, 0.35);
  --shadow-glow: 0 12px 24px rgba(62, 243, 255, 0.2);
}

body {
  font-family: var(--font-family-sans);
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 227, 255, 0.14), transparent 70%),
    radial-gradient(900px 500px at 0% 10%, rgba(62, 243, 255, 0.12), transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 1.5); /* 24px */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--spacing-unit);
  font-weight: 700;
  color: var(--text-color-dark);
}

h1 {
  font-size: calc(var(--spacing-unit) * 2.5); /* 40px */
}

h2 {
  font-size: calc(var(--spacing-unit) * 2); /* 32px */
}

h3 {
  font-size: calc(var(--spacing-unit) * 1.75); /* 28px */
}

p {
  margin-bottom: var(--spacing-unit);
  color: var(--muted-text);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: rgba(8, 16, 26, 0.85);
  padding: calc(var(--spacing-unit) * 1) 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: calc(var(--spacing-unit) * 1.75);
  margin: 0;
}

.logo a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transform-style: preserve-3d;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.logo a:hover {
  transform: translateY(-1px) rotateX(6deg) rotateY(-6deg);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.5);
}

.logo a.logo-animate {
  animation: logo-pop 0.28s ease;
}

@keyframes logo-pop {
  0% {
    transform: translateZ(0) rotateX(0) rotateY(0) scale(1);
  }
  45% {
    transform: translateY(-2px) rotateX(12deg) rotateY(-12deg) scale(1.04);
  }
  100% {
    transform: translateZ(0) rotateX(0) rotateY(0) scale(1);
  }
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

nav ul li {
  margin-left: calc(var(--spacing-unit) * 1.5);
}

nav ul li a {
  color: var(--text-color-dark);
  font-weight: 500;
  padding: calc(var(--spacing-unit) * 0.5) 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  background-image: url('/agentic_ai.png');
  background-size: cover;
  background-position: center;
  color: var(--text-color-light);
  text-align: center;
  padding: clamp(4.5rem, 8vh, 6rem) 0 clamp(3.5rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(32rem, 72vh, 46rem);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 14, 22, 0.82), rgba(10, 24, 36, 0.62));
  transition: background 0.8s ease, opacity 0.8s ease;
  opacity: 0.92;
  z-index: 0;
}

.hero-section.hero-overlay-1::before {
  background: linear-gradient(120deg, rgba(3, 24, 36, 0.9), rgba(6, 44, 62, 0.62));
}

.hero-section.hero-overlay-2::before {
  background: linear-gradient(120deg, rgba(18, 16, 32, 0.92), rgba(26, 28, 58, 0.7));
}

.hero-section.hero-overlay-3::before {
  background: linear-gradient(120deg, rgba(18, 28, 20, 0.92), rgba(12, 46, 34, 0.68));
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-section h2 {
  color: #ffffff;
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: clamp(0.9rem, 2vh, 1.15rem);
  text-wrap: balance;
}

.hero-section p {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 40rem;
  opacity: 0.94;
  color: #dbe7f7;
  text-wrap: pretty;
}

.hero-copy {
  position: relative;
  width: min(100%, 60rem);
  justify-items: center;
  margin: 0 auto calc(var(--spacing-unit) * 1.75);
  padding-inline: clamp(0.25rem, 2vw, 1rem);
}

.hero-copy-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-copy-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-copy-item.is-exiting {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-copy-item h2 {
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: var(--spacing-unit);
}

.hero-copy-item p {
  margin-bottom: 0;
}

.hero-copy-line {
  display: block;
}

.hero-copy-item-compact {
  align-items: center;
}

.hero-copy-item-compact h2,
.hero-copy-item-compact p {
  max-width: none;
}

.hero-copy-item-compact .hero-copy-line {
  display: block;
  white-space: nowrap;
}

.hero-copy-item-compact h2 {
  font-size: clamp(1.75rem, 3.55vw, 3.35rem);
  letter-spacing: -0.04em;
}

.hero-copy-item-compact p {
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
}

.hero-rotation-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 0.75);
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: rgba(219, 231, 247, 0.8);
  font-size: calc(var(--spacing-unit) * 0.85);
}

.hero-rotation-dots {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 0.5);
}

.hero-rotation-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(219, 231, 247, 0.35);
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-rotation-dot.is-active {
  background: #7ce3ff;
  transform: scale(1.35);
}

.contact-form.contact-highlight {
  box-shadow: 0 0 0 2px rgba(124, 227, 255, 0.6), 0 0 30px rgba(62, 243, 255, 0.28);
  border-radius: 16px;
  transition: box-shadow 0.4s ease;
}

.contact-form.contact-highlight input,
.contact-form.contact-highlight textarea {
  border-color: rgba(124, 227, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy-item {
    transition: none;
    transform: none;
  }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #3ef3ff, #7ce3ff);
  color: #06121c;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: var(--spacing-unit);
  box-shadow: var(--shadow-glow);
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Sections General */
section {
  padding: calc(var(--spacing-unit) * 4) 0; /* 64px */
  scroll-margin-top: calc(var(--spacing-unit) * 1.5);
}

section:nth-of-type(even) {
  background-color: transparent;
}

section h3 {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 3);
  position: relative;
  padding-bottom: var(--spacing-unit);
}

section h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* About Section */
.about-section p {
  max-width: 800px;
  margin: 0 auto var(--spacing-unit) auto;
  text-align: center;
  color: var(--muted-text);
}

/* Services Section */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 2);
}

.service-cards .card {
  background-color: var(--surface-soft);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(8, 16, 26, 0.45);
}

.service-cards .card-link {
  display: block;
  text-decoration: none;
}

.service-cards .card-link:hover {
  text-decoration: none;
  border-color: rgba(124, 227, 255, 0.42);
}

.card-link-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: calc(var(--spacing-unit) * 0.6);
  padding: calc(var(--spacing-unit) * 0.35) calc(var(--spacing-unit) * 0.8);
  border-radius: 999px;
  background: rgba(124, 227, 255, 0.14);
  color: var(--primary-color);
  font-size: calc(var(--spacing-unit) * 0.88);
  font-weight: 700;
}

.service-cards .card h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-unit);
  font-size: calc(var(--spacing-unit) * 1.25);
}

.stats-section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  align-items: stretch;
}

.stats-card,
.action-card {
  background-color: var(--surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 2);
  box-shadow: var(--shadow-soft);
}

.stats-number {
  font-size: calc(var(--spacing-unit) * 2.1);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: calc(var(--spacing-unit) * 0.5);
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(124, 227, 255, 0.25);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
}

.stats-note {
  color: var(--muted-text);
}

.stats-card {
  position: relative;
  overflow: hidden;
}

.stats-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(124, 227, 255, 0.12) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.5;
  pointer-events: none;
}

.flip-char {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.9em;
  height: 1.6em;
  padding: 0 0.15em;
  perspective: none;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(124, 227, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45));
  transform-origin: center top;
  animation: flipAirport 1.15s ease-in-out infinite;
}

.flip-comma {
  min-width: 0.4em;
  padding: 0 0.05em;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: none;
}

@keyframes flipAirport {
  0% {
    transform: rotateX(0deg);
  }
  25% {
    transform: rotateX(-18deg);
  }
  55% {
    transform: rotateX(10deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.flip-theme-airport .stats-number {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
  border-color: rgba(124, 227, 255, 0.35);
}

.flip-theme-airport .flip-char {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.6));
  border-color: rgba(124, 227, 255, 0.35);
}

.flip-theme-airport .stats-card::after {
  opacity: 0.65;
}

.flip-theme-cafe .stats-number {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(20, 12, 6, 0.55));
  border-color: rgba(255, 214, 170, 0.35);
}

.flip-theme-cafe .flip-char {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.18), rgba(20, 12, 6, 0.75));
  border-color: rgba(255, 214, 170, 0.35);
  color: #fff6eb;
}

.flip-theme-cafe .stats-card::after {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 214, 170, 0.12) 1px, transparent 1px);
  opacity: 0.55;
}


.action-image {
  height: 200px;
  border-radius: 12px;
  margin: calc(var(--spacing-unit) * 1.5) 0;
  background-image:
    radial-gradient(120px 120px at 20% 30%, rgba(62, 243, 255, 0.55), transparent 70%),
    radial-gradient(160px 160px at 80% 60%, rgba(124, 227, 255, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(10, 22, 36, 0.9), rgba(8, 16, 26, 0.9));
  border: 1px solid rgba(124, 227, 255, 0.2);
  box-shadow: inset 0 0 40px rgba(62, 243, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.action-image::before,
.action-image::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 10px;
  border: 1px dashed rgba(124, 227, 255, 0.35);
  opacity: 0.7;
}

.action-image::after {
  inset: 50px;
  border-style: solid;
  opacity: 0.45;
}

.action-subtitle {
  color: var(--muted-text);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.action-title {
  color: var(--text-color-dark);
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 0.4);
}

.action-link {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 0.3);
  padding: calc(var(--spacing-unit) * 1.4);
  border-radius: 14px;
  border: 1px solid rgba(124, 227, 255, 0.22);
  background: rgba(8, 16, 26, 0.7);
  text-align: left;
  align-items: flex-start;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.action-link:hover {
  border-color: rgba(124, 227, 255, 0.6);
  box-shadow: 0 18px 30px rgba(8, 16, 26, 0.45);
  transform: translateY(-2px);
}

.privacy-section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit) * 1.5);
  margin-top: calc(var(--spacing-unit) * 2);
}

.privacy-card {
  background-color: var(--surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: calc(var(--spacing-unit) * 1.5);
  box-shadow: var(--shadow-soft);
}

.privacy-card h4 {
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.process-steps,
.case-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(var(--spacing-unit) * 1.5);
  margin-top: calc(var(--spacing-unit) * 2);
}

.process-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 calc(var(--spacing-unit) * 0.5);
  font-size: calc(var(--spacing-unit) * 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(124, 227, 255, 0.8);
}

.process-intro {
  max-width: 680px;
  margin: calc(var(--spacing-unit) * 1) auto 0;
}

.process-shell {
  margin-top: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 1.25);
  border: 1px solid rgba(124, 227, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 16, 26, 0.55);
}

.process-shell .process-steps {
  margin-top: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-shell .step-card {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 0.55);
}

.step-index {
  margin: 0;
  font-size: calc(var(--spacing-unit) * 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(124, 227, 255, 0.72);
}

.latest-blog-intro {
  max-width: 760px;
  margin: 0 auto calc(var(--spacing-unit) * 2) auto;
  text-align: center;
}

.latest-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--spacing-unit) * 1.5);
}

.latest-blog-card {
  background-color: var(--surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: calc(var(--spacing-unit) * 1.25);
  box-shadow: var(--shadow-soft);
}

.latest-blog-image-link {
  display: block;
  margin-bottom: calc(var(--spacing-unit) * 0.9);
}

.latest-blog-image-link img {
  width: 100%;
  height: 170px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(124, 227, 255, 0.2);
}

.latest-blog-meta {
  font-size: calc(var(--spacing-unit) * 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(124, 227, 255, 0.75);
  margin-bottom: calc(var(--spacing-unit) * 0.4);
}

.latest-blog-card h4 {
  margin-bottom: calc(var(--spacing-unit) * 0.55);
}

.latest-blog-card h4 a {
  color: var(--primary-color);
}

.latest-blog-card p:last-child {
  margin-bottom: 0;
}

.latest-blog-cta-wrap {
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 2);
}

.blog-hero {
  padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 3);
  text-align: center;
}

.blog-hero p {
  max-width: 720px;
  margin: 0 auto;
}

.blog-list {
  padding: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 5);
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: calc(var(--spacing-unit) * 2);
  align-items: start;
  padding: calc(var(--spacing-unit) * 2);
  border-radius: 16px;
  border: 1px solid rgba(124, 227, 255, 0.18);
  background: rgba(8, 16, 26, 0.7);
  box-shadow: var(--shadow-soft);
}

.blog-card + .blog-card {
  margin-top: calc(var(--spacing-unit) * 2);
}

.blog-content ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-text);
}

.blog-meta {
  font-size: calc(var(--spacing-unit) * 0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(124, 227, 255, 0.7);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.blog-thumb img {
  width: 100%;
  height: 84px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(124, 227, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(62, 243, 255, 0.08);
}

.blog-thumb-link {
  display: block;
}

.post-main {
  padding-bottom: calc(var(--spacing-unit) * 4);
}

.post-hero {
  padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 2);
}

.post-content {
  padding: calc(var(--spacing-unit) * 1.5) 0 calc(var(--spacing-unit) * 4);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: calc(var(--spacing-unit) * 2);
  align-items: start;
}

.post-article {
  background: rgba(8, 16, 26, 0.72);
  border: 1px solid rgba(124, 227, 255, 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: calc(var(--spacing-unit) * 2);
}

.post-article h3 {
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 1);
  margin-top: calc(var(--spacing-unit) * 1.8);
  padding-bottom: calc(var(--spacing-unit) * 0.45);
}

.post-article h3:first-child {
  margin-top: 0;
}

.post-article h3::after {
  left: 0;
  transform: none;
}

.post-article p {
  margin-bottom: calc(var(--spacing-unit) * 1.1);
  line-height: 1.8;
}

.post-article ul,
.post-article ol {
  margin: 0 0 calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.2);
  color: var(--muted-text);
}

.post-article li {
  margin-bottom: calc(var(--spacing-unit) * 0.55);
  line-height: 1.75;
}

.post-note,
.post-reference-box {
  margin-top: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 1.25);
  border-radius: 12px;
  border: 1px solid rgba(124, 227, 255, 0.16);
  background: rgba(10, 22, 34, 0.78);
}

.post-note h4,
.post-reference-box h3 {
  margin-bottom: calc(var(--spacing-unit) * 0.8);
}

.post-reference-list {
  list-style: none;
  margin: 0;
}

.post-reference-list li {
  padding: calc(var(--spacing-unit) * 0.8) 0;
  border-top: 1px solid rgba(124, 227, 255, 0.12);
}

.post-reference-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.post-reference-list a {
  font-weight: 600;
}

.post-reference-list p {
  margin: calc(var(--spacing-unit) * 0.35) 0 0;
  font-size: 0.96rem;
}

.post-side {
  position: sticky;
  top: calc(var(--spacing-unit) * 1.5);
  background: rgba(8, 16, 26, 0.72);
  border: 1px solid rgba(124, 227, 255, 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: calc(var(--spacing-unit) * 1.1);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1);
}

.post-side img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid rgba(124, 227, 255, 0.2);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-thumb img {
    height: 140px;
  }

  .latest-blog-image-link img {
    height: 150px;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-side {
    position: static;
  }
}

.step-card,
.case-card,
.faq-item {
  background-color: var(--surface-soft);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: calc(var(--spacing-unit) * 1.5);
  box-shadow: var(--shadow-soft);
}

.case-card {
  display: flex;
  flex-direction: column;
}

.step-card h4,
.case-card h4,
.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.case-card-link {
  display: inline-block;
  margin-top: auto;
  color: #06121c;
  background: linear-gradient(135deg, #3ef3ff, #7ce3ff);
  border-radius: 999px;
  padding: calc(var(--spacing-unit) * 0.45) calc(var(--spacing-unit) * 0.9);
  font-weight: 700;
  font-size: calc(var(--spacing-unit) * 0.86);
  text-decoration: none;
}

.case-card-link:hover {
  filter: brightness(1.05);
}

.process-shell .step-card h4 {
  margin-bottom: 0;
}

.privacy-note {
  text-align: center;
  font-size: calc(var(--spacing-unit) * 0.9);
  color: var(--muted-text);
  margin-top: calc(var(--spacing-unit) * 1.5);
}

/* Contact Section */
.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
  width: 100%;
  padding: calc(var(--spacing-unit) * 0.75);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--font-family-sans);
  font-size: var(--spacing-unit);
  background-color: var(--surface);
  color: var(--text-color-dark);
}

.contact-section textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-section button[type="submit"] {
  background: linear-gradient(135deg, #3ef3ff, #7ce3ff);
  color: #06121c;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.5);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: var(--spacing-unit);
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.contact-section button[type="submit"]:hover {
  filter: brightness(1.05);
}

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found .container {
  max-width: 720px;
}

.not-found h1 {
  font-size: calc(var(--spacing-unit) * 3);
  color: #ffffff;
}

.not-found p {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.subpage-hero {
  padding: calc(var(--spacing-unit) * 5) 0 calc(var(--spacing-unit) * 3);
}

.subpage-breadcrumb {
  display: inline-block;
  margin-bottom: calc(var(--spacing-unit) * 1);
  color: rgba(124, 227, 255, 0.82);
  font-size: calc(var(--spacing-unit) * 0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subpage-hero-copy {
  max-width: 840px;
}

.subpage-hero-copy h2 {
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.subpage-hero-copy p {
  max-width: 720px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: calc(var(--spacing-unit) * 2);
  align-items: start;
}

.subpage-content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1.5);
}

.content-panel,
.subpage-side-card,
.checklist-card {
  background: rgba(8, 16, 26, 0.72);
  border: 1px solid rgba(124, 227, 255, 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.content-panel {
  padding: calc(var(--spacing-unit) * 1.8);
}

.content-panel h3,
.subpage-side-card h3,
.checklist-card h3 {
  text-align: left;
  margin-bottom: calc(var(--spacing-unit) * 1);
  padding-bottom: calc(var(--spacing-unit) * 0.45);
}

.content-panel h3::after,
.subpage-side-card h3::after,
.checklist-card h3::after {
  left: 0;
  transform: none;
}

.content-panel p:last-child,
.content-panel li:last-child,
.subpage-side-card p:last-child,
.checklist-card li:last-child {
  margin-bottom: 0;
}

.feature-list,
.qa-report-list,
.checklist-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-text);
}

.feature-list li,
.qa-report-list li,
.checklist-list li {
  margin-bottom: calc(var(--spacing-unit) * 0.65);
}

.subpage-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--spacing-unit) * 1);
  margin-top: calc(var(--spacing-unit) * 1.2);
}

.subpage-highlight-card {
  padding: calc(var(--spacing-unit) * 1.1);
  border-radius: 12px;
  background: rgba(124, 227, 255, 0.08);
  border: 1px solid rgba(124, 227, 255, 0.15);
}

.subpage-highlight-card h4 {
  margin-bottom: calc(var(--spacing-unit) * 0.45);
  color: var(--primary-color);
}

.subpage-side {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1.2);
}

.subpage-side-card {
  padding: calc(var(--spacing-unit) * 1.3);
  position: sticky;
  top: calc(var(--spacing-unit) * 1.5);
}

.subpage-side-card strong {
  color: var(--text-color-dark);
}

.checklist-card {
  padding: calc(var(--spacing-unit) * 1.3);
}

.subpage-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 0.8);
  margin-top: calc(var(--spacing-unit) * 1.2);
}

.ghost-button {
  display: inline-block;
  padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1.4);
  border: 1px solid rgba(124, 227, 255, 0.32);
  border-radius: 999px;
  color: var(--text-color-dark);
  text-decoration: none;
  font-weight: 700;
  background: rgba(124, 227, 255, 0.08);
}

.ghost-button:hover {
  text-decoration: none;
  border-color: rgba(124, 227, 255, 0.55);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  text-align: center;
  padding: calc(var(--spacing-unit) * 2) 0;
  font-size: calc(var(--spacing-unit) * 0.875); /* 14px */
  margin-top: calc(var(--spacing-unit) * 4);
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    background-image:
      linear-gradient(120deg, rgba(7, 14, 22, 0.82), rgba(10, 24, 36, 0.62)),
      url('/assets/blog/ai-1.jpg');
    background-position: center top;
    padding: clamp(4.5rem, 14vw, 6rem) 0 clamp(3rem, 10vw, 4rem);
    min-height: min(100svh, 44rem);
  }

  .hero-copy {
    width: min(100%, 32rem);
    margin-bottom: calc(var(--spacing-unit) * 1.4);
    padding-inline: 0;
  }

  .hero-copy-item h2 {
    max-width: 12ch;
  }

  .hero-copy-item-compact .hero-copy-line {
    white-space: nowrap;
  }

  .hero-copy-item-compact h2 {
    max-width: none;
    font-size: clamp(1.15rem, 4.7vw, 1.95rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
  }

  .hero-copy-item-compact p {
    font-size: clamp(0.82rem, 2.7vw, 0.95rem);
    line-height: 1.45;
  }

  .hero-section h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 1.14;
  }

  .hero-section p {
    font-size: clamp(0.98rem, 3.9vw, 1.1rem);
    line-height: 1.55;
    max-width: 28rem;
  }

  .hero-rotation-indicator {
    margin-bottom: calc(var(--spacing-unit) * 1.4);
    font-size: calc(var(--spacing-unit) * 0.78);
  }

  .cta-button {
    width: min(100%, 16rem);
  }

  nav ul {
    flex-direction: column;
    margin-top: var(--spacing-unit);
    display: none; /* Hide nav for mobile, could add a hamburger menu */
  }

  header .container {
    flex-direction: column;
  }

  nav ul li {
    margin: var(--spacing-unit) 0;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .subpage-grid {
    grid-template-columns: 1fr;
  }

  .subpage-side-card {
    position: static;
  }

  .process-shell {
    padding: var(--spacing-unit);
  }

  section {
    padding: calc(var(--spacing-unit) * 2) 0;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: clamp(4rem, 16vw, 5.25rem);
    min-height: min(100svh, 40rem);
  }

  .hero-section .container {
    padding-inline: 1rem;
  }

  .hero-copy-item h2 {
    max-width: 11ch;
  }

  .hero-copy-item-compact h2 {
    font-size: clamp(0.96rem, 4.6vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
  }

  .hero-copy-item-compact p {
    font-size: clamp(0.72rem, 3.35vw, 0.84rem);
    line-height: 1.4;
  }

  .hero-section h2 {
    font-size: clamp(1.7rem, 8.5vw, 2.2rem);
  }

  .hero-section p {
    font-size: clamp(0.95rem, 4vw, 1rem);
  }
}

/* Small adjustments for mobile navigation display on toggle (if implemented) */
/* Example for a toggleable mobile nav */
/*
header.active nav ul {
  display: flex;
}
*/
