:root {
  interpolate-size: allow-keywords;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #1D2939;
  --accent: #2563EB;
  --accent-2: #10B981;
  --line: rgba(29,41,57,0.12);
  --line-strong: rgba(29,41,57,0.22);
  --surface-2: rgba(37,99,235,0.06);
  --header-h: 72px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px -2px rgba(29,41,57,0.08);
  --shadow-md: 0 8px 24px -8px rgba(29,41,57,0.12);
  --shadow-lg: 0 16px 48px -12px rgba(29,41,57,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; max-width: 100vw; margin: 0; }

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mono { font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 240ms cubic-bezier(.2,.7,.2,1); }
a:hover { color: var(--ink); }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 4px;
  font-size: 14px; z-index: 9999;
  transition: top 200ms;
}
.skip-link:focus { top: 8px; }

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1080;
  background: rgba(244,246,249, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease;
  height: var(--header-h);
  display: flex; align-items: center;
}
.site-header.scrolled {
  background: #F4F6F9;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.logo {
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.logo svg { width: 32px; height: 32px; }
.logo span { color: var(--accent); }

/* Nav desktop */
.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
  transition: color 240ms cubic-bezier(.2,.7,.2,1);
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-desktop a:hover { color: var(--accent); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--accent); }

.nav-desktop .nav-cta {
  background: var(--ink); color: var(--surface);
  padding: 10px 20px; border-radius: 6px;
  font-weight: 600; font-size: 0.85rem;
  transition: background 240ms, color 240ms, transform 180ms;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--accent); color: var(--surface); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none; position: relative; z-index: 1100;
  width: 44px; height: 44px;
  background: transparent; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  border-radius: 2px; transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 200ms;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw);
  background: var(--surface);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  padding: 100px 32px 32px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer a {
  display: block; padding: 14px 16px; font-size: 1rem; font-weight: 500;
  color: var(--ink); border-radius: 8px;
  transition: background 200ms, color 200ms;
}
.mobile-drawer a:hover,
.mobile-drawer a.is-active { background: var(--surface-2); color: var(--accent); }
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 1040;
  opacity: 0; pointer-events: none;
  transition: opacity 240ms;
}
.drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* ========== MAIN ========== */
main { padding-top: var(--header-h); }
main section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ========== HERO ========== */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 8vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -20%; right: -20%; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent);
  margin-bottom: 20px;
}
.hero-badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(37,99,235,0.1); color: var(--accent);
  border-radius: 100px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: var(--ink);
  white-space: pre-line;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(29,41,57,0.7);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: background 240ms, transform 180ms, color 240ms;
  margin-bottom: 48px;
}
.hero-cta:hover { background: var(--ink); color: var(--surface); transform: translateY(-2px); }

/* Hero stats */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 720px; margin: 0 auto;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.stat-box:hover {
  border-color: var(--accent-2);
  box-shadow: 0 4px 16px -4px rgba(16,185,129,0.15);
}
.stat-value {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent-2);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem; color: rgba(29,41,57,0.6);
  font-weight: 500;
}

/* Hero machine diagram SVG decoration */
.hero-diagram {
  position: absolute; top: 50%; right: -5%; transform: translateY(-50%);
  width: 280px; height: 400px; opacity: 0.06;
  pointer-events: none;
}
@media (max-width: 1024px) { .hero-diagram { display: none; } }

/* ========== SECTIONS COMMON ========== */
section { padding: clamp(48px, 8vw, 96px) 0; }
.section-eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem; color: rgba(29,41,57,0.65);
  max-width: 560px; margin-bottom: 40px;
}

