/* ========================================
   NEXT設備 - Tech-Forward Plumbing/HVAC
   ======================================== */

:root {
  --navy: #0F1923;
  --navy-light: #162230;
  --navy-mid: #1A2A3A;
  --blue: #2196F3;
  --blue-dark: #1976D2;
  --blue-glow: rgba(33, 150, 243, 0.15);
  --blue-glow-strong: rgba(33, 150, 243, 0.3);
  --white: #FFFFFF;
  --gray-100: #F0F4F8;
  --gray-200: #D8E0E8;
  --gray-400: #8899AA;
  --gray-600: #556677;
  --font-en: 'Space Grotesk', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--white);
  background: var(--navy);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

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

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

/* Sample Banner */
.sample-banner {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.sample-banner a { color: var(--white); text-decoration: underline; font-weight: 700; }

/* Header */
.header {
  position: fixed; top: 36px; left: 0; width: 100%; z-index: 1000;
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(33, 150, 243, 0.1);
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(15, 25, 35, 0.95);
  border-bottom-color: rgba(33, 150, 243, 0.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; align-items: baseline; gap: 2px; }
.logo-en {
  font-family: var(--font-en); font-size: 22px; font-weight: 700;
  color: var(--blue); letter-spacing: 0.02em;
}
.logo-jp { font-size: 15px; font-weight: 700; color: var(--white); }

.nav-desktop { display: flex; align-items: center; gap: 24px; }
.nav-desktop a {
  font-size: 13px; font-weight: 500; color: var(--gray-400);
  transition: var(--transition); letter-spacing: 0.01em;
}
.nav-desktop a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--white); transition: var(--transition); border-radius: 1px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 11px; transform: rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 100px; left: 0; width: 100%; height: calc(100vh - 100px);
  background: rgba(15, 25, 35, 0.98); backdrop-filter: blur(20px);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-inner { text-align: center; }
.mobile-nav-link {
  display: block; font-size: 20px; font-weight: 500;
  color: var(--gray-400); padding: 14px 0; transition: var(--transition);
}
.mobile-nav-link:hover { color: var(--blue); }
.mobile-nav-cta {
  display: inline-block; margin-top: 24px;
  background: var(--blue); color: var(--white);
  padding: 14px 40px; border-radius: 8px; font-weight: 600; font-size: 16px;
}

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding-top: 100px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.92) 0%, rgba(15,25,35,0.75) 50%, rgba(15,25,35,0.88) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(33,150,243,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,150,243,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 24px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.15em;
  border: 1px solid rgba(33, 150, 243, 0.3);
  padding: 6px 20px; border-radius: 30px;
  margin-bottom: 28px;
  background: rgba(33, 150, 243, 0.08);
}
.hero-title {
  font-size: clamp(40px, 8vw, 72px); font-weight: 900;
  line-height: 1.2; letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--gray-400);
  line-height: 1.9; margin-bottom: 40px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-bottom: 40px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-family: var(--font-en); font-size: 42px; font-weight: 700;
  color: var(--blue); line-height: 1;
}
.hero-stat-unit {
  font-size: 16px; font-weight: 600; color: var(--blue); margin-left: 2px;
}
.hero-stat-label {
  display: block; font-size: 12px; color: var(--gray-400);
  margin-top: 6px; letter-spacing: 0.02em;
}
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; padding: 14px 36px;
  border-radius: 8px; transition: var(--transition); cursor: pointer;
  border: none; font-family: var(--font-jp); letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 28px rgba(33, 150, 243, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--blue); color: var(--blue);
  background: rgba(33, 150, 243, 0.05);
}
.btn-full { width: 100%; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
  font-family: var(--font-en); font-size: 11px;
  color: var(--gray-400); letter-spacing: 0.15em;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: var(--gray-400);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* Section common */
.section-label {
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: 0.2em;
  margin-bottom: 12px; text-align: center;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  text-align: center; line-height: 1.4;
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.section-sub {
  text-align: center; color: var(--gray-400);
  font-size: 15px; line-height: 1.9;
  max-width: 600px; margin: 0 auto 48px;
}

/* About */
.about { padding: 120px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; margin-top: 48px;
}
.about-lead {
  font-size: 18px; font-weight: 700; line-height: 2;
  margin-bottom: 20px; color: var(--white);
}
.about-text p:last-child { color: var(--gray-400); font-size: 15px; }
.about-visual { display: flex; justify-content: center; }
.about-icon-svg { max-width: 400px; width: 100%; }

@keyframes pulse { 0%, 100% { opacity: .5; r: 15; } 50% { opacity: 1; r: 17; } }
@keyframes pulse2 { 0%, 100% { opacity: .3; r: 25; } 50% { opacity: .6; r: 28; } }

.pulse-ring { animation: pulse 2s ease-in-out infinite; }
.pulse-ring-2 { animation: pulse2 2s ease-in-out infinite 0.5s; }
.blink { animation: blinkAni 1.5s ease-in-out infinite; }
.blink-delay { animation: blinkAni 1.5s ease-in-out infinite 0.7s; }
@keyframes blinkAni { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* IoT System */
.iot-system {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}
.iot-diagram { margin-top: 24px; overflow-x: auto; }
.iot-svg {
  width: 100%; max-width: 900px; margin: 0 auto; display: block;
  min-width: 700px;
}

/* Services */
.services { padding: 120px 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--navy-light);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0; transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(33, 150, 243, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.1);
}
.service-card:hover::before { opacity: 1; }
.service-icon { margin-bottom: 20px; }
.service-num {
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  color: var(--blue); opacity: .5; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.service-card h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 12px;
}
.service-card p { color: var(--gray-400); font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.service-tags li {
  font-size: 11px; color: var(--blue);
  border: 1px solid rgba(33, 150, 243, 0.25);
  padding: 4px 12px; border-radius: 20px;
  background: rgba(33, 150, 243, 0.05);
}

/* Merit */
.merit {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}
.merit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.merit-card {
  text-align: center;
  background: var(--navy);
  border: 1px solid rgba(33, 150, 243, 0.15);
  border-radius: var(--radius);
  padding: 40px 20px;
  transition: var(--transition);
}
.merit-card:hover {
  border-color: rgba(33, 150, 243, 0.4);
  box-shadow: 0 0 40px rgba(33, 150, 243, 0.1);
}
.merit-number {
  margin-bottom: 12px;
}
.merit-number .counter {
  font-family: var(--font-en); font-size: 48px; font-weight: 700;
  color: var(--blue); line-height: 1;
}
.merit-unit {
  font-size: 16px; font-weight: 600; color: var(--blue);
}
.merit-card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
}
.merit-card p {
  font-size: 13px; color: var(--gray-400); line-height: 1.7;
}

/* Works */
.works { padding: 120px 0; }
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.work-card {
  background: var(--navy-light);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.3);
}
.work-img {
  position: relative; height: 200px; overflow: hidden;
}
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
}
.work-body { padding: 24px; }
.work-body h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.5;
}
.work-body p {
  font-size: 13px; color: var(--gray-400); line-height: 1.7; margin-bottom: 14px;
}
.work-meta {
  display: flex; gap: 16px;
}
.work-meta span {
  font-size: 11px; color: var(--blue); font-weight: 500;
  background: rgba(33, 150, 243, 0.08);
  padding: 4px 12px; border-radius: 4px;
}

