/* ============================================================
   US-cloud Corporate Site — style.css
   Design: IDERTY / 2026
   Tone: Clean corporate × Sky-blue accent × Subtle futurism
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --c-white:       #ffffff;
  --c-offwhite:    #f7fafd;
  --c-sky:         #0EA5E9;
  --c-cyan:        #06B6D4;
  --c-sky-light:   #BAE6FD;
  --c-sky-pale:    #E0F2FE;
  --c-navy:        #0A1628;
  --c-navy-mid:    #112240;
  --c-slate:       #64748B;
  --c-text:        #1e293b;
  --c-text-light:  #475569;
  --c-border:      #e2eaf3;
  --c-glow:        rgba(6, 182, 212, 0.3);
  --c-glow-sky:    rgba(14, 165, 233, 0.2);

  /* Gradients */
  --grad-sky:      linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
  --grad-sky-soft: linear-gradient(180deg, #EFF9FF 0%, #ffffff 100%);
  --grad-hero:     linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(14,165,233,0.25) 50%, rgba(255,255,255,0.0) 100%);
  --grad-overlay:  linear-gradient(180deg, rgba(240,252,255,0.92) 0%, rgba(255,255,255,0.97) 100%);
  --grad-glass:    linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.40) 100%);

  /* Typography */
  --font-display:  'Barlow Condensed', 'Noto Sans JP', sans-serif;
  --font-body:     'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-pad:   clamp(64px, 10vw, 120px);
  --section-pad-sm: clamp(48px, 7vw, 80px);
  --container:     1120px;
  --gutter:        clamp(16px, 4vw, 40px);

  /* Motion */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:      0.18s;
  --dur-mid:       0.42s;
  --dur-slow:      0.72s;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(14,165,233,0.10), 0 1px 4px rgba(10,22,40,0.06);
  --shadow-hover:  0 12px 40px rgba(14,165,233,0.22), 0 2px 8px rgba(10,22,40,0.10);
  --shadow-glow:   0 0 32px rgba(6,182,212,0.35);

  /* Border Radius */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::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: var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.75;
  word-break: auto-phrase;
  line-break: strict;
  overflow-x: hidden;
}

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

a {
  color: var(--c-sky);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--c-cyan); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--c-sky);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: var(--section-pad-sm) 0;
}

/* Section heading */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--c-navy);
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--c-text-light);
  max-width: 580px;
  word-break: auto-phrase;
  line-break: strict;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   Scroll-reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.15s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.35s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right,
  .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-sky);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.45);
  color: var(--c-white);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--c-sky);
  border: 1.5px solid var(--c-sky);
}

.btn-outline:hover {
  background: var(--c-sky-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--c-sky);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: var(--c-white);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1rem;
}

/* Arrow icon on button */
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 72px;
  transition: background var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              height var(--dur-mid) var(--ease-out);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

/* Transparent at top, white when scrolled */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(14,165,233,0.10);
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  fill: white;
}

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

.logo:hover .logo-mark {
  transform: translateY(-1px);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  transition: color var(--dur-fast);
}

.site-header:not(.is-scrolled) .logo-text {
  color: var(--c-white);
}

.site-header:not(.is-scrolled) .logo-text:hover { color: var(--c-sky-light); }

/* Main nav */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--c-sky);
  background: var(--c-sky-pale);
}

.main-nav a.active {
  color: var(--c-sky);
}

.site-header:not(.is-scrolled) .main-nav a {
  color: rgba(255,255,255,0.88);
}

.site-header:not(.is-scrolled) .main-nav a:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.12);
}

/* AI nav highlight */
.main-nav a.ai-link {
  color: var(--c-sky);
  position: relative;
}

.main-nav a.ai-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--grad-sky);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--dur-fast) var(--ease-out);
}

.main-nav a.ai-link:hover::after { transform: scaleX(1); }

.site-header:not(.is-scrolled) .main-nav a.ai-link {
  color: var(--c-sky-light);
}

/* Coalvy button */
.coalvy-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50px;
  color: var(--c-white);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
  white-space: nowrap;
}

