/* ============================================
   PLATECH - プラテック
   Tech Eco Scaffolding Company
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #009688;
  --teal-dark: #00796B;
  --teal-light: #E0F7FA;
  --teal-50: #B2DFDB;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --gray-900: #212121;
  --font-en: 'Space Grotesk', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 50px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-jp);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
table { border-collapse: collapse; width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }

.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

/* --- Sample Banner --- */
.sample-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--gray-900);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  z-index: 10000;
  letter-spacing: 0.05em;
}
.sample-banner a { color: var(--teal-light); text-decoration: underline; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-jp);
  transition: var(--transition);
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,150,136,0.3);
}
.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 28px rgba(0,150,136,0.4);
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* --- Header --- */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  top: 32px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-hex { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
  letter-spacing: 0.12em;
}
.logo-jp { font-size: 0.65rem; color: var(--gray-600); letter-spacing: 0.15em; }

.header:not(.scrolled) .logo-en { color: var(--white); }
.header:not(.scrolled) .logo-jp { color: rgba(255,255,255,0.7); }
.header:not(.scrolled) .logo-hex path:first-child { fill: rgba(255,255,255,0.9); }
.header:not(.scrolled) .logo-hex path:nth-child(2) { fill: var(--teal); }
.header:not(.scrolled) .logo-hex path:last-child { stroke: rgba(255,255,255,0.9); }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}
.header:not(.scrolled) .nav-desktop a { color: rgba(255,255,255,0.85); }
.header:not(.scrolled) .nav-desktop a:hover { color: var(--white); }
.header.scrolled .nav-desktop a { color: var(--gray-600); }
.header.scrolled .nav-desktop a:hover { color: var(--teal); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
}
.nav-cta:hover { background: var(--teal-dark) !important; }
.nav-cta::after { display: none !important; }

.hamburger { display: none; width: 28px; height: 20px; position: relative; z-index: 1100; }
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
}
.header:not(.scrolled) .hamburger span { background: var(--white); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--gray-800); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--gray-800); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  padding: 100px 40px 40px;
}
.mobile-nav.active { right: 0; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--teal); padding-left: 8px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,40,35,0.75) 0%, rgba(0,100,90,0.5) 50%, rgba(0,60,50,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-sub {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-50);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll span {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  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.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero animations */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  animation: animUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes animUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section Headers --- */
.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--teal);
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 600px;
}
.section-header { margin-bottom: 60px; }
.section-header.animate-on-scroll { text-align: center; }
.section-header .section-sub { margin: 0 auto; }

/* --- About --- */
.about { background: var(--gray-50); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-icon-wrap {
  width: 280px;
  height: 280px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed var(--teal-50);
}
.about-icon-wrap svg { width: 160px; height: 160px; }
.about-text .section-label { margin-bottom: 12px; }
.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-text p { margin-bottom: 16px; color: var(--gray-600); font-size: 0.95rem; }
.about-text strong { color: var(--teal); font-weight: 700; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-icon-wrap { width: 220px; height: 220px; }
  .about-icon-wrap svg { width: 120px; height: 120px; }
  .about-text .section-label { padding-left: 0; }
  .about-text .section-label::before { display: none; }
}

/* --- Innovation --- */
.innovation { background: var(--white); }

.compare-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}
.compare-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.compare-row:hover { background: var(--teal-light); }
.compare-row:last-child { border-bottom: none; }
.compare-col {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.compare-label-col {
  font-weight: 600;
  color: var(--gray-800);
  gap: 10px;
}
.compare-old { color: var(--gray-600); }
.compare-new { color: var(--teal-dark); background: rgba(0,150,136,0.04); }
.compare-new.highlight strong { font-size: 1.1rem; }

@media (max-width: 600px) {
  .compare-header, .compare-row { grid-template-columns: 1fr; }
  .compare-header .compare-label-col { display: none; }
  .compare-col { padding: 12px 20px; }
  .compare-label-col { background: var(--gray-100); font-size: 0.85rem; }
  .compare-old::before { content: '従来：'; font-weight: 600; color: var(--gray-400); }
  .compare-new::before { content: 'プラテック：'; font-weight: 600; color: var(--teal); }
}

.innovation-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.inno-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.inno-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-50);
  transform: translateY(-4px);
}
.inno-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.inno-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--gray-900); }
.inno-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.8; }

@media (max-width: 768px) {
  .innovation-features { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Services --- */
.services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  gap: 24px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-50);
  transform: translateY(-3px);
}
.service-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.service-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.8; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; gap: 16px; }
}

/* --- Works --- */
.works { background: var(--white); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.work-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.work-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--teal);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.work-info { padding: 24px; }
.work-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.work-info p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 14px; }
.work-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
}

@media (max-width: 768px) {
  .works-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* --- Numbers --- */
.numbers {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a3a37 100%);
  color: var(--white);
}
.numbers .section-label { color: var(--teal-50); }
.numbers .section-label::before { background: var(--teal-50); }
.numbers .section-title { color: var(--white); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.number-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.number-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
.number-value {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-50);
  line-height: 1;
  margin-bottom: 8px;
}
.number-unit {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  margin-left: 4px;
  color: var(--teal-50);
}
.number-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .number-card { padding: 28px 16px; }
  .number-value { font-size: 2.2rem; }
}

/* --- Flow --- */
.flow { background: var(--gray-50); }
.flow-steps { max-width: 700px; margin: 0 auto; position: relative; }
.flow-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--teal-50);
}
.flow-step {
  display: flex;
  gap: 28px;
  margin-bottom: 36px;
  position: relative;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-num {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0,150,136,0.3);
}
.flow-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.flow-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.flow-body p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.7; }