/* Flow */
.flow {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}
.flow-steps { max-width: 700px; margin: 0 auto; }
.flow-step {
  display: flex; gap: 24px; align-items: flex-start;
  position: relative; padding-bottom: 40px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-num {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-family: var(--font-en); font-size: 16px; font-weight: 700;
  color: var(--blue);
}
.flow-content { flex: 1; padding-top: 4px; }
.flow-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.flow-content p { font-size: 14px; color: var(--gray-400); line-height: 1.8; }
.flow-line {
  position: absolute; left: 25px; top: 56px;
  width: 2px; height: calc(100% - 56px);
  background: linear-gradient(180deg, var(--blue), rgba(33, 150, 243, 0.1));
}
.flow-step:last-child .flow-line { display: none; }

/* Company */
.company { padding: 120px 0; }
.company-table-wrap {
  max-width: 800px; margin: 0 auto;
  background: var(--navy-light);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid rgba(33, 150, 243, 0.08); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  text-align: left; padding: 16px 24px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  width: 160px; vertical-align: top;
  background: rgba(33, 150, 243, 0.03);
}
.company-table td {
  padding: 16px 24px; font-size: 14px; color: var(--gray-400);
  line-height: 1.8;
}

/* Contact */
.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 48px; align-items: start;
}
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 32px;
}
.contact-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.15);
  border-radius: 12px;
}
.contact-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-tel {
  font-family: var(--font-en); font-size: 24px; font-weight: 700;
  color: var(--blue);
}
.contact-hours, .contact-note { font-size: 13px; color: var(--gray-400); }

.contact-form {
  background: var(--navy);
  border: 1px solid rgba(33, 150, 243, 0.1);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-400); margin-bottom: 6px;
}
.required {
  font-size: 11px; color: var(--blue); font-weight: 600;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--navy-light);
  border: 1px solid rgba(33, 150, 243, 0.15);
  border-radius: var(--radius-sm);
  color: var(--white); font-size: 14px;
  font-family: var(--font-jp);
  transition: var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-600); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Footer */