.coalvy-btn:hover {
  background: rgba(255,255,255,0.30);
  transform: translateY(-1px);
  color: var(--c-white);
}

.site-header.is-scrolled .coalvy-btn {
  background: var(--grad-sky);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(14,165,233,0.30);
  color: white;
}

.site-header.is-scrolled .coalvy-btn:hover {
  box-shadow: 0 5px 20px rgba(14,165,233,0.45);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}

.site-header.is-scrolled .hamburger span { background: var(--c-navy); }

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

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

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

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 800;
  padding: 20px var(--gutter) 32px;
  box-shadow: 0 8px 32px rgba(14,165,233,0.12);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover,
.mobile-nav a.ai-link {
  color: var(--c-sky);
  background: var(--c-sky-pale);
}

.mobile-nav .coalvy-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--grad-sky);
  color: white;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-navy);
}

/* Hero background image with CSS fallback */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-sky.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Fallback gradient if image missing */
  background-color: #0a2a4a;
}

/* Cloud drift animation */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 30% 40%, rgba(14,165,233,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 70% 70%, rgba(6,182,212,0.20) 0%, transparent 55%);
  animation: cloudDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

@keyframes cloudDrift {
  0%   { transform: translateX(0) scale(1); opacity: 0.8; }
  50%  { transform: translateX(2%) scale(1.03); opacity: 1; }
  100% { transform: translateX(4%) scale(1.05); opacity: 0.9; }
}

/* Light beam */
.hero-beam {
  position: absolute;
  top: -20%;
  left: 15%;
  width: 600px;
  height: 800px;
  background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  transform: rotate(-20deg);
  pointer-events: none;
  animation: beamPulse 8s ease-in-out infinite;
}

@keyframes beamPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Floating particles (CSS-only) */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(186,230,253,0.6);
  animation: particleFloat linear infinite;
}

.particle:nth-child(1)  { left: 10%; top: 60%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 25%; top: 75%; width: 5px; height: 5px; animation-duration: 18s; animation-delay: -4s; background: rgba(14,165,233,0.4); }
.particle:nth-child(3)  { left: 50%; top: 80%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -7s; }
.particle:nth-child(4)  { left: 70%; top: 70%; width: 6px; height: 6px; animation-duration: 20s; animation-delay: -2s; background: rgba(6,182,212,0.35); }
.particle:nth-child(5)  { left: 85%; top: 65%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: -9s; }
.particle:nth-child(6)  { left: 38%; top: 55%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -5s; }

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-80vh) translateX(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-beam, .particle { animation: none; }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-sky-light);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--c-sky);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 24px;
}

.hero-title .accent {
  background: var(--grad-sky);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
  line-height: 1.8;
  word-break: auto-phrase;
  line-break: strict;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.3); }
}

/* Hero wave clip */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* ============================================================
   News Section
   ============================================================ */
.news {
  background: var(--c-white);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--c-border);
  transition: background var(--dur-fast);
  cursor: pointer;
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: var(--c-offwhite); }

.news-date {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--c-slate);
  white-space: nowrap;
  padding-top: 2px;
  min-width: 90px;
}

.news-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
  background: var(--c-sky-pale);
  color: var(--c-sky);
  border: 1px solid var(--c-sky-light);
}

.news-badge.badge-tech {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.news-badge.badge-recruit {
  background: #fefce8;
  color: #ca8a04;
  border-color: #fde68a;
}

.news-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  padding-top: 1px;
}

/* ============================================================
   Vision Section
   ============================================================ */
.vision {
  position: relative;
  background: var(--c-offwhite);
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/vision-horizon.png');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.vision::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-sky-soft);
  opacity: 0.88;
}

.vision .container { position: relative; z-index: 1; }

.vision-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.vision-card {
  background: var(--grad-glass);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-spring),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14,165,233,0.35);
}

.vision-card:hover::before { transform: scaleX(1); }

.vision-icon {
  width: 52px;
  height: 52px;
  background: var(--grad-sky);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(14,165,233,0.28);
}