@media (max-width: 600px) {
  .flow-steps::before { left: 22px; }
  .flow-num { width: 44px; height: 44px; font-size: 0.9rem; }
  .flow-step { gap: 18px; }
  .flow-body { padding: 20px; }
}

/* --- Company --- */
.company { background: var(--white); }
.company-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table table { width: 100%; }
.company-table tr { border-bottom: 1px solid var(--gray-200); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  background: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-800);
  padding: 18px 28px;
  width: 180px;
  text-align: left;
  vertical-align: top;
}
.company-table td {
  padding: 18px 28px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: 100%; padding: 12px 20px; }
  .company-table th { padding-bottom: 4px; }
  .company-table td { padding-top: 4px; padding-bottom: 16px; }
}

/* --- Contact --- */
.contact { background: var(--teal-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.contact-box-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.contact-label { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 4px; }
.contact-value { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }
.contact-note { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-800);
}
.required {
  font-size: 0.7rem;
  color: var(--white);
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-jp);
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,150,136,0.1);
}
.form-group textarea { resize: vertical; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 0;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-en { color: var(--white); }
.footer-brand .logo-jp { color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px 30px; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--teal-50); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--teal-50); transition: var(--transition); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 600px) {
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.services-grid .animate-on-scroll:nth-child(2),
.works-grid .animate-on-scroll:nth-child(2),
.numbers-grid .animate-on-scroll:nth-child(2),
.innovation-features .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(3),
.works-grid .animate-on-scroll:nth-child(3),
.numbers-grid .animate-on-scroll:nth-child(3),
.innovation-features .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(4),
.numbers-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.numbers-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.numbers-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

.flow-step.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.flow-step.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.flow-step.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.flow-step.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* --- Mobile Overlay --- */
.mobile-nav::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.mobile-nav.active::before {
  opacity: 1;
  pointer-events: auto;
}

/* --- Additional Hover Effects --- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--teal);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: height 0.4s ease;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card:hover::before {
  height: 100%;
}

.work-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-50));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.work-card {
  position: relative;
}
.work-card:hover::after {
  transform: scaleX(1);
}

/* --- Compare Table Responsive Enhancement --- */
.compare-new strong {
  color: var(--teal);
}
.compare-header .compare-old,
.compare-header .compare-new {
  text-align: center;
  justify-content: center;
}
.compare-row .compare-old,
.compare-row .compare-new {
  text-align: center;
  justify-content: center;
}

/* --- Number Card Glow --- */
.number-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: var(--transition);
}
.number-card {
  position: relative;
  overflow: hidden;
}
.number-card:hover::before {
  opacity: 1;
}

/* --- Flow Line Enhancement --- */
.flow-step::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  width: 2px;
  height: calc(100% + 36px - 60px);
  background: linear-gradient(to bottom, var(--teal), var(--teal-50));
  opacity: 0.3;
}
.flow-step:last-child::before {
  display: none;
}

/* --- Contact Form Focus Label --- */
.form-group input:focus + label,
.form-group textarea:focus + label {
  color: var(--teal);
}

/* --- Logo Hover --- */
.logo:hover .logo-hex {
  transform: rotate(15deg);
  transition: transform 0.4s ease;
}
.logo-hex {
  transition: transform 0.4s ease;
}

/* --- Section Divider Accents --- */
.about::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 0 auto 0;
  position: relative;
  top: -100px;
  border-radius: 2px;
}

/* --- Back to Top Indicator --- */
.hero-scroll::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* --- Tablet Specific --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { max-width: 900px; }
  .about-grid { gap: 40px; }
  .hero-title { font-size: 2.6rem; }
  .numbers-grid { gap: 20px; }
  .number-value { font-size: 2.5rem; }
  .compare-col { padding: 14px 18px; font-size: 0.85rem; }
  .service-card { padding: 32px 24px; }
  .works-grid { gap: 20px; }
  .work-img { height: 180px; }
  .contact-form { padding: 32px; }
  .flow-body { padding: 24px; }
  .inno-card { padding: 32px 24px; }
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero-content { padding: 0 24px; }
  .hero { min-height: 600px; }
  .btn { padding: 12px 28px; font-size: 0.9rem; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.88rem; }
  .hero-scroll { display: none; }
  .compare-table { border-radius: var(--radius); }
  .contact-box { padding: 20px; }
  .contact-value { font-size: 1rem; }
  .footer { padding: 40px 0 0; }
  .footer-top { padding-bottom: 28px; }
  .number-card { padding: 24px 12px; }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
  html { font-size: 15px; }
  .header-inner { padding: 12px 16px; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .number-value { font-size: 1.8rem; }
  .flow-num { width: 40px; height: 40px; font-size: 0.8rem; }
  .flow-steps::before { left: 19px; }
  .flow-step { gap: 14px; }
  .flow-body { padding: 16px; }
  .flow-body h3 { font-size: 0.95rem; }
  .flow-body p { font-size: 0.82rem; }
  .service-card { padding: 28px 20px; }
  .inno-card { padding: 28px 20px; }
  .company-table th,
  .company-table td { padding: 10px 16px; }
  .contact-form { padding: 24px 16px; }
  .sample-banner { font-size: 0.7rem; padding: 6px 12px; }
}

/* --- Print --- */
@media print {
  .sample-banner,
  .header,
  .mobile-nav,
  .hero-scroll { display: none; }
  .section { padding: 30px 0; }
  .hero { height: auto; min-height: 200px; }
  .hero-overlay { background: rgba(0,0,0,0.3); }
  body { font-size: 12px; }
}

/* --- Accessibility / Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .animate-up {
    opacity: 1;
    transform: none;
  }
  .scroll-line {
    animation: none;
  }
}
