/* ===== TOKENS ===== */
:root {
  --frost-black: #0B0F12;
  --steel-panel: #12181C;
  --steel-panel-2: #161D22;
  --condensation-blue: #6FC8E0;
  --warning-amber: #E8A23C;
  --vapor-white: #EDF2F4;
  --steel-grey: #8B9AA3;
  --border-soft: rgba(111, 200, 224, 0.14);
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--frost-black);
  color: var(--vapor-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--condensation-blue); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--condensation-blue);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow-amber { color: var(--warning-amber); }

.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
.section-title.center { text-align: center; margin-bottom: 56px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 4px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--condensation-blue); color: var(--frost-black); }
.btn-primary:hover { background: #8ad6ea; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-soft); color: var(--vapor-white); }
.btn-ghost:hover { border-color: var(--condensation-blue); color: var(--condensation-blue); }
.btn-amber { background: var(--warning-amber); color: var(--frost-black); }
.btn-amber:hover { background: #f0b158; transform: translateY(-1px); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 15, 18, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--border-soft); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--condensation-blue); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--steel-grey); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--vapor-white); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 8px 32px 20px;
  background: rgba(11,15,18,0.98); border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu.open { display: flex; }
.mobile-menu .btn { margin-top: 12px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero { padding: 160px 0 100px; position: relative; z-index: 2; }
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.03; letter-spacing: -0.01em; margin-bottom: 24px;
}
.accent-text { color: var(--condensation-blue); }
.hero-sub { color: var(--steel-grey); font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { font-family: var(--font-mono); font-size: 12px; color: var(--steel-grey); display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta .sep { opacity: 0.4; }

/* Control panel widget */
.hero-panel { position: relative; }
.panel-frame {
  background: linear-gradient(160deg, var(--steel-panel), var(--steel-panel-2));
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 60px rgba(111, 200, 224, 0.06), inset 0 1px 0 rgba(255,255,255,0.03);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.panel-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel-grey); }
.panel-live { font-family: var(--font-mono); font-size: 11px; color: #4ADE80; display: flex; align-items: center; gap: 6px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; animation: pulse-dot 1.6s infinite; }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-zone {
  background: rgba(0,0,0,0.25); border: 1px solid var(--border-soft); border-radius: 6px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.zone-label { font-family: var(--font-mono); font-size: 10px; color: var(--steel-grey); letter-spacing: 0.06em; }
.zone-temp { font-family: var(--font-mono); font-size: 26px; font-weight: 500; color: var(--condensation-blue); }
.zone-status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; width: fit-content; padding: 2px 8px; border-radius: 3px; }
.zone-status.ok { background: rgba(74, 222, 128, 0.12); color: #4ADE80; }
.panel-divider { height: 1px; background: var(--border-soft); margin: 20px 0; }
.panel-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-family: var(--font-mono); font-size: 10px; color: var(--steel-grey); letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-mono); font-size: 15px; color: var(--vapor-white); }
.panel-caption { font-size: 11px; color: var(--steel-grey); margin-top: 20px; line-height: 1.5; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 60px; }
}

/* ===== FROST DIVIDER ===== */
.frost-divider {
  height: 1px; max-width: 1180px; margin: 0 auto;
  background: var(--border-soft);
  position: relative; overflow: hidden;
}
.frost-divider::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--condensation-blue), transparent);
  transform: translateX(-100%); opacity: 0;
  transition: transform 1.2s ease, opacity 1.2s ease;
}
.frost-divider.frosted::after { transform: translateX(0); opacity: 0.6; }