.vision-icon svg {
  width: 26px;
  height: 26px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vision-card h3 {
  font-size: 1.05rem;
  color: var(--c-navy);
  margin-bottom: 12px;
}

.vision-card p {
  font-size: 0.88rem;
  color: var(--c-text-light);
  line-height: 1.7;
  word-break: auto-phrase;
  line-break: strict;
}

/* ============================================================
   Services Section
   ============================================================ */
.services {
  background: var(--c-white);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-spring),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-sky-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-mid);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-sky-light);
}

.service-card:hover::after { opacity: 1; }

.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-sky-light);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--c-sky-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--dur-fast);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-sky);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur-fast);
}

.service-card:hover .service-icon {
  background: var(--grad-sky);
}

.service-card:hover .service-icon svg { stroke: white; }

.service-card h3 {
  font-size: 1.1rem;
  color: var(--c-navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--c-text-light);
  line-height: 1.72;
  word-break: auto-phrase;
  line-break: strict;
}

/* ============================================================
   AI Teaser Section
   ============================================================ */
.ai-teaser {
  position: relative;
  background: var(--c-navy);
  overflow: hidden;
  padding: var(--section-pad) 0;
}

.ai-teaser-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/ai-abstract.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.ai-teaser-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, rgba(10,22,40,0.85) 40%, rgba(6,182,212,0.12) 100%);
}

.ai-teaser .container { position: relative; z-index: 1; }

.ai-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ai-teaser-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 16px;
}

.ai-teaser-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-cyan);
}

.ai-teaser h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--c-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.ai-teaser p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 32px;
  word-break: auto-phrase;
  line-break: strict;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.ai-tag {
  padding: 5px 14px;
  border: 1px solid rgba(6,182,212,0.45);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-cyan);
  background: rgba(6,182,212,0.08);
  letter-spacing: 0.03em;
}

.ai-teaser-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated neural network visual */
.ai-neural {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  position: relative;
}

.ai-neural canvas {
  width: 100%;
  height: 100%;
}

/* ============================================================
   Coalvy Section
   ============================================================ */
.coalvy {
  position: relative;
  background: var(--c-white);
  overflow: hidden;
}

.coalvy-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/cloud-infra.png');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
}

.coalvy::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(14,165,233,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(6,182,212,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.coalvy .container { position: relative; z-index: 1; }

.coalvy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.coalvy-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 18px;
  line-height: 1.4;
}

.coalvy-body {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.82;
  margin-bottom: 28px;
  word-break: auto-phrase;
  line-break: strict;
  max-width: 520px;
}

.coalvy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.coalvy-tag {
  padding: 5px 14px;
  background: var(--c-sky-pale);
  border: 1px solid var(--c-sky-light);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-sky);
  letter-spacing: 0.02em;
}

.coalvy-cta {
  gap: 10px;
}

.coalvy-external-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Visual card mock */
.coalvy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coalvy-card-mock {
  width: 100%;
  max-width: 380px;
  background: var(--grad-glass);
  border: 1px solid rgba(14,165,233,0.20);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.coalvy-card-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sky);
}

.coalvy-card-mock::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.coalvy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.coalvy-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad-sky);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14,165,233,0.30);
  flex-shrink: 0;
}

.coalvy-logo-mark svg {
  width: 20px;
  height: 20px;
  stroke: white;
}

.coalvy-card-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-slate);
  letter-spacing: 0.03em;
}

.coalvy-card-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: auto-phrase;
  line-break: strict;
}

.coalvy-card-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.coalvy-card-tags-wrap span {
  padding: 4px 12px;
  background: var(--c-sky-pale);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-sky);
  border: 1px solid var(--c-sky-light);
}

@media (max-width: 768px) {
  .coalvy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coalvy-visual { display: none; }
}

/* ============================================================
   Technology Section
   ============================================================ */
.technology {
  background: var(--c-offwhite);
  position: relative;
  overflow: hidden;
}

.technology::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/cloud-infra.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.technology .container { position: relative; z-index: 1; }

