/* Lattice Test Equipment — shared design system */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1c1c1e;
  --bg2: #2c2c2e;
  --bg3: #3a3a3c;
  --bg4: #48484a;
  --text: #f5f5f7;
  --text2: #a1a1a6;
  --text3: #6e6e73;
  --border: rgba(255,255,255,0.1);
  --border2: rgba(255,255,255,0.06);
  --radius: 10px;
  --radius-lg: 16px;
}
body { background: var(--bg); color: var(--text); font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--text2); text-decoration: none; }

/* NAV */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 52px;
  background: rgba(28,28,30,0.88); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--border2);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.nav-logo-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--text); display: flex; align-items: center; justify-content: center; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { font-size: 13px; color: var(--text2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; font-weight: 500; color: var(--bg); background: var(--text); border: none; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: opacity 0.15s; }
.nav-cta:hover { opacity: 0.85; }

/* HERO */
.hero { padding: 7rem 2rem 5rem; text-align: center; border-bottom: 0.5px solid var(--border2); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); letter-spacing: 0.8px; margin-bottom: 2rem; text-transform: uppercase; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; display: block; width: 28px; height: 0.5px; background: var(--text3); }
.hero h1 { font-size: 52px; font-weight: 600; line-height: 1.08; letter-spacing: -2px; max-width: 760px; margin: 0 auto 1.25rem; color: var(--text); }
.hero h1 em { font-style: normal; color: var(--text3); }
.hero-sub { font-size: 17px; color: var(--text2); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.65; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-fill { display: inline-block; background: var(--text); color: var(--bg); border: none; padding: 11px 24px; border-radius: 22px; font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; }
.btn-fill:hover { opacity: 0.85; }
.btn-outline { display: inline-block; background: transparent; color: var(--text2); border: 0.5px solid var(--border); padding: 11px 24px; border-radius: 22px; font-size: 15px; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* HERO DEVICE */
.hero-device { max-width: 680px; margin: 0 auto; background: var(--bg2); border-radius: var(--radius-lg); border: 0.5px solid var(--border); overflow: hidden; }
.device-titlebar { background: var(--bg3); padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 0.5px solid var(--border2); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28c840; }
.device-title { font-size: 12px; color: var(--text3); margin: 0 auto; letter-spacing: 0.2px; }
.device-body { padding: 1.5rem; }
.device-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 1rem; }
.metric { background: var(--bg3); border-radius: 8px; padding: 10px 12px; border: 0.5px solid var(--border2); }
.metric-val { font-size: 18px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.metric-lbl { font-size: 10px; color: var(--text3); margin-top: 2px; letter-spacing: 0.3px; }
.device-canvas { background: #111; border-radius: 8px; height: 140px; position: relative; overflow: hidden; border: 0.5px solid var(--border2); }
.canvas-label { position: absolute; top: 8px; left: 12px; font-size: 10px; color: #555; letter-spacing: 0.5px; }
.canvas-fps { position: absolute; top: 8px; right: 12px; font-size: 10px; color: #3a3; font-variant-numeric: tabular-nums; }
#particleCanvas { width: 100%; height: 100%; display: block; }

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); border-top: 0.5px solid var(--border2); border-bottom: 0.5px solid var(--border2); }
.stat-item { padding: 2rem 1.5rem; text-align: center; border-right: 0.5px solid var(--border2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -1px; }
.stat-lbl { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* SECTIONS */
section { padding: 5rem 2rem; border-bottom: 0.5px solid var(--border2); }
.section-eyebrow { font-size: 11px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.6rem; }
.section-title { font-size: 34px; font-weight: 600; letter-spacing: -1px; color: var(--text); margin-bottom: 0.75rem; }
.section-sub { font-size: 16px; color: var(--text2); line-height: 1.65; max-width: 480px; }

/* ═══ PRODUCT GRID (store) ═══ */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 2.5rem; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.product-card:hover { border-color: var(--border); transform: translateY(-2px); }
.product-card--featured { grid-column: 1 / -1; flex-direction: row; }
.product-card--featured .product-card-media { flex: 1 1 55%; aspect-ratio: auto; min-height: 320px; }
.product-card--featured .product-card-body { flex: 1 1 45%; justify-content: center; padding: 2.5rem; }
.product-card-media {
  aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 40%, #26262a 0%, #19191b 75%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 0.5px solid var(--border2); position: relative;
}
.product-card-media svg { width: 62%; height: auto; max-height: 78%; }
.product-flag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(28,28,30,0.85); color: var(--text2);
  border: 0.5px solid var(--border); border-radius: 20px; padding: 3px 10px;
}
.product-flag--live { color: #7ddb8a; border-color: rgba(125,219,138,0.3); }
.product-card-body { display: flex; flex-direction: column; padding: 1.4rem; gap: 0.45rem; flex: 1; }
.product-card-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; }
.product-card--featured .product-card-body h3 { font-size: 26px; letter-spacing: -0.8px; }
.product-card-tag { font-size: 13px; color: var(--text3); line-height: 1.55; flex: 1; }
.product-card--featured .product-card-tag { font-size: 15px; color: var(--text2); }
.product-price { font-size: 13px; color: var(--text2); margin-top: 0.35rem; }
.product-price strong { color: var(--text); font-weight: 500; }
.product-card-actions { display: flex; gap: 8px; margin-top: 0.9rem; flex-wrap: wrap; }
.btn-sm { display: inline-block; font-size: 13px; font-weight: 500; padding: 8px 18px; border-radius: 18px; cursor: pointer; transition: opacity 0.15s, color 0.15s, border-color 0.15s; }
.btn-sm.fill { background: var(--text); color: var(--bg); border: none; }
.btn-sm.fill:hover { opacity: 0.85; }
.btn-sm.line { background: transparent; color: var(--text2); border: 0.5px solid var(--border); }
.btn-sm.line:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ═══ PRODUCT PAGE ═══ */
.breadcrumb { max-width: 1060px; margin: 0 auto; padding: 1.5rem 0 0; font-size: 13px; color: var(--text3); }
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--text); }
.pdp-wrap { max-width: 1060px; margin: 0 auto; }
.pdp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; padding: 2.5rem 0 0; }
.pdp-media {
  background: radial-gradient(ellipse at 50% 40%, #26262a 0%, #19191b 75%);
  border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; position: relative;
}
.pdp-media svg { width: 58%; height: auto; max-height: 72%; }
.pdp-buy h1 { font-size: 34px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 0.6rem; }
.pdp-buy .pdp-tagline { font-size: 15px; color: var(--text2); line-height: 1.65; margin-bottom: 1.4rem; }
.product-badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.3px; background: var(--bg3); color: var(--text2); border: 0.5px solid var(--border); border-radius: 20px; padding: 4px 12px; margin-bottom: 1rem; }
.product-badge--live { color: #7ddb8a; border-color: rgba(125,219,138,0.3); }
.pdp-price { font-size: 15px; color: var(--text2); margin-bottom: 1.4rem; }
.pdp-price strong { color: var(--text); font-weight: 600; font-size: 17px; }
.pdp-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.spec-list { list-style: none; }
.spec-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); padding: 7px 0; border-bottom: 0.5px solid var(--border2); }
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text3); flex-shrink: 0; }
.spec-list li strong { color: var(--text); font-weight: 500; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; font-size: 14px; border-bottom: 0.5px solid var(--border2); vertical-align: top; }
.spec-table th { color: var(--text3); font-weight: 500; width: 34%; white-space: nowrap; }
.spec-table td { color: var(--text2); }
.spec-note { font-size: 12px; color: var(--text3); margin-top: 0.9rem; }