/* ===== COMMITMENTS ===== */
.commitments { padding: 48px 0; }
.commitments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.commit-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.commit-item svg { width: 30px; height: 30px; }
.commit-item span { font-size: 13px; color: var(--steel-grey); font-weight: 500; }
@media (max-width: 760px) { .commitments-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== WHY ===== */
.why { padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.why-label h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
.why-body p { color: var(--steel-grey); margin-bottom: 18px; font-size: 16px; max-width: 560px; }
.why-body p:last-child { color: var(--vapor-white); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ===== SERVICES ===== */
.services { padding: 60px 0 100px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--steel-panel); border: 1px solid var(--border-soft); border-radius: 10px;
  padding: 30px 24px; transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover { border-color: var(--condensation-blue); transform: translateY(-4px); }
.service-num { font-family: var(--font-mono); color: var(--condensation-blue); font-size: 13px; }
.service-card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 14px 0 10px; }
.service-card p { color: var(--steel-grey); font-size: 14px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== INDUSTRIES ===== */
.industries { padding: 40px 0 100px; }
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.industry-item { background: var(--frost-black); padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.industry-item svg { width: 32px; height: 32px; }
.industry-item span { font-size: 14px; font-weight: 500; }
@media (max-width: 760px) { .industries-grid { grid-template-columns: 1fr 1fr; } }

/* ===== PROCESS ===== */
.process { padding: 40px 0 110px; }
.process-line { position: relative; }
.process-pipe {
  position: absolute; top: 22px; left: 5%; right: 5%; height: 2px;
  background: rgba(139,154,163,0.2); z-index: 0; display: none;
}
.pipe-flow {
  position: absolute; top: -1px; left: 0; height: 4px; width: 40px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--condensation-blue), transparent);
  animation: flow 3.5s linear infinite;
}
@keyframes flow { from { left: -40px; } to { left: 100%; } }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.step-marker {
  width: 44px; height: 44px; border-radius: 50%; background: var(--steel-panel);
  border: 1.5px solid var(--condensation-blue); color: var(--condensation-blue);
  font-family: var(--font-mono); font-size: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.process-step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--steel-grey); font-size: 14px; margin-bottom: 12px; }
.step-time { font-family: var(--font-mono); font-size: 11px; color: var(--condensation-blue); }
@media (min-width: 761px) { .process-pipe { display: block; } }
@media (max-width: 760px) { .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

/* ===== WORK ===== */
.work { padding: 40px 0 100px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.work-card { background: var(--steel-panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 20px; }
.blueprint { width: 100%; height: auto; background: rgba(0,0,0,0.3); border-radius: 6px; margin-bottom: 16px; }
.work-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.work-card p { color: var(--steel-grey); font-size: 13px; }
.work-note { text-align: center; color: var(--steel-grey); font-size: 12px; font-style: italic; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* ===== EMERGENCY ===== */
.emergency { padding: 44px 0; background: linear-gradient(90deg, rgba(232,162,60,0.1), transparent); border-top: 1px solid rgba(232,162,60,0.2); border-bottom: 1px solid rgba(232,162,60,0.2); }
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.emergency h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; max-width: 560px; }

/* ===== FAQ ===== */
.faq { padding: 100px 0; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; color: var(--vapor-white); font-family: var(--font-body);
  font-size: 16px; font-weight: 500; padding: 22px 4px; cursor: pointer; text-align: left; gap: 20px;
}
.faq-icon { font-family: var(--font-mono); color: var(--condensation-blue); font-size: 20px; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { color: var(--steel-grey); padding: 0 4px 22px; font-size: 14px; max-width: 640px; }
.faq-item.open .faq-a { max-height: 200px; }

/* ===== CONTACT ===== */
.contact { padding: 40px 0 110px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-bottom: 16px; }
.contact-sub { color: var(--steel-grey); margin-bottom: 32px; max-width: 420px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-form { background: var(--steel-panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-soft); border-radius: 6px;
  padding: 13px 14px; color: var(--vapor-white); font-family: var(--font-body); font-size: 14px;
  width: 100%;
}
.contact-form select { appearance: none; }
.contact-form ::placeholder { color: var(--steel-grey); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--condensation-blue); outline: none; }
.form-success { display: none; text-align: center; padding: 20px; color: var(--condensation-blue); font-family: var(--font-mono); font-size: 14px; }
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } .form-row { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--steel-grey); flex-wrap: wrap; }
.footer-links a:hover { color: var(--condensation-blue); }
.footer-copy { font-size: 12px; color: var(--steel-grey); font-family: var(--font-mono); }
