/*
Theme Name: 5-Axis CNC Capabilities
Theme URI: https://example.com/
Author: OpenAI
Description: A modern responsive WordPress theme for showcasing 5-axis CNC machining capabilities.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: cnc-5axis
*/

:root {
  --bg: #080b10;
  --panel: #101722;
  --panel-2: #151f2d;
  --text: #eef4fb;
  --muted: #aab7c7;
  --line: rgba(255,255,255,.12);
  --accent: #35d0ff;
  --accent-2: #ffb84d;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(8,11,16,.82);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #4076ff);
  color: #041019;
  box-shadow: 0 0 32px rgba(53,208,255,.35);
}
.menu { display: flex; gap: 24px; align-items: center; font-size: 14px; color: var(--muted); }
.menu a:hover { color: var(--white); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: .2s ease;
}
.btn-primary { background: var(--accent); color: #03111a; box-shadow: 0 16px 38px rgba(53,208,255,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(53,208,255,.38); }
.btn-secondary { border-color: var(--line); color: var(--white); background: rgba(255,255,255,.04); }
.btn-secondary:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); }
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 80px;
  background:
    radial-gradient(circle at 75% 20%, rgba(53,208,255,.22), transparent 28%),
    radial-gradient(circle at 20% 70%, rgba(255,184,77,.13), transparent 28%);
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(44px, 7vw, 82px); margin-top: 18px; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 23px; }
p { color: var(--muted); margin: 0; }
.hero-copy { margin: 24px 0 34px; font-size: 19px; max-width: 690px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  padding: 30px;
  overflow: hidden;
}
.machine-visual {
  aspect-ratio: 1 / .82;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(53,208,255,.2), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 32px),
    #0b121c;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.part {
  width: 48%;
  height: 48%;
  border-radius: 50% 18% 50% 18%;
  background: linear-gradient(135deg, #dce8f5, #697888);
  box-shadow: inset -18px -24px 40px rgba(0,0,0,.28), 0 20px 60px rgba(0,0,0,.35);
  transform: rotate(-24deg);
}
.axis {
  position: absolute;
  width: 78%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.axis:nth-child(2) { transform: rotate(52deg); }
.axis:nth-child(3) { transform: rotate(104deg); }
.spec-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.spec { padding: 16px; background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 18px; }
.spec strong { display: block; font-size: 20px; color: var(--white); }
.spec span { color: var(--muted); font-size: 13px; }
.section { padding: 86px 0; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-head p { max-width: 520px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 100%;
}
.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(53,208,255,.12);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; }
.dark-band { background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); border-block: 1px solid var(--line); }
.capability-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.capability {
  padding: 20px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.capability strong { display: block; margin-bottom: 6px; color: var(--white); }
.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 650;
}
.process { counter-reset: step; display: grid; gap: 14px; }
.process li {
  list-style: none;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.process li::before {
  counter-increment: step;
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #1a1002;
  font-weight: 900;
}
.cta {
  padding: 56px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 0%, rgba(53,208,255,.30), transparent 34%),
    linear-gradient(135deg, #111d2b, #0b111a);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.site-footer { padding: 38px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero-grid, .grid-3, .capability-list, .cta { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .menu { display: none; }
  .hero { padding-top: 72px; }
  .cta { padding: 34px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .spec-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