/* Feature blocks */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2.5rem; }
.feature-card { background: var(--bg2); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 1.25rem; }
.feature-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 0.4rem; }
.feature-card p { font-size: 13px; color: var(--text3); line-height: 1.55; }

/* CTA band */
.cta-band { text-align: center; padding: 4.5rem 2rem; }
.cta-band h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.8px; margin-bottom: 0.6rem; }
.cta-band p { font-size: 15px; color: var(--text2); max-width: 460px; margin: 0 auto 1.8rem; }

/* Other-instruments strip (product pages) */
.more-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 2rem; }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.step-card { background: var(--bg2); border-radius: var(--radius); border: 0.5px solid var(--border2); padding: 1.5rem; }
.step-num { font-size: 11px; color: var(--text3); letter-spacing: 1px; margin-bottom: 1rem; }
.step-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 0.5rem; }
.step-card p { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.about-text p { font-size: 15px; color: var(--text2); line-height: 1.75; margin-bottom: 1rem; }
.creds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cred-card { background: var(--bg2); border: 0.5px solid var(--border2); border-radius: var(--radius); padding: 1rem; }
.cred-num { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.5px; }
.cred-lbl { font-size: 11px; color: var(--text3); margin-top: 3px; line-height: 1.4; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; margin-top: 3rem; }
.contact-info h3 { font-size: 20px; font-weight: 500; margin-bottom: 1rem; }
.contact-info p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 2rem; }
.contact-meta { font-size: 13px; color: var(--text3); line-height: 2; }
.contact-form-wrap { background: var(--bg2); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; color: var(--text3); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--bg3); border: 0.5px solid var(--border2); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.15s; font-family: inherit; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.3); }
.form-group select option { background: var(--bg3); }
.form-group textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-btn { width: 100%; margin-top: 4px; background: var(--text); color: var(--bg); border: none; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; }
.form-btn:hover { opacity: 0.88; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success p { font-size: 15px; color: var(--text2); margin-top: 0.5rem; }

/* FOOTER */
footer { padding: 2rem; display: flex; justify-content: space-between; align-items: center; border-top: 0.5px solid var(--border2); }
.footer-logo { font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 7px; }
.footer-logo-mark { width: 18px; height: 18px; border-radius: 4px; background: var(--text); display: flex; align-items: center; justify-content: center; }
footer p { font-size: 12px; color: var(--text3); }

@media (max-width: 900px) {
  .store-grid { grid-template-columns: 1fr 1fr; }
  .product-card--featured { flex-direction: column; }
  .product-card--featured .product-card-media { min-height: 220px; aspect-ratio: 16/9; }
  .feature-grid, .more-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .about-grid, .contact-grid, .steps-grid, .store-grid, .pdp-hero, .feature-grid, .more-strip { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .device-metrics { grid-template-columns: repeat(2,1fr); }
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  section { padding: 3.5rem 1.25rem; }
  .hero { padding: 4.5rem 1.25rem 3.5rem; }
  .pdp-buy h1 { font-size: 27px; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