.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.tech-category {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--dur-mid) var(--ease-spring),
              box-shadow var(--dur-mid);
}

.tech-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.tech-cat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sky);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--c-sky-pale);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-pill {
  padding: 5px 12px;
  background: var(--c-offwhite);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.tech-category:hover .tech-pill {
  background: var(--c-sky-pale);
  border-color: var(--c-sky-light);
  color: var(--c-navy);
}

/* ============================================================
   Company Section
   ============================================================ */
.company {
  background: var(--c-white);
}

.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--c-border);
}

.company-table tr:first-child { border-top: 1px solid var(--c-border); }

.company-table th,
.company-table td {
  padding: 16px 4px;
  font-size: 0.88rem;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 36%;
  color: var(--c-slate);
  font-weight: 500;
  padding-right: 20px;
  white-space: nowrap;
}

.company-table td {
  color: var(--c-text);
  font-weight: 400;
}

.company-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-sky-pale);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-border);
}

.company-map-placeholder {
  text-align: center;
  color: var(--c-slate);
  font-size: 0.85rem;
}

.company-map-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--c-sky);
  fill: none;
  stroke-width: 1.5;
  display: block;
  margin: 0 auto 10px;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  background: var(--c-offwhite);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/texture-light.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.contact .container { position: relative; z-index: 1; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.contact-info h3 {
  font-size: 1.15rem;
  color: var(--c-navy);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--c-text);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-sky);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-slate);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--c-sky);
  margin-left: 3px;
  font-size: 0.7rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--grad-sky);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast);
  box-shadow: 0 4px 16px rgba(14,165,233,0.30);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,233,0.45);
}

.form-complete {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-complete.is-shown { display: block; }

.form-complete-icon {
  width: 60px;
  height: 60px;
  background: var(--grad-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-complete-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.form-complete h3 {
  color: var(--c-navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.form-complete p {
  color: var(--c-text-light);
  font-size: 0.88rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: var(--c-white);
  font-size: 1.4rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.8;
  margin-top: 14px;
  color: rgba(255,255,255,0.55);
  word-break: auto-phrase;
  line-break: strict;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 18px;
  font-family: var(--font-display);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast);
}

.footer-col a:hover { color: var(--c-sky-light); }

.footer-coalvy-card {
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}

.footer-coalvy-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-sky-light);
}

.footer-coalvy-card a:hover { color: var(--c-white); }

.footer-coalvy-card p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  word-break: auto-phrase;
  line-break: strict;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

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

.footer-legal a {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
}

.footer-legal a:hover { color: var(--c-sky-light); }

/* ============================================================
   AI Page Specific Styles
   ============================================================ */

/* AI Hero */
.ai-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--c-navy);
  overflow: hidden;
}

.ai-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/ai-abstract.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.ai-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.7) 50%, rgba(6,182,212,0.08) 100%);
}

/* Animated grid lines */
.ai-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ai-grid-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-grid-lines::before { animation: none; }
}

.ai-hero .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 80px; }

.ai-hero-inner {
  max-width: 680px;
}

.ai-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 24px;
}

.ai-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-cyan);
}

.ai-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 24px;
}

.ai-hero h1 .accent {
  background: linear-gradient(90deg, #0EA5E9, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  line-height: 1.85;
  margin-bottom: 40px;
  word-break: auto-phrase;
  line-break: strict;
}

/* AI Capabilities */
.ai-capabilities {
  background: var(--c-white);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.capability-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--dur-mid) var(--ease-spring),
              box-shadow var(--dur-mid),
              border-color var(--dur-mid);
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-sky-light);
}

.capability-card:hover::before { transform: scaleX(1); }

/* Wider last card */
.capability-card:nth-child(4) { grid-column: span 1; }

.cap-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--c-sky-pale) 0%, var(--c-sky-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--dur-fast);
}

.cap-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--c-sky);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--dur-fast);
}

.capability-card:hover .cap-icon {
  background: var(--grad-sky);
}

.capability-card:hover .cap-icon svg { stroke: white; }

