@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --bg:      oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(18% 0.012 250);
  --muted:   oklch(54% 0.012 250);
  --border:  oklch(92% 0.005 250);
  --accent:  oklch(58% 0.18 255);
  --accent-hover: oklch(52% 0.20 255);
  --accent-bg: oklch(94% 0.06 255);
  --success: oklch(55% 0.15 145);
  --warning: oklch(60% 0.15 85);
  --danger: oklch(55% 0.18 30);

  --font-display: 'Kanit', sans-serif;
  --font-body: 'Kanit', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px oklch(0% 0 0 / 0.06);
  --shadow-md: 0 4px 12px oklch(0% 0 0 / 0.08);
  --shadow-lg: 0 8px 24px oklch(0% 0 0 / 0.10);
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: oklch(100% 0 0 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  background: var(--border);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--fg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
}

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

.btn-outline:hover {
  background: var(--accent-bg);
  color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--border);
  color: var(--fg);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-line {
  background: #06C755;
  color: white;
}

.btn-line:hover {
  background: #05b54d;
  color: white;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Section spacing */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Hero section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-enhanced {
  padding: 60px 0 80px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted);
}

.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

thead {
  background: var(--border);
}

th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: oklch(98% 0.003 240);
}

/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent-bg);
  color: var(--accent);
}

.tag-success { background: oklch(92% 0.05 145); color: var(--success); }
.tag-warning { background: oklch(92% 0.05 85); color: var(--warning); }
.tag-danger { background: oklch(92% 0.05 30); color: var(--danger); }

/* Line OA CTA block */
.line-cta {
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.line-cta h3 {
  font-size: 24px;
  font-weight: 600;
}

.line-cta p {
  color: var(--muted);
  max-width: 400px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--fg); }

/* Page header */
.page-header {
  padding: 48px 0 32px;
}

.page-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
}

.page-header p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 8px;
  max-width: 600px;
}

/* Guide / article */
.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.guide-section h3 {
  font-size: 20px;
  margin-bottom: 12px;
  margin-top: 24px;
}

.guide-section p {
  margin-bottom: 12px;
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
}

.guide-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.guide-section li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.guide-section li strong {
  color: var(--accent);
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.guide-card h3 {
  margin-top: 0;
}

.guide-card .tag {
  margin-bottom: 8px;
}

/* Aside / callout */
.callout {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 15px;
}

/* About page */
.about-section {
  max-width: 720px;
}

.about-section p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 15px;
  color: var(--muted);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2, .contact-line h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
}

.contact-item p {
  font-size: 15px;
  margin-bottom: 0;
}

.contact-item a {
  color: var(--accent);
}

.line-qr-placeholder {
  width: 180px;
  height: 180px;
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 16px auto;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
}

/* Product cards */
.product-cat {
  margin-bottom: 48px;
}

.product-cat h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 20px;
}

.product-cat > p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* Featured product on index */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-visual {
  background: var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  overflow: hidden;
}

.feature-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

/* Category index cards */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.cat-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cat-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.cat-card .tag {
  margin-top: 12px;
}

/* Index page hero decoration */
.hero-accent {
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 24px;
  animation: accentPulse 2s ease-in-out infinite;
}

@keyframes accentPulse {
  0%, 100% { width: 80px; opacity: 1; }
  50% { width: 100px; opacity: 0.7; }
}

/* Product detail table note */
.table-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

/* Fittings list */
.fitting-group {
  margin-bottom: 32px;
}

.fitting-group h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--accent);
}

.fitting-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

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

.fitting-name {
  font-weight: 600;
  min-width: 200px;
}

.fitting-desc {
  color: var(--muted);
}

@media (max-width: 480px) {
  .fitting-item { flex-direction: column; gap: 2px; }
  .fitting-name { min-width: auto; }
}

/* Visual pipe cards */
.pipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.pipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}

.pipe-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pipe-card-svg {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
}

.pipe-card-svg svg {
  width: 100%;
  height: 100%;
}