/* ========== PRODUCT CARDS (#makineler) ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px -8px rgba(37,99,235,0.14);
}
.product-feature-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  color: var(--accent);
}
.product-card h3 {
  font-size: 1.1rem; margin-bottom: 12px;
}
.product-feature-specs {
  list-style: none; margin-bottom: 20px;
}
.product-feature-specs li {
  font-size: 0.85rem; color: rgba(29,41,57,0.7);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between;
}
.product-feature-specs li:last-child { border-bottom: none; }
.product-feature-specs .spec-val {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-weight: 500; font-size: 0.82rem; color: var(--ink);
}
.price-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-weight: 700; font-size: 0.9rem;
  background: rgba(16,185,129,0.1); color: var(--accent-2);
  padding: 6px 14px; border-radius: 100px;
}
.price-note {
  font-size: 0.72rem; color: rgba(29,41,57,0.5);
  margin-top: 8px; font-style: italic;
}

/* ========== COMPARISON TABLE (#karsilastirma) ========== */
.table-scroll {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }

.compare-table {
  border-collapse: collapse; font-size: 0.88rem;
}
.compare-table thead { background: var(--ink); color: #fff; }
.compare-table th {
  padding: 14px 18px; text-align: left;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.compare-table td {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-table .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,0.12); color: var(--accent-2);
}
.compare-table .cross {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(239,68,68,0.08); color: #EF4444;
}

/* ========== RENTAL SECTION (#kiralama) ========== */
.rental-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start;
}
@media (max-width: 768px) { .rental-grid { grid-template-columns: 1fr; } }

.rental-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1);
}
.rental-card:hover { border-color: var(--accent); }
.rental-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.rental-card .price-hero {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-weight: 700; font-size: 2rem;
  color: var(--accent-2); margin-bottom: 4px;
}
.rental-card .price-period {
  font-size: 0.82rem; color: rgba(29,41,57,0.5); margin-bottom: 20px;
}
.rental-features {
  list-style: none;
}
.rental-features li {
  padding: 8px 0; font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--line);
}
.rental-features li:last-child { border-bottom: none; }
.rental-features li svg { flex-shrink: 0; color: var(--accent-2); }

/* ========== SERVICE (#servis) ========== */
.service-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 768px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px -8px rgba(16,185,129,0.12);
}
.service-card h3 {
  font-size: 1.05rem; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.service-card h3 svg { color: var(--accent); flex-shrink: 0; }
.service-list {
  list-style: none;
}
.service-list li {
  padding: 7px 0; font-size: 0.88rem;
  color: rgba(29,41,57,0.75);
  display: flex; align-items: flex-start; gap: 8px;
}
.service-list li::before {
  content: ''; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); margin-top: 8px;
}
.sla-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.08); color: var(--accent);
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-weight: 500; font-size: 0.78rem;
  padding: 6px 14px; border-radius: 100px;
  margin-top: 16px;
}

/* ========== QUOTE FORM (#teklif) ========== */
.form-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  max-width: 680px;
  margin: 0 auto;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.full { grid-column: 1 / -1; }

.field input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px; height: 18px;
  min-width: 18px; min-height: 18px;
  padding: 0; border: 0; margin: 2px 0 0;
  accent-color: var(--accent);
}
.field-checkbox {
  flex-direction: row; align-items: flex-start; gap: 10px;
}
.field-checkbox label { font-size: 0.82rem; font-weight: 400; line-height: 1.4; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--surface);
  padding: 14px 32px; border-radius: 8px;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  transition: background 240ms, color 240ms, transform 180ms;
  width: 100%;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); color: var(--surface); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); padding: 12px 24px;
  border-radius: 8px; font-weight: 500; font-size: 0.92rem;
  cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms;
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--surface); color: var(--ink); border-color: var(--accent); }

