*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #e53e3e;
  --red-dark: #c53030;
  --red-light: #fff5f5;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --gray: #6b7280;
  --light: #f9f9f9;
  --white: #fff;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 14px;
}
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: var(--light); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { background: var(--dark); display: flex; align-items: center; gap: 32px; padding: 0 40px; height: 64px; position: sticky; top: 0; z-index: 100; }
.nav ul { display: flex; gap: 24px; }
.nav ul a { color: #ccc; font-size: 14px; transition: color 0.2s; }
.nav ul a:hover { color: var(--white); }
.nav-right { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.logo { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: var(--red); }
.cart-btn { color: #ccc; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.badge { background: var(--red); color: white; border-radius: 999px; font-size: 11px; padding: 1px 6px; font-weight: 700; }
.btn-primary { background: var(--red); color: white; padding: 8px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border: 1.5px solid var(--red); color: var(--red); padding: 8px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; display: inline-block; transition: all 0.2s; }
.btn-outline:hover { background: var(--red); color: white; }

/* HERO */
.hero { background: var(--dark); min-height: 560px; display: flex; align-items: center; padding: 80px 40px; gap: 80px; }
.hero-content { flex: 1; max-width: 560px; }
.tag { background: var(--red); color: white; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: 58px; font-weight: 800; color: white; line-height: 1.05; margin: 20px 0 16px; letter-spacing: -1.5px; }
.accent { color: var(--red); }
.hero p { color: #aaa; font-size: 17px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid #333; padding-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat strong { color: white; font-size: 24px; font-weight: 800; }
.stat span { color: #666; font-size: 12px; }
.hero-visual { flex: 0 0 320px; }
.blueprint-grid { background: #0d1117; border: 1px solid #333; border-radius: var(--radius-lg); overflow: hidden; }
.bp-header { background: #161b22; padding: 10px 16px; font-size: 11px; color: #666; letter-spacing: 1px; font-family: monospace; border-bottom: 1px solid #333; }
.bp-body { padding: 24px; }
.cad-svg { width: 100%; }
.bp-footer { padding: 10px 16px; font-size: 11px; color: #555; font-family: monospace; border-top: 1px solid #222; }

/* CATEGORIES STRIP */
.categories-strip { padding: 72px 0; }
.categories-strip h2 { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 40px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all 0.2s; }
.cat-card:hover { border-color: var(--red); transform: translateY(-2px); }
.cat-icon { width: 52px; height: 52px; background: var(--red-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.cat-card strong { font-size: 15px; font-weight: 700; }
.cat-card span { font-size: 12px; color: var(--gray); }

/* PRODUCTS */
.featured { padding: 0 0 80px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-header h2 { font-size: 32px; font-weight: 800; }
.see-all { color: var(--red); font-size: 14px; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.2s; position: relative; }
.product-card:hover { border-color: var(--red); box-shadow: 0 8px 24px rgba(229,62,62,0.08); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.product-badge.new { background: #2563eb; }
.product-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: white; }
.autocad { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.solidworks { background: linear-gradient(135deg, #1a1a1a, #2d1515); }
.revit { background: linear-gradient(135deg, #0f2027, #203a43); }
.fusion { background: linear-gradient(135deg, #0f2027, #1a3a4a); }
.rhino { background: linear-gradient(135deg, #1a1a1a, #1a1a3e); }
.catia { background: linear-gradient(135deg, #0d1117, #1a2520); }
.nx { background: linear-gradient(135deg, #1a1510, #2d2010); }
.inventor { background: linear-gradient(135deg, #0a1628, #1a2a4a); }
.freecad { background: linear-gradient(135deg, #1a1a1a, #152d20); }
.openscad { background: linear-gradient(135deg, #1a1a2d, #2d1a2d); }
.sketchup { background: linear-gradient(135deg, #1a1a1a, #2d1a10); }
.blender { background: linear-gradient(135deg, #0d0d1a, #1a1a2d); }
.product-img::after { content: attr(data-label); color: rgba(255,255,255,0.15); font-size: 36px; font-weight: 900; }
.product-info { padding: 16px; }
.product-cat { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info h3 { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.product-info p { font-size: 13px; color: var(--gray); line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-size: 20px; font-weight: 800; color: var(--dark); }
.price small { font-size: 12px; font-weight: 400; color: var(--gray); }
.btn-add { background: var(--red); color: white; border: none; padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-add:hover { background: var(--red-dark); }

/* TRUST BAR */
.trust-bar { background: var(--dark); padding: 40px; }
.trust-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong { color: var(--white); font-size: 14px; }
.trust-item span { color: #666; font-size: 13px; }

/* FOOTER */
.footer { background: #111; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid > div > p { color: #666; font-size: 13px; margin-top: 12px; }
.footer strong { color: #aaa; font-size: 13px; font-weight: 600; display: block; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: #555; font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #222; padding: 20px 40px; display: flex; justify-content: space-between; font-size: 13px; color: #444; }

/* PAGE HERO */
.page-hero { background: var(--dark); padding: 64px 40px; }
.page-hero h1 { font-size: 42px; font-weight: 800; color: white; margin-bottom: 12px; }
.page-hero p { color: #aaa; font-size: 17px; max-width: 560px; }
.breadcrumb { font-size: 13px; color: #555; margin-bottom: 20px; }
.breadcrumb a { color: var(--red); }

/* FILTERS */
.filters { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 40px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-btn { border: 1.5px solid var(--border); background: none; padding: 6px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all 0.2s; color: var(--dark); }
.filter-btn.active, .filter-btn:hover { background: var(--red); color: white; border-color: var(--red); }
.filter-label { font-size: 13px; color: var(--gray); font-weight: 600; }
.sort-select { margin-left: auto; border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius); font-size: 13px; background: white; }

/* CART */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 48px 40px; max-width: 1200px; margin: 0 auto; }
.cart-items { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-item-img { height: 60px; border-radius: var(--radius); }
.cart-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cart-item span { font-size: 13px; color: var(--gray); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: none; border-radius: 6px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cart-item-price { font-size: 16px; font-weight: 700; min-width: 80px; text-align: right; }
.cart-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--gray); }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty h3 { font-size: 24px; margin-bottom: 8px; }

/* CHECKOUT */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 48px 40px; max-width: 1200px; margin: 0 auto; }
.checkout-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-section { margin-bottom: 32px; }
.form-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input, .form-group select { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; outline: none; transition: border 0.2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--red); }
.checkout-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; height: fit-content; }
.checkout-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.order-item { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.payment-methods { display: flex; gap: 12px; margin-bottom: 24px; }
.pm { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 20px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.pm.active { border-color: var(--red); color: var(--red); }
.step-indicator { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; padding: 10px; font-size: 13px; color: #999; position: relative; }
.step::after { content: ''; position: absolute; top: 50%; right: 0; width: 100%; height: 2px; background: var(--border); transform: translateY(-50%); z-index: 0; }
.step:last-child::after { display: none; }
.step.active { color: var(--red); font-weight: 700; }
.step.done { color: var(--gray); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 80px 40px; max-width: 1200px; margin: 0 auto; }
.about-text h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; }
.about-text p { color: var(--gray); margin-bottom: 16px; font-size: 16px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.astat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.astat strong { display: block; font-size: 36px; font-weight: 900; color: var(--red); }
.astat span { font-size: 13px; color: var(--gray); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; padding: 0 40px 80px; max-width: 1200px; margin: 0 auto; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 22px; font-weight: 800; }
.team-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--gray); }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding: 48px 40px; max-width: 1200px; margin: 0 auto; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.2s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); }
.blog-img { height: 180px; background: var(--dark); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.blog-body { padding: 20px; }
.blog-tag { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-body h3 { font-size: 18px; font-weight: 700; margin: 8px 0 10px; }
.blog-body p { font-size: 14px; color: var(--gray); }
.blog-meta { font-size: 12px; color: #aaa; margin-top: 12px; }

/* FAQ */
.faq-section { max-width: 760px; margin: 0 auto; padding: 64px 40px; }
.faq-section h2 { font-size: 32px; font-weight: 800; margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q span { color: var(--red); font-size: 20px; }
.faq-a { font-size: 14px; color: var(--gray); margin-top: 12px; line-height: 1.7; display: none; }
.faq-a.open { display: block; }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 64px 40px; max-width: 1100px; margin: 0 auto; }
.contact-info h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--gray); margin-bottom: 32px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; background: var(--red-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-detail span { font-size: 13px; color: var(--gray); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.contact-form textarea { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; width: 100%; min-height: 120px; resize: vertical; outline: none; font-family: inherit; }
.contact-form textarea:focus { border-color: var(--red); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding: 64px 40px; max-width: 1100px; margin: 0 auto; }
.pricing-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.pricing-card.featured { border-color: var(--red); }
.pricing-label { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.pricing-amount { font-size: 42px; font-weight: 900; margin: 16px 0; }
.pricing-amount small { font-size: 15px; font-weight: 400; color: var(--gray); }
.pricing-features { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { font-size: 14px; color: var(--gray); display: flex; gap: 8px; }
.pricing-features li::before { content: '✓'; color: var(--red); font-weight: 700; }

/* PRODUCT DETAIL */
.product-detail { display: grid; grid-template-columns: 1fr 420px; gap: 60px; padding: 64px 40px; max-width: 1200px; margin: 0 auto; }
.product-main-img { background: var(--dark); border-radius: var(--radius-lg); min-height: 380px; display: flex; align-items: center; justify-content: center; }
.product-purchase { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; height: fit-content; }
.product-purchase .price { font-size: 36px; font-weight: 900; margin: 12px 0 20px; }
.license-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.license-opt { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: all 0.2s; }
.license-opt:hover, .license-opt.active { border-color: var(--red); }
.license-opt strong { font-size: 14px; display: block; margin-bottom: 2px; }
.license-opt span { font-size: 12px; color: var(--gray); }

@media(max-width:900px){
  .hero{flex-direction:column;padding:48px 24px;}
  .hero-visual{display:none;}
  .cart-layout,.checkout-layout,.about-grid,.contact-layout,.product-detail{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .nav ul{display:none;}
}