.footer {
  padding: 60px 0 0;
  background: var(--navy);
  border-top: 1px solid rgba(33, 150, 243, 0.1);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(33, 150, 243, 0.08);
}
.footer-desc { color: var(--gray-400); font-size: 13px; margin-top: 12px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.footer-links a {
  font-size: 13px; color: var(--gray-400);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.footer-bottom p { font-size: 12px; color: var(--gray-600); }
.footer-bottom a { color: var(--gray-400); transition: var(--transition); }
.footer-bottom a:hover { color: var(--blue); }

/* Animations */
[data-aos] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1; transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .merit-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

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

  .hero { min-height: 100svh; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-icon-svg { max-width: 300px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  .merit-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .merit-card { padding: 28px 16px; }
  .merit-number .counter { font-size: 36px; }

  .flow-step { gap: 16px; }
  .flow-num { width: 44px; height: 44px; font-size: 14px; }
  .flow-line { left: 21px; top: 48px; height: calc(100% - 48px); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .company-table th { display: block; width: 100%; padding: 12px 20px 4px; }
  .company-table td { display: block; padding: 4px 20px 12px; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { gap: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat { display: flex; align-items: center; gap: 12px; }
  .hero-stat-label { margin-top: 0; }

  .section-title { font-size: 24px; }
  .merit-grid { grid-template-columns: 1fr; }

  .iot-diagram { margin: 0 -24px; padding: 0 24px; }
}

/* ========================================
   ADDITIONAL DETAILS & POLISH
   ======================================== */

/* Selection */
::selection {
  background: rgba(33, 150, 243, 0.3);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
  background: var(--navy-mid);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

/* Focus outline */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Hero decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* About section decoration */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.2), transparent);
}
.about { position: relative; }

/* Service card inner glow */
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top right, rgba(33, 150, 243, 0.03) 0%, transparent 50%);
  pointer-events: none;
  transition: var(--transition);
}
.service-card:hover::after {
  background: radial-gradient(circle at top right, rgba(33, 150, 243, 0.06) 0%, transparent 50%);
}

/* Merit card glow on hover */
.merit-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), transparent 50%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}
.merit-card { position: relative; overflow: hidden; }
.merit-card:hover::before { opacity: 1; }

/* Work card overlay gradient */
.work-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, rgba(15, 25, 35, 0.4));
  pointer-events: none;
}

/* Flow step hover */
.flow-step:hover .flow-num {
  background: rgba(33, 150, 243, 0.1);
  transform: scale(1.05);
  transition: var(--transition);
}
.flow-num { transition: var(--transition); }

/* Contact form button hover state */
.contact-form .btn-primary {
  position: relative;
  overflow: hidden;
}
.contact-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}
.contact-form .btn-primary:hover::before {
  left: 100%;
}

/* Footer gradient top */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.3), transparent);
}

/* Logo hover */
.logo:hover .logo-en {
  text-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
  transition: var(--transition);
}
.logo-en { transition: var(--transition); }

/* Nav link underline animation */
.nav-desktop a:not(.nav-cta) {
  position: relative;
}
.nav-desktop a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-desktop a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Hero badge pulse */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(33, 150, 243, 0); }
}

/* Section label decoration */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--blue);
  vertical-align: middle;
  margin: 0 12px;
  opacity: 0.5;
}

/* Center section labels */
section > .container > .section-label {
  display: block;
  text-align: center;
}
section > .container > .section-label::before,
section > .container > .section-label::after {
  display: none;
}

/* IoT diagram container styling */
.iot-diagram {
  background: rgba(15, 25, 35, 0.5);
  border: 1px solid rgba(33, 150, 243, 0.08);
  border-radius: var(--radius);
  padding: 24px;
}

/* Work body bottom border */
.work-body::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 16px;
  opacity: 0.5;
  border-radius: 1px;
}

/* Company table row hover */
.company-table tr {
  transition: var(--transition);
}
.company-table tr:hover {
  background: rgba(33, 150, 243, 0.03);
}

/* Input/textarea autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0px 1000px var(--navy-light) inset;
  border-color: rgba(33, 150, 243, 0.25);
}

/* Placeholder animation */
.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  opacity: 0.4;
  transition: var(--transition);
}

/* Loading state for images */
.work-img img {
  background: var(--navy-mid);
}

/* Hero background Ken Burns */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-bg img {
  animation: kenBurns 20s ease-in-out alternate infinite;
}

/* Section divider pattern */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  opacity: 0.3;
}
.services { position: relative; }

/* Contact icon animation */
.contact-icon {
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  background: rgba(33, 150, 243, 0.15);
  border-color: rgba(33, 150, 243, 0.3);
  transform: scale(1.05);
}

/* Mobile nav link stagger */
.mobile-nav.active .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.active .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-link:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.active .mobile-nav-link:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav-link {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.mobile-nav.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-cta {
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease 0.4s;
}
.mobile-nav.active .mobile-nav-cta {
  transform: translateY(0);
  opacity: 1;
}

/* Print styles */
@media print {
  .sample-banner,
  .header,
  .mobile-nav,
  .hero-scroll,
  .hero-grid-lines { display: none !important; }
  body { background: #fff; color: #333; }
  .section-title { color: #333; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-overlay { background: rgba(255,255,255,0.85) !important; }
  .hero-title { color: #0F1923; }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .hero-scroll-line { animation: none; }
  [data-aos] {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   LANDSCAPE PHONE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  .hero-title { font-size: 36px; }
  .hero-stats { gap: 32px; }
  .hero-stat-num { font-size: 28px; }
  .hero-scroll { display: none; }
}

/* ========================================
   LARGE SCREENS (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  .container { max-width: 1200px; }
  .hero-title { font-size: 80px; }
  .hero-sub { font-size: 20px; }
  .section-title { font-size: 42px; }
  .services-grid { gap: 32px; }
  .merit-grid { gap: 32px; }
  .works-grid { gap: 32px; }
  .about-grid { gap: 80px; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
