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

:root {
  --bg:      #0a0a0a;
  --bg2:     #111;
  --border:  #1e1e1e;
  --accent:  #f44336;
  --accent2: #c62828;
  --text:    #e8e8e8;
  --muted:   #999;
  --radius:  4px;
  --nav-h:   56px;
  --max-w:   960px;
  --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


/* ─── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
}
.nav-logo img { height: 30px; }
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-support {
  color: var(--accent) !important; font-weight: 600 !important;
}
.nav-support:hover { color: #fff !important; }

.nav-icon {
  font-size: 16px !important; color: var(--accent) !important;
  text-shadow: 0 0 6px var(--accent), 0 0 14px rgba(229,57,53,.4);
  animation: glow-pulse 2s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 6px var(--accent), 0 0 14px rgba(229,57,53,.4); }
  50% { text-shadow: 0 0 10px var(--accent), 0 0 24px rgba(229,57,53,.6); }
}

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 6px 16px; border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 1px; }


/* ─── Mobile menu ─────────────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.95);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; font-weight: 600; color: var(--text); }
.mobile-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 22px; cursor: pointer; color: var(--muted);
  background: none; border: none;
}


/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 16px) 24px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../images/winols-bg.png') center center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, var(--bg) 75%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.hero-inner { text-align: center; }

.hero-logo {
  width: 400px; height: auto;
  margin: 0 auto 8px;
}

.hero-actions { justify-content: center; }

.hero-sub {
  font-size: 16px; color: #999; max-width: 480px;
  line-height: 1.7; margin: 0 auto 20px;
}

.hero-actions { display: flex; gap: 10px; }

.btn {
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: background .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: #444; color: var(--text); }


/* ─── Sections ────────────────────────────────────────────────────────────── */
section { padding: 72px 24px; border-bottom: 1px solid var(--border); }
section:nth-child(even) { background: var(--bg2); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

section h2 {
  font-size: 24px; font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 14px; color: var(--muted); max-width: 520px;
  line-height: 1.7; margin-bottom: 36px;
}

.note {
  font-size: 13px; color: var(--muted); margin-top: 24px;
}
.note a { color: var(--accent); }


/* ─── Services ────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.svc { background: var(--bg); padding: 24px; }
section:nth-child(even) .svc { background: var(--bg2); }
.svc h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.svc p { font-size: 13px; color: var(--muted); line-height: 1.6; }




/* ─── Section backgrounds ────────────────────────────────────────────────── */
.bg-photo {
  position: relative; overflow: hidden;
}
.bg-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
  pointer-events: none;
}
.bg-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--bg) 75%);
  pointer-events: none;
}
.bg-photo .section-inner { position: relative; z-index: 1; }

#ecutek.bg-photo::before  { background-image: url('../images/photo1.jpeg'); }
#linkecu.bg-photo::before { background-image: url('../images/photo2.jpeg'); background-position: center 30%; }

.bg-video-el {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  opacity: 0.25;
  pointer-events: none;
}
.bg-video::before { display: none; }
/* ─── Custom Projects ────────────────────────────────────────────────────── */
.projects-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.projects-content .section-sub { margin-bottom: 24px; }
.projects-cards {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
}
.proj-card { background: var(--bg); padding: 18px; }
section:nth-child(even) .proj-card { background: var(--bg2); }
.proj-card h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.proj-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.projects-media {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.projects-media video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}


/* ─── Dyno specs ──────────────────────────────────────────────────────────── */
.specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.spec { background: var(--bg); padding: 18px; }
section:nth-child(even) .spec { background: var(--bg2); }
.spec dt {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.spec dd { font-size: 14px; font-weight: 600; }


/* ─── ECUTek platforms ────────────────────────────────────────────────────── */
.platforms {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.plat {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: transparent;
}
section:nth-child(even) .plat { background: transparent; }
.plat strong { font-size: 12px; display: block; color: var(--accent); margin-bottom: 2px; }
.plat span { font-size: 13px; color: var(--muted); }


/* ─── LinkECU ─────────────────────────────────────────────────────────────── */
.link-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.link-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: transparent;
}
section:nth-child(even) .link-card { background: transparent; }
.link-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.link-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }


/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.price-table {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px; background: var(--bg);
}
section:nth-child(even) .price-row { background: var(--bg2); }
.price-row + .price-row { border-top: 1px solid var(--border); }

.price-what strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.price-what span { font-size: 13px; color: var(--muted); }

.price-amount {
  font-size: 28px; font-weight: 800; color: var(--accent);
  white-space: nowrap; flex-shrink: 0; margin-left: 24px;
}
.price-amount small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-amount sup { font-size: 12px; color: var(--muted); font-weight: 400; }


/* ─── Hours ───────────────────────────────────────────────────────────────── */
.hours-bar {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.hours-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; gap: 48px;
}
.hours-inner dt {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.hours-inner dd { font-size: 14px; font-weight: 600; margin-top: 2px; }
.closed { color: var(--muted); font-weight: 400; }


/* ─── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}

.contact-info h2 { margin-bottom: 8px; }
.contact-info > .section-sub { margin-bottom: 28px; }

.info-items { display: flex; flex-direction: column; gap: 12px; }
.info-item {
  padding: 14px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.info-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.info-val { font-size: 14px; font-weight: 600; }
.info-val a { color: var(--accent); }

.contact-form {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.contact-form h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--muted); margin-bottom: 4px;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font); font-size: 14px;
  padding: 9px 12px; outline: none;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: #333; }
.field textarea { resize: vertical; min-height: 90px; }
.field select option { background: var(--bg2); }

.form-btn {
  width: 100%; margin-top: 6px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 11px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.form-btn:hover { background: var(--accent2); }

#form-success {
  display: none; text-align: center;
  padding: 16px; color: var(--accent); font-size: 14px;
}


/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
}
.footer-logo img { height: 22px; }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }


/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: 1fr; }
  .projects-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hours-inner { gap: 28px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .price-amount { margin-left: 0; }
  .hero-logo { width: 300px; }
}

@media (max-width: 500px) {
  section { padding: 52px 20px; }
  .hero { padding: calc(var(--nav-h) + 48px) 20px 52px; }
  .hero-logo { width: 260px; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .hours-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}


/* --- Waiver --- */
.waiver-layout {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.waiver-content .section-sub { margin-bottom: 24px; }
.waiver-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.waiver-cta .btn { display: inline-block; text-align: center; text-decoration: none; }
.waiver-url {
  font-size: 13px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.waiver-qr {
  background: #fff; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 0;
}
.waiver-qr img { width: 180px; height: 180px; display: block; }

@media (max-width: 800px) {
  .waiver-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .waiver-content .section-sub { margin-left: auto; margin-right: auto; }
  .waiver-cta { justify-content: center; }
}


/* --- Waiver nav pill --- */
.nav-waiver {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.nav-waiver:hover { background: var(--accent); color: #fff !important; }

/* --- Waiver reminder in contact section --- */
.contact-waiver-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-left-width: 3px;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.6;
}
.contact-waiver-note a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-waiver-note a:hover { color: #fff; }
.contact-waiver-icon {
  color: var(--accent);
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}