.form-success {
  display: none; text-align: center; padding: 32px;
}
.form-success.is-visible { display: block; }
.form-success svg { color: var(--accent-2); margin-bottom: 12px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: rgba(29,41,57,0.6); font-size: 0.92rem; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { max-width: 280px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 {
  color: #fff; font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 16px;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.footer-col a {
  display: block; padding: 5px 0; font-size: 0.85rem;
  color: rgba(255,255,255,0.6); transition: color 200ms;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 520px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 240ms;
  z-index: 9999;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
@media (min-width: 768px) { .cookie-banner { left: 24px; right: auto; max-width: 420px; } }

.cookie-banner h4 {
  font-size: 0.95rem; margin-bottom: 8px;
}
.cookie-banner p {
  font-size: 0.82rem; color: rgba(29,41,57,0.65); line-height: 1.5; margin-bottom: 16px;
}
.cookie-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cookie-btns button {
  flex: 1; min-width: 100px; min-height: 44px;
  padding: 10px 16px; border-radius: 6px;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--line);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.cookie-btns .cookie-accept {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.cookie-btns .cookie-accept:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cookie-btns .cookie-reject {
  background: var(--bg); color: var(--ink); border-color: var(--line-strong);
}
.cookie-btns .cookie-reject:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cookie-btns .cookie-settings {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.cookie-btns .cookie-settings:hover { background: var(--bg); color: var(--ink); border-color: var(--ink); }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.no-js .reveal { opacity: 1; transform: none; }

/* ========== NICHE ANIMATIONS ========== */

/* 1. Soft-serve swirl — rotating on product cards */
@keyframes soft-serve-swirl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.product-feature-icon .swirl-ring {
  transform-origin: center;
  animation: soft-serve-swirl 8s linear infinite;
}

/* 2. Cooling vapor — subtle upward drift in hero */
@keyframes cooling-vapor {
  0% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { opacity: 0.2; }
  100% { transform: translateY(-40px) scale(1.3); opacity: 0; }
}
.vapor-particle {
  position: absolute; width: 4px; height: 4px;
  background: var(--accent-2); border-radius: 50%;
  animation: cooling-vapor 4s ease-out infinite;
  pointer-events: none;
}
.vapor-particle:nth-child(2) { animation-delay: 1.2s; left: 30%; }
.vapor-particle:nth-child(3) { animation-delay: 2.4s; left: 60%; }
.vapor-particle:nth-child(4) { animation-delay: 0.8s; left: 80%; }

/* 3. Compressor pulse — stat boxes */
@keyframes compressor-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.08); }
}
.stat-box { animation: compressor-pulse 3s ease-in-out infinite; }
.stat-box:nth-child(2) { animation-delay: 1s; }
.stat-box:nth-child(3) { animation-delay: 2s; }

/* 4. Temperature gauge — dashed border animation on service cards */
@keyframes temp-gauge {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}
.service-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  pointer-events: none; opacity: 0;
  transition: opacity 300ms;
}
.service-card { position: relative; overflow: hidden; }
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover::after { transform: translateX(100%); }

/* 5. Frozen crystal formation — rental card hover */
@keyframes crystal-form {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: scale(1) rotate(60deg); opacity: 0; }
}
.rental-card { position: relative; overflow: hidden; }
.rental-card::before {
  content: ''; position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 30%, transparent 70%);
  border-radius: 50%; opacity: 0;
  transition: opacity 300ms;
}
.rental-card:hover::before {
  opacity: 1;
  animation: crystal-form 1.5s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .vapor-particle,
  .product-feature-icon .swirl-ring { animation: none; }
  .stat-box { animation: none; }
  .service-card::after { transition: none; }
  .rental-card:hover::before { animation: none; }
}