.capability-card h3 {
  font-size: 1rem;
  color: var(--c-navy);
  margin-bottom: 10px;
}

.capability-card p {
  font-size: 0.855rem;
  color: var(--c-text-light);
  line-height: 1.72;
  word-break: auto-phrase;
  line-break: strict;
}

/* AI Flow */
.ai-flow {
  background: var(--c-offwhite);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--c-sky-light), var(--c-cyan), var(--c-sky-light));
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 72px;
  height: 72px;
  background: var(--grad-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(14,165,233,0.32);
  transition: transform var(--dur-mid) var(--ease-spring), box-shadow var(--dur-mid);
  position: relative;
}

.step-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(14,165,233,0.25);
}

.flow-step:hover .step-dot {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(14,165,233,0.45);
}

.step-dot svg {
  width: 28px;
  height: 28px;
  stroke: white;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-step h3 {
  font-size: 0.95rem;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--c-text-light);
  line-height: 1.65;
  word-break: auto-phrase;
  line-break: strict;
}

/* AI Tech Stack */
.ai-tech {
  background: var(--c-navy);
  padding: var(--section-pad) 0;
}

.ai-tech .section-label { color: var(--c-cyan); }
.ai-tech .section-title { color: var(--c-white); }

.ai-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.ai-tech-pill {
  padding: 10px 22px;
  border: 1px solid rgba(6,182,212,0.35);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  background: rgba(6,182,212,0.07);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-spring);
}

.ai-tech-pill:hover {
  background: rgba(6,182,212,0.18);
  border-color: var(--c-cyan);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* AI Use Cases */
.ai-usecases {
  background: var(--c-white);
}

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

.usecase-card {
  background: var(--c-offwhite);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--c-border);
  transition: transform var(--dur-mid) var(--ease-spring), box-shadow var(--dur-mid);
}

.usecase-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.usecase-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--c-sky-pale);
  color: var(--c-sky);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  border: 1px solid var(--c-sky-light);
}

.usecase-card h3 {
  font-size: 1rem;
  color: var(--c-navy);
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 0.855rem;
  color: var(--c-text-light);
  line-height: 1.72;
  word-break: auto-phrase;
  line-break: strict;
}

/* AI CTA Banner */
.ai-cta {
  background: var(--grad-sky);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(6,182,212,0.2) 0%, transparent 55%);
}

.ai-cta .container { position: relative; z-index: 1; }

.ai-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--c-white);
  margin-bottom: 16px;
}

.ai-cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  word-break: auto-phrase;
  line-break: strict;
}

.ai-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Legal Pages (privacy.html, terms.html)
   ============================================================ */
.legal-hero {
  background: var(--c-navy);
  padding: 140px 0 64px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(14,165,233,0.18) 0%, transparent 60%);
}

.legal-hero .container { position: relative; z-index: 1; }

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--c-white);
  margin-bottom: 8px;
}

.legal-hero p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

.legal-body {
  background: var(--c-white);
  padding: 80px 0 100px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--c-navy);
  margin-top: 48px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--c-sky);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.85;
  margin-bottom: 10px;
  word-break: auto-phrase;
  line-break: strict;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content ul li { padding-left: 4px; }

.legal-date {
  font-size: 0.82rem;
  color: var(--c-slate);
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

/* ============================================================
   Page-internal navigation (breadcrumb-style)
   ============================================================ */
.page-nav-breadcrumb {
  background: var(--c-offwhite);
  border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--c-slate);
}

.page-nav-breadcrumb a {
  color: var(--c-sky);
}

.page-nav-breadcrumb span { margin: 0 6px; }

/* ============================================================
   Responsive
   ============================================================ */