.pipe-card-size {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.pipe-card-od {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.pipe-classes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pipe-class {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.pipe-class-5 {
  background: oklch(96% 0.03 250);
  color: oklch(50% 0.06 250);
}

.pipe-class-85 {
  background: var(--accent-bg);
  color: var(--accent);
}

.pipe-class-135 {
  background: oklch(92% 0.05 145);
  color: var(--success);
}

.pipe-class-bar {
  font-weight: 700;
  font-size: 12px;
}

.pipe-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Visual fitting cards */
.fitting-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.fitting-visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s;
}

.fitting-visual-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.fitting-visual-svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.fitting-visual-svg svg {
  width: 100%;
  height: 100%;
}

.fitting-visual-info {
  flex: 1;
  min-width: 0;
}

.fitting-visual-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.fitting-visual-name small {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.fitting-visual-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.fitting-visual-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 4px;
}

.fitting-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.fitting-group-header h3 {
  font-size: 20px;
  margin-bottom: 0;
  color: var(--accent);
}

.fitting-group-header .type-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-bg);
  color: var(--accent);
}

@media (max-width: 640px) {
  .pipe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .fitting-visual-grid { grid-template-columns: 1fr; }
}

/* Product lead-in */
.product-lead-in {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.product-lead-in-visual {
  background: var(--border);
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-lead-in-text h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 12px;
}

.product-lead-in-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .product-lead-in { grid-template-columns: 1fr; }
  .product-lead-in-visual { aspect-ratio: 16/8; }
}

/* Utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Hero enhanced layout (padding defined above) */

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-pattern svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-pipe-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.hero-pipe-main {
  animation: pipeSlideIn 1s ease-out both;
}

.hero-pipe-branch {
  animation: pipeSlideIn 1s ease-out 0.2s both;
}

.hero-fitting {
  animation: pipePop 0.6s ease-out 0.4s both;
}

.hero-drop {
  animation: dropFlow 2s ease-in-out infinite;
}

.hero-drop:nth-child(2) { animation-delay: 0.5s; }
.hero-drop:nth-child(3) { animation-delay: 1s; }

@keyframes pipeSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pipePop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes dropFlow {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.4; transform: translateY(4px); }
}

.hero-text {
  text-align: left;
}

.hero-text .hero-accent {
  margin: 0 0 24px;
}

.hero-text h1 {
  text-align: left;
}

.hero-text p {
  text-align: left;
  margin-left: 0;
}

.hero-text .hero-actions {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-illustration {
    order: -1;
  }
  .hero-pipe-svg {
    max-width: 240px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .hero-accent {
    margin: 0 auto 24px;
  }
  .hero-text h1 {
    text-align: center;
  }
  .hero-text p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-text .hero-actions {
    justify-content: center;
  }
}

/* Trust bar */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.trust-item svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-items {
    gap: 16px;
  }
  .trust-item {
    font-size: 13px;
  }
}

/* Stats section */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 24px 12px;
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pressure class interactive */
.pressure-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pressure-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  min-width: 120px;
}

.pressure-tab:hover {
  border-color: var(--accent);
}

.pressure-tab.active {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.pressure-tab-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

.pressure-tab-value {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.pressure-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.pressure-visual {
  display: flex;
  justify-content: center;
}

.pressure-details h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pressure-details p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pressure-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pressure-visual {
    margin-bottom: 16px;
  }
}

/* Work wizard */
.work-wizard {
  max-width: 800px;
  margin: 0 auto;
}

.work-wizard-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.work-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.work-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.work-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

.work-btn svg {
  flex-shrink: 0;
}

.wizard-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: wizardFadeIn 0.3s ease-out;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .work-wizard-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .work-wizard-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .work-btn {
    padding: 14px 12px;
    font-size: 13px;
  }
}

/* Feature visual enhanced */
.feature-visual-enhanced {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feature-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-photo-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-photo-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.2);
}

/* Floating Line button */
.floating-line-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #06C755;
  color: white;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px oklch(0% 0 0 / 0.15), 0 2px 6px oklch(0% 0 0 / 0.1);
  transition: all 0.2s;
}

.floating-line-btn:hover {
  background: #05b54d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0% 0 0 / 0.2);
}