/* ========== PAGES ========== */
.page-header {
  padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-header p { color: rgba(29,41,57,0.6); font-size: 1rem; max-width: 500px; margin: 0 auto; }

.page-content {
  max-width: 760px; margin: 0 auto;
  padding-bottom: 64px;
  line-height: 1.7;
}
.page-content h2 { font-size: 1.4rem; margin: 40px 0 16px; }
.page-content h3 { font-size: 1.1rem; margin: 28px 0 12px; }
.page-content p { margin-bottom: 16px; color: rgba(29,41,57,0.8); }
.page-content ul, .page-content ol {
  margin: 12px 0 20px 20px;
}
.page-content li { margin-bottom: 8px; font-size: 0.92rem; color: rgba(29,41,57,0.75); }

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-channels {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.contact-row {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 12px; border-radius: 8px;
  transition: background 240ms cubic-bezier(.2,.7,.2,1), transform 240ms cubic-bezier(.2,.7,.2,1);
}
.contact-row:hover { background: var(--surface-2); transform: translateX(4px); }
.contact-row svg {
  width: 20px; height: 20px; color: var(--ink);
  transition: color 240ms, transform 240ms;
  margin-top: 2px;
}
.contact-row:hover svg { color: var(--accent); transform: scale(1.08); }
.contact-row-label { font-size: 0.78rem; font-weight: 600; color: rgba(29,41,57,0.5); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-row-value { font-size: 0.92rem; color: var(--ink); word-break: break-word; overflow-wrap: anywhere; }
.contact-row-value a { color: var(--ink); }
.contact-row-value a:hover { color: var(--accent); }

/* ========== FAQ ========== */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 18px 0; cursor: pointer;
  font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: var(--accent);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-item > .faq-body {
  height: 0;
  padding: 0 clamp(18px, 3vw, 28px);
  overflow: hidden;
  transition: height 360ms cubic-bezier(.2,.7,.2,1),
              padding-block-end 360ms cubic-bezier(.2,.7,.2,1);
}
.faq-item[open] > .faq-body {
  height: auto;
  padding-block-end: 26px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item > .faq-body { transition: none; }
}
.faq-body p { font-size: 0.88rem; color: rgba(29,41,57,0.7); line-height: 1.7; }

/* ========== 404 ========== */
.page-404 {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 64px 24px;
}
.page-404 h1 {
  font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--accent); margin-bottom: 16px;
}
.page-404 p { font-size: 1.1rem; color: rgba(29,41,57,0.6); margin-bottom: 32px; }

/* ========== SITEMAP PAGE ========== */
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sitemap-list a { font-weight: 500; }

/* ========== FOCUS RING ========== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== PRINT ========== */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle, .mobile-drawer, .drawer-backdrop { display: none !important; }
  main { padding-top: 0; }
  body { background: #fff; color: #000; }
}

/* Hero stats responsive */
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 280px; }
}

/* Dashed connection lines decoration */
.dashed-lines {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.dashed-lines line {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 6 4;
}

/* ========== VISUAL ENHANCEMENTS & BUG FIXES ========== */

/* --- Mobile cookie banner: full-width stacked buttons, no footer overlap --- */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0; left: 0; right: 0;
    max-width: none; margin: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 16px;
  }
  .cookie-btns { flex-direction: column; }
  .cookie-btns button { flex: none; width: 100%; }
}

/* --- Stagger reveal for grid items --- */
.products-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.products-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.products-grid .reveal:nth-child(4) { transition-delay: 300ms; }
.service-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.service-grid .reveal:nth-child(3) { transition-delay: 240ms; }
.service-grid .reveal:nth-child(4) { transition-delay: 360ms; }
.rental-grid .reveal:nth-child(2) { transition-delay: 150ms; }
.hero-stats .reveal:nth-child(2) { transition-delay: 120ms; }
.hero-stats .reveal:nth-child(3) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .products-grid .reveal,
  .service-grid .reveal,
  .rental-grid .reveal,
  .hero-stats .reveal { transition-delay: 0ms !important; }
}

/* --- Frost shimmer on product cards (cooling theme) --- */
.product-card { overflow: hidden; }
.product-card::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.06), transparent);
  pointer-events: none; z-index: 0;
  transition: left 700ms cubic-bezier(.2,.7,.2,1);
}
.product-card:hover::before { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .product-card::before { display: none; }
}

/* --- Enhanced stat box hover --- */
.stat-box {
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1);
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px -4px rgba(16,185,129,0.2), 0 4px 16px -4px rgba(16,185,129,0.15);
}

/* --- Enhanced rental card hover with cool glow --- */
.rental-card {
  transition: border-color 280ms cubic-bezier(.2,.7,.2,1), transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.rental-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(37,99,235,0.12);
}