/* 1024px */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px */
@media (max-width: 768px) {
  /* Nav */
  .main-nav,
  .coalvy-btn {
    display: none;
  }

  .hamburger { display: flex; }

  .mobile-nav { display: block; }

  /* Hero */
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.5rem); }

  /* Grids */
  .vision-cards,
  .tech-categories,
  .capabilities-grid,
  .usecases-grid {
    grid-template-columns: 1fr;
  }

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

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .flow-steps::before { display: none; }

  .company-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-teaser-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-teaser-visual { display: none; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Form row */
  .form-row { grid-template-columns: 1fr; }

  /* Contact form padding */
  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .ai-cta-buttons { flex-direction: column; align-items: center; }
  .flow-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Tech Enhancement — Near-future light/grid motifs
   ============================================================ */

/* 1. HUD Bracket */
.hud-bracket {
  position: relative;
}
.hud-bracket::before,
.hud-bracket::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.hud-bracket::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid rgba(14,165,233,0.25);
  border-left: 1.5px solid rgba(14,165,233,0.25);
}
.hud-bracket::after {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid rgba(14,165,233,0.25);
  border-right: 1.5px solid rgba(14,165,233,0.25);
}

/* 2. Glow Divider */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.4), rgba(6,182,212,0.6), rgba(14,165,233,0.4), transparent);
  margin: 0;
  border: none;
  position: relative;
}
.glow-divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.3), transparent);
  filter: blur(2px);
}

/* 3. Section label tech variant */
.section-label--tech {
  font-family: 'Courier New', 'Barlow Condensed', monospace;
  letter-spacing: 0.22em;
  text-shadow: 0 0 16px rgba(14,165,233,0.45);
  position: relative;
}
.section-label--tech::before {
  content: '> ';
  opacity: 0.6;
}

/* 4. Services section — tech image panel */
.services {
  overflow: hidden;
}
.services::after {
  content: '';
  position: absolute;
  top: 0; right: -5%;
  width: 45%;
  height: 100%;
  background-image: url('../images/tech-grid-light.png');
  background-size: cover;
  background-position: center left;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.services .container { position: relative; z-index: 1; }

/* 5. Technology section — tech data layer */
.technology::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/tech-data-light.png');
  background-size: cover;
  background-position: center right;
  opacity: 0.05;
  pointer-events: none;
}

/* 6. AI Neural image layer */
.ai-neural {
  position: relative;
}
.ai-neural::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('../images/tech-neural-light.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
}
.ai-neural canvas {
  position: relative;
  z-index: 1;
}

/* 7. Coalvy bg — tech grid override */
.coalvy .coalvy-bg {
  background-image: url('../images/tech-grid-light.png');
  opacity: 0.05;
}

/* 8. Card shine effect */
.card-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 2;
  transition: none;
}
.service-card:hover .card-shine,
.vision-card:hover .card-shine,
.capability-card:hover .card-shine {
  animation: shineRun 0.5s ease-out forwards;
}
@keyframes shineRun {
  0%   { left: -100%; }
  100% { left: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  .card-shine { display: none; }
}

/* 10. Hero eyebrow scan line */
.hero-eyebrow {
  position: relative;
  overflow: hidden;
}
.hero-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.8), transparent);
  animation: scanLine 3s ease-in-out infinite;
}
@keyframes scanLine {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow::after { animation: none; opacity: 0; }
}

/* 11. Tech cat label — glow underline */
.tech-cat-label {
  border-bottom: none !important;
  position: relative;
  padding-bottom: 10px;
}
.tech-cat-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-cyan), transparent);
  box-shadow: 0 0 6px rgba(14,165,233,0.5);
}

/* 12. AI hero visual image (ai.html) */
.ai-hero-visual-img {
  position: absolute;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  width: clamp(200px, 28vw, 420px);
  aspect-ratio: 1;
  background-image: url('../images/tech-aicore-light.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .ai-hero-visual-img { display: none; }
}

/* 13. AI capabilities section — neural light */
.ai-capabilities {
  position: relative;
  overflow: hidden;
}
.ai-capabilities::after {
  content: '';
  position: absolute;
  top: 0; right: -5%;
  width: 50%;
  height: 100%;
  background-image: url('../images/tech-neural-light.png');
  background-size: cover;
  background-position: left center;
  opacity: 0.06;
  pointer-events: none;
}
.ai-capabilities .container { position: relative; z-index: 1; }