@media (max-width: 640px) {
  .floating-line-btn span {
    display: none;
  }
  .floating-line-btn {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ===========================
   ANIMATION SYSTEM
   =========================== */

/* Page load — hero stagger (only fires when .in-view is added) */
.hero-content.in-view > * {
  opacity: 0;
  animation: heroFadeUp 0.7s ease-out both;
}
.hero-content.in-view > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content.in-view > *:nth-child(2) { animation-delay: 0.25s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nav link underline slide */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

/* Button press effect */
.btn {
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover::before {
  opacity: 1;
}

/* Button glow on hover */
.btn-primary:hover {
  box-shadow: 0 4px 16px oklch(58% 0.18 255 / 0.3);
}
.btn-outline:hover {
  box-shadow: 0 4px 16px oklch(58% 0.18 255 / 0.15);
}

/* Card hover lift + shadow */
.cat-card, .pipe-card, .fitting-visual-card, .value-card-new, .stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover, .pipe-card:hover, .fitting-visual-card:hover, .value-card-new:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Stagger children on scroll */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger-children.is-visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 0.72s; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 0.80s; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 0.88s; }
.stagger-children.is-visible > *:nth-child(13) { transition-delay: 0.96s; }
.stagger-children.is-visible > *:nth-child(14) { transition-delay: 1.04s; }
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Trust bar items slide in (only when parent .in-view) */
.trust-bar.in-view .trust-item {
  opacity: 0;
  animation: trustSlideIn 0.5s ease-out both;
}
.trust-bar.in-view .trust-item:nth-child(1) { animation-delay: 0s; }
.trust-bar.in-view .trust-item:nth-child(2) { animation-delay: 0.1s; }
.trust-bar.in-view .trust-item:nth-child(3) { animation-delay: 0.2s; }
.trust-bar.in-view .trust-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes trustSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating Line button pulse */
.floating-line-btn {
  animation: floatPulse 3s ease-in-out infinite;
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 16px oklch(0% 0 0 / 0.15), 0 2px 6px oklch(0% 0 0 / 0.1); }
  50% { box-shadow: 0 4px 24px oklch(6% 0.18 145 / 0.35), 0 2px 10px oklch(6% 0.18 145 / 0.15); }
}

/* Breadcrumb slide in (only when in-view) */
.breadcrumb.in-view {
  opacity: 0;
  animation: breadcrumbSlide 0.4s ease-out both;
}
@keyframes breadcrumbSlide {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Page header fade (only when in-view) */
.page-header.in-view {
  opacity: 0;
  animation: pageHeaderFade 0.5s ease-out both;
}
@keyframes pageHeaderFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab content transition */
.pressure-content {
  transition: opacity 0.2s ease;
}
.pressure-content.switching {
  opacity: 0;
}

/* Wizard result smooth transition */
.wizard-result-card,
.result-card {
  animation: cardSlideIn 0.35s ease-out;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Size bar fill animation (only when parent .in-view) */
.size-bar-section.in-view .size-bar-fill {
  transform-origin: left;
  animation: barGrow 0.8s ease-out both;
}
.size-bar-section.in-view .size-bar:nth-child(1) .size-bar-fill { animation-delay: 0.05s; }
.size-bar-section.in-view .size-bar:nth-child(2) .size-bar-fill { animation-delay: 0.1s; }
.size-bar-section.in-view .size-bar:nth-child(3) .size-bar-fill { animation-delay: 0.15s; }
.size-bar-section.in-view .size-bar:nth-child(4) .size-bar-fill { animation-delay: 0.2s; }
.size-bar-section.in-view .size-bar:nth-child(5) .size-bar-fill { animation-delay: 0.25s; }
.size-bar-section.in-view .size-bar:nth-child(6) .size-bar-fill { animation-delay: 0.3s; }
.size-bar-section.in-view .size-bar:nth-child(7) .size-bar-fill { animation-delay: 0.35s; }
.size-bar-section.in-view .size-bar:nth-child(8) .size-bar-fill { animation-delay: 0.4s; }
.size-bar-section.in-view .size-bar:nth-child(9) .size-bar-fill { animation-delay: 0.45s; }
.size-bar-section.in-view .size-bar:nth-child(10) .size-bar-fill { animation-delay: 0.5s; }
.size-bar-section.in-view .size-bar:nth-child(11) .size-bar-fill { animation-delay: 0.55s; }
.size-bar-section.in-view .size-bar:nth-child(12) .size-bar-fill { animation-delay: 0.6s; }
.size-bar-section.in-view .size-bar:nth-child(13) .size-bar-fill { animation-delay: 0.65s; }
.size-bar-section.in-view .size-bar:nth-child(14) .size-bar-fill { animation-delay: 0.7s; }

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Pipe card SVG drawing animation */
.pipe-card-svg svg circle,
.pipe-card-svg svg rect {
  transition: transform 0.3s ease;
}
.pipe-card:hover .pipe-card-svg svg {
  animation: pipeCardPop 0.4s ease-out;
}
@keyframes pipeCardPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Pressure visual circle animate */
#pressure-svg circle {
  transition: r 0.4s ease, stroke 0.3s ease, fill 0.3s ease;
}

/* Accordion smooth open */
.accordion-body {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-header {
  transition: background 0.15s ease;
}
.accordion-header:active {
  background: var(--accent-bg);
}

/* FAQ item hover */
.faq-item {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-question:active {
  transform: scale(0.99);
}

/* Contact card hover */
.contact-item {
  transition: transform 0.2s ease;
}
.contact-item:hover {
  transform: translateX(4px);
}

/* Order step cards */
.card-grid .card {
  position: relative;
  overflow: hidden;
}
.card-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.card-grid .card:hover::before {
  transform: scaleX(1);
}

/* Timeline dot pulse */
.timeline-dot {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px var(--accent-bg);
}

/* Range pipe bars animate (only when parent .in-view) */
.range-pipe-bar {
  transition: height 0.4s ease, background 0.2s ease;
}
.range-visual.in-view .range-pipe {
  opacity: 0;
  animation: rangeBarGrow 0.5s ease-out both;
}
.range-visual.in-view .range-pipe:nth-child(1) { animation-delay: 0.1s; }
.range-visual.in-view .range-pipe:nth-child(2) { animation-delay: 0.15s; }
.range-visual.in-view .range-pipe:nth-child(3) { animation-delay: 0.2s; }
.range-visual.in-view .range-pipe:nth-child(4) { animation-delay: 0.25s; }
.range-visual.in-view .range-pipe:nth-child(5) { animation-delay: 0.3s; }
.range-visual.in-view .range-pipe:nth-child(6) { animation-delay: 0.35s; }
.range-visual.in-view .range-pipe:nth-child(7) { animation-delay: 0.4s; }
.range-visual.in-view .range-pipe:nth-child(8) { animation-delay: 0.45s; }
.range-visual.in-view .range-pipe:nth-child(9) { animation-delay: 0.5s; }
.range-visual.in-view .range-pipe:nth-child(10) { animation-delay: 0.55s; }
.range-visual.in-view .range-pipe:nth-child(11) { animation-delay: 0.6s; }
.range-visual.in-view .range-pipe:nth-child(12) { animation-delay: 0.65s; }
.range-visual.in-view .range-pipe:nth-child(13) { animation-delay: 0.7s; }
.range-visual.in-view .range-pipe:nth-child(14) { animation-delay: 0.75s; }

@keyframes rangeBarGrow {
  from { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
  to { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
}

/* Feature photo reveal */
.feature-photo img {
  transition: transform 0.6s ease;
}
.feature-visual-enhanced:hover .feature-photo img {
  transform: scale(1.03);
}

/* Line CTA hover */
.line-cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.line-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Stat number pop */
.stat-number {
  transition: transform 0.2s ease;
}
.stat-card:hover .stat-number {
  transform: scale(1.05);
}

/* Footer link slide */
.footer-col a {
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* Pressure tab hover ring */
.pressure-tab {
  position: relative;
}
.pressure-tab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.pressure-tab:hover::before {
  border-color: var(--accent);
  opacity: 0.3;
}

/* Work button hover */
.work-btn {
  position: relative;
}
.work-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: width 0.25s ease, left 0.25s ease;
}
.work-btn:hover::after,
.work-btn.active::after {
  width: 40%;
  left: 30%;
}

/* Pipe selector button press */
.pipe-selector button:active,
.recommend-card:active {
  transform: scale(0.96);
}

/* Measure step connector animation (only when parent .in-view) */
.measure-steps.in-view .measure-step {
  opacity: 0;
  animation: stepFadeIn 0.5s ease-out both;
}
.measure-steps.in-view .measure-step:nth-child(1) { animation-delay: 0.1s; }
.measure-steps.in-view .measure-step:nth-child(2) { animation-delay: 0.25s; }
.measure-steps.in-view .measure-step:nth-child(3) { animation-delay: 0.4s; }
.measure-steps.in-view .measure-step:nth-child(4) { animation-delay: 0.55s; }

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Pressure bar hover lift */
.pressure-bar {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.pressure-bar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Pipe cross SVG animate */
.pipe-cross svg circle {
  transition: stroke-width 0.3s ease;
}

/* QR code fade in (only when parent .in-view) */
.contact-line.in-view #qr-code img,
.qr-container.in-view img {
  opacity: 0;
  animation: qrFadeIn 0.4s ease-out 0.2s both;
}
@keyframes qrFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Section divider shimmer */
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Scroll reveal for stagger sections */
.stagger-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav scroll shadow */
nav.scrolled {
  box-shadow: var(--shadow-sm);
}