/* --- Image polish (rounded corners + shadow) --- */
.hero img,
.page-content img,
section > .container > img {
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.hero img { margin: 0 auto 32px; }

/* --- Page content visual hierarchy (left accent border on h2) --- */
.page-content h2 {
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

/* --- Footer link micro-interaction --- */
.footer-col a { transition: color 200ms, transform 200ms; }
.footer-col a:hover { transform: translateX(3px); }

/* --- FAQ summary hover --- */
.faq-item summary { transition: color 200ms cubic-bezier(.2,.7,.2,1); }
.faq-item summary:hover { color: var(--accent); }

/* --- Contact row hover glow --- */
.contact-row:hover { box-shadow: var(--shadow-sm); }

/* --- Hero CTA pulse glow (cooling theme) --- */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.25); }
  50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); }
}
.hero-cta { animation: cta-glow 2.8s ease-in-out infinite; }
.hero-cta:hover { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-cta { animation: none; }
}

/* --- Enhanced focus ring --- */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}

/* --- Table scroll fade indicator (mobile) --- */
@media (max-width: 768px) {
  .table-scroll { position: relative; }
  .table-scroll::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 32px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.92));
    pointer-events: none;
    border-radius: 0 6px 6px 0;
    transition: opacity 300ms;
  }
}

/* --- Mobile cookie banner: tighter layout --- */
@media (max-width: 480px) {
  .cookie-banner p { font-size: 0.78rem; margin-bottom: 12px; }
  .cookie-banner h4 { font-size: 0.88rem; margin-bottom: 6px; }
  .cookie-btns button { min-height: 46px; font-size: 0.84rem; }
}

/* --- Hamburger hover/active feedback --- */
.nav-toggle:hover span { background: var(--accent); }
.nav-toggle:active { transform: scale(0.95); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle:active { transform: none; }
}

/* --- Comparison table frost header --- */
.compare-table thead {
  background: linear-gradient(135deg, var(--ink) 0%, #263550 100%);
}
.compare-table tbody tr {
  transition: background 220ms cubic-bezier(.2,.7,.2,1);
}

/* --- FAQ accordion icon rotation --- */
.faq-item summary::after {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), background 200ms;
}
.faq-item summary:hover::after {
  background: rgba(37,99,235,0.12);
}
.faq-item[open] summary::after {
  background: rgba(16,185,129,0.1);
  color: var(--accent-2);
}

/* --- Cool-breeze keyframe for hero section --- */
@keyframes cool-breeze {
  0%, 100% { opacity: 0.04; transform: translateX(0); }
  50% { opacity: 0.08; transform: translateX(8px); }
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.03) 100%);
  pointer-events: none;
  animation: cool-breeze 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; opacity: 0.04; }
}

/* --- Rental card price color pulse --- */
@keyframes price-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.rental-card .price-hero {
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.rental-card:hover .price-hero {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .rental-card:hover .price-hero { transform: none; }
}

/* --- Service card icon color transition --- */
.service-card h3 svg {
  transition: color 280ms, transform 280ms cubic-bezier(.2,.7,.2,1);
}
.service-card:hover h3 svg {
  color: var(--accent-2);
  transform: scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover h3 svg { transform: none; }
}

/* --- Product card image area subtle lift --- */
.product-feature-icon {
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .product-feature-icon {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-feature-icon { transform: none; }
}

/* --- SLA badge hover glow --- */
.sla-badge {
  transition: box-shadow 280ms, transform 200ms;
}
.service-card:hover .sla-badge {
  box-shadow: 0 2px 12px -4px rgba(37,99,235,0.2);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .service-card:hover .sla-badge { transform: none; }
}

/* --- Price badge hover micro-interaction --- */
.price-badge {
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms;
}
.product-card:hover .price-badge {
  transform: scale(1.05);
  box-shadow: 0 2px 10px -3px rgba(16,185,129,0.25);
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .price-badge { transform: none; }
}

/* --- Narrow table (2-col) — no forced min-width on mobile --- */
.table-scroll.table-scroll--fit > table { min-width: 0; }

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 1;
  pointer-events: none;
}

/* ========== DRAWER CLOSE BUTTON ========== */
.drawer-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms cubic-bezier(.2,.7,.2,1), color 200ms;
  z-index: 1;
}
.drawer-close:hover {
  background: var(--surface-2);
  color: var(--accent);
}
