/* ============================================
   Base & Reset
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #fff;
}

::selection {
  background: rgba(27, 127, 181, 0.2);
  color: #0A1628;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Hero Section
   ============================================ */
/* Hero Canvas Animation */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  image-rendering: auto;
}

/* Shared image styles */
.section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.visual-break-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.8);
}

.solution-photo-wrap {
  aspect-ratio: 16 / 9;
}

.solution-photo-wrap img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-photo-wrap:hover img {
  transform: scale(1.03);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(27, 127, 181, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-heading-text {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(4rem, 17vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  word-spacing: 0.15em;
}

.hero-ai-text {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 2em;
  letter-spacing: 0.05em;
  margin-right: 0.02em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #5BBDE8 0%, #1B7FB5 50%, #2E98CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glitch Effect for Emphasis Text */
.hero-glitch {
  position: relative;
  display: inline-block;
}

.hero-glitch.glitch-active {
  animation: glitch-base 0.6s ease both;
}

.hero-glitch.glitch-active::before,
.hero-glitch.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #5BBDE8 0%, #1B7FB5 50%, #2E98CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}

.hero-glitch.glitch-active::before {
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.hero-glitch.glitch-active::after {
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-bottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch-base {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.8; }
  16% { opacity: 1; }
  42% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes glitch-top {
  0%, 100% { transform: translate(0); }
  12% { transform: translate(-4px, -2px); }
  28% { transform: translate(3px, 1px); }
  44% { transform: translate(-2px, 0); }
  64% { transform: translate(1px, -1px); }
  82% { transform: translate(0); }
}

@keyframes glitch-bottom {
  0%, 100% { transform: translate(0); }
  12% { transform: translate(4px, 2px); }
  28% { transform: translate(-3px, -1px); }
  44% { transform: translate(2px, 0); }
  64% { transform: translate(-1px, 1px); }
  82% { transform: translate(0); }
}

/* Section Heading Glitch (inherits accent color) */
.typing-glitch {
  position: relative;
  display: inline-block;
}

.typing-glitch.glitch-active {
  animation: glitch-base 0.6s ease both;
}

.typing-glitch.glitch-active::before,
.typing-glitch.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: inherit;
  pointer-events: none;
}

.typing-glitch.glitch-active::before {
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.typing-glitch.glitch-active::after {
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-bottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Hero Mockup */
.hero-mockup {
  width: 380px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.mockup-toolbar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.mockup-body {
  display: flex;
  min-height: 260px;
}

.mockup-sidebar {
  width: 60px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-nav-item {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.mockup-nav-item.active {
  background: rgba(27, 127, 181, 0.4);
}

.mockup-content {
  flex: 1;
  padding: 16px;
}

.mockup-header-block {
  width: 60%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  margin-bottom: 20px;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding: 0 8px;
  margin-bottom: 16px;
}

.chart-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bar.accent {
  background: rgba(27, 127, 181, 0.4);
}

.mockup-metrics {
  display: flex;
  gap: 8px;
}

.metric-card {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}

/* ============================================
   Pain Points Cards
   ============================================ */
.pain-card {
  position: relative;
  padding: 40px 32px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  transition: all 0.4s ease;
  overflow: hidden;
}

.pain-card:hover {
  border-color: #1B7FB5;
}

.pain-number {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: #e8edf3;
  position: absolute;
  top: 20px;
  right: 24px;
  transition: color 0.4s ease;
  z-index: 1;
}

.pain-card:hover .pain-number {
  color: rgba(27, 127, 181, 0.15);
}

.pain-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: #F8FAFC;
  color: #0A1628;
  transition: all 0.4s ease;
}

.pain-card:hover .pain-icon {
  background: #1B7FB5;
  color: white;
}

.pain-card h3,
.pain-card p {
  position: relative;
  z-index: 1;
}

/* ============================================
   Solution Section
   ============================================ */
.solution-deco-line {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(27, 127, 181, 0.06);
  border-radius: 0;
  pointer-events: none;
}

.solution-visual {
  position: relative;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 1px solid #e2e8f0;
}

.step-flow {
  background: white;
  border-radius: 0;
  padding: 40px 32px;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.step-item.active {
  background: rgba(27, 127, 181, 0.04);
  margin: 0 -20px;
  padding: 20px;
  border-radius: 0;
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1B7FB5;
  background: rgba(27, 127, 181, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: #1B7FB5;
  color: white;
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0A1628;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

.step-connector {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin-left: 19px;
}

/* ============================================
   ROI Cards
   ============================================ */
.roi-card {
  padding: 40px 32px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  text-align: left;
  transition: all 0.4s ease;
}

.roi-card:hover {
  border-color: #1B7FB5;
}

.roi-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 16px;
}

.roi-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 20px;
}

.roi-value .counter {
  font-size: 3rem;
  font-weight: 900;
  color: #0A1628;
  letter-spacing: -0.02em;
}

.roi-unit {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
}

.roi-bar-track {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.roi-bar {
  height: 100%;
  width: 0;
  background: #1B7FB5;
  border-radius: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.roi-caption {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ============================================
   Anchoring Cards
   ============================================ */
.anchor-card {
  position: relative;
  padding: 48px 36px;
  border-radius: 0;
  overflow: hidden;
}

.anchor-card-muted {
  background: transparent;
  border: 1px solid #e2e8f0;
}

.anchor-card-highlight {
  background: #0A1628;
  border: 1px solid rgba(27, 127, 181, 0.3);
}

.anchor-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.anchor-badge.muted {
  background: #f1f5f9;
  color: #64748b;
}

.anchor-badge.highlight {
  background: rgba(27, 127, 181, 0.15);
  color: #5BBDE8;
}

.anchor-recommend {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: #1B7FB5;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 0;
  letter-spacing: 0.05em;
}

.anchor-price {
  margin: 20px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-card {
  position: relative;
}

.pricing-inner {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 44px 36px;
  height: 100%;
  transition: all 0.4s ease;
}

.pricing-inner:hover {
  border-color: #cbd5e1;
}

.pricing-card.featured {
  z-index: 10;
}

@media (min-width: 1024px) {
  .pricing-card.featured {
    margin: -20px -8px;
  }
}

.pricing-card.featured .pricing-inner,
.featured-inner {
  background: #0A1628;
  border-color: rgba(27, 127, 181, 0.3);
  box-shadow: none;
  padding: 56px 36px;
}

.pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.pricing-popular span {
  display: inline-block;
  padding: 6px 20px;
  background: #1B7FB5;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 0;
  letter-spacing: 0.1em;
  box-shadow: none;
}

/* ============================================
   Use Cases Section
   ============================================ */
.usecase-bg-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(circle, rgba(27, 127, 181, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.usecase-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.usecase-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.usecase-item.active {
  border-color: rgba(27, 127, 181, 0.3);
  background: rgba(27, 127, 181, 0.06);
}

.usecase-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  color: white;
  font-family: inherit;
}

.usecase-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #5BBDE8;
  background: rgba(27, 127, 181, 0.12);
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.usecase-item.active .usecase-num {
  background: #1B7FB5;
  color: white;
}

.usecase-title-wrap {
  flex: 1;
  min-width: 0;
}

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.usecase-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.usecase-tag-difficulty {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.usecase-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.6;
}

.usecase-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.usecase-toggle svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.usecase-item.active .usecase-toggle {
  background: rgba(27, 127, 181, 0.2);
  color: #5BBDE8;
}

.usecase-item.active .usecase-toggle svg {
  transform: rotate(180deg);
}

.usecase-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.usecase-item.active .usecase-body {
  grid-template-rows: 1fr;
}

.usecase-body-inner {
  overflow: hidden;
  padding: 0 28px 0 92px;
  opacity: 0;
  transition: opacity 0.4s ease 0s, padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.usecase-item.active .usecase-body-inner {
  padding: 0 28px 28px 92px;
  opacity: 1;
  transition: opacity 0.4s ease 0.15s, padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.usecase-body-inner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-bg-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(27, 127, 181, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.simulator-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 44px 36px;
}

@media (min-width: 768px) {
  .simulator-container {
    padding: 56px 48px;
  }
}

/* Custom Slider */
.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #1B7FB5;
  border: 2px solid #5BBDE8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
  background: #5BBDE8;
}

.custom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: #1B7FB5;
  border: 2px solid #5BBDE8;
  cursor: pointer;
}

/* Wage Buttons */
.wage-btn {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wage-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

.wage-btn.active {
  background: rgba(27, 127, 181, 0.12);
  border-color: rgba(27, 127, 181, 0.4);
  color: #5BBDE8;
}

/* Simulator Result */
.simulator-result {
  background: rgba(27, 127, 181, 0.04);
  border: 1px solid rgba(27, 127, 181, 0.15);
  border-radius: 0;
  padding: 32px;
}

.result-card {
  text-align: center;
}

.result-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.result-card-highlight {
  background: rgba(27, 127, 181, 0.08);
  border: 1px solid rgba(27, 127, 181, 0.25);
  border-radius: 0;
  padding: 16px;
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
  border-color: rgba(27, 127, 181, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Section Heading Accent Lines
   ============================================ */
.section-heading-left h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #1B7FB5;
  margin-top: 20px;
}

.section-heading-right h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: #1B7FB5;
  margin-top: 20px;
  margin-left: auto;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .hero-heading-text {
    letter-spacing: 0.02em;
  }

  .pain-card {
    padding: 32px 24px;
  }

  .pain-number {
    font-size: 3.5rem;
  }

  .roi-value .counter {
    font-size: 2.25rem;
  }

  .anchor-card {
    padding: 36px 28px;
  }

  .pricing-inner {
    padding: 36px 28px;
  }

  .pricing-card.featured .pricing-inner {
    padding: 44px 28px;
  }

  .simulator-container {
    padding: 32px 20px;
  }

  .step-item.active {
    margin: 0 -12px;
    padding: 16px 12px;
  }

  .usecase-header {
    padding: 20px 20px;
    gap: 14px;
  }

  .usecase-num {
    width: 38px;
    height: 38px;
    border-radius: 0;
  }

  .usecase-title {
    font-size: 0.9rem;
  }

  .usecase-body-inner {
    padding: 0 20px 0 20px;
  }

  .usecase-item.active .usecase-body-inner {
    padding: 0 20px 24px 20px;
  }

  .usecase-toggle {
    width: 32px;
    height: 32px;
  }

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

@media (max-width: 639px) {
  .simulator-result {
    padding: 24px 20px;
  }
}
