/*
Theme Name: ByteFoundry
Theme URI: https://www.abc-bot.me
Author: ByteFoundry
Description: A focused WooCommerce theme for professional software products.
Version: 1.0.0
Text Domain: bytefoundry
*/

:root {
  --ink: #16191d;
  --muted: #697079;
  --line: #dfe3e6;
  --paper: #ffffff;
  --soft: #f3f5f4;
  --green: #17a673;
  --green-dark: #08704d;
  --coral: #f06449;
  --yellow: #f3c74d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: 0; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; color: white; background: var(--ink); font-size: 15px; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; color: #4c5259; font-size: 14px; font-weight: 650; }
.main-nav a:hover { color: var(--ink); }
.cart-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 6px; color: var(--ink); font-weight: 750; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 25px; padding: 8px; }
.hero { padding: 74px 0 58px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 17px; color: var(--green-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, h4 { line-height: 1.12; margin-top: 0; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(47px, 6vw, 78px); font-weight: 500; }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 31px; }
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: white; font-weight: 750; font-size: 15px; cursor: pointer; transition: .2s ease; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); background: #30353a; color: white; }
.button-secondary { color: var(--ink); background: white; }
.hero-proof { margin-top: 24px; display: flex; gap: 24px; color: var(--muted); font-size: 13px; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }
.hero-visual { position: relative; min-height: 480px; }
.app-window { position: absolute; inset: 5px 0 32px 20px; border: 1px solid #bec5c8; border-radius: 8px; overflow: hidden; background: #20252a; box-shadow: 0 30px 70px rgba(20,25,30,.18); }
.window-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #f3f4f2; border-bottom: 1px solid #d8dcdd; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b7bdc0; }
.window-bar i:first-child { background: var(--coral); }
.window-bar i:nth-child(2) { background: var(--yellow); }
.window-bar i:nth-child(3) { background: var(--green); }
.dashboard { height: calc(100% - 42px); display: grid; grid-template-columns: 106px 1fr; background: #f8f8f5; }
.dash-side { padding: 22px 14px; background: #181c20; }
.dash-side b { display: block; height: 8px; margin-bottom: 20px; border-radius: 4px; background: #eee; opacity: .9; }
.dash-side span { display: block; height: 7px; margin: 14px 0; border-radius: 4px; background: #565d63; }
.dash-main { padding: 28px; }
.dash-title { width: 45%; height: 15px; border-radius: 3px; background: #252a2e; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 24px; }
.metric { min-height: 82px; padding: 13px; border: 1px solid #dfe2df; background: white; }
.metric::before { content: ""; display: block; width: 35%; height: 7px; background: #adb4b2; }
.metric::after { content: ""; display: block; width: 65%; height: 18px; margin-top: 17px; background: var(--green); }
.chart { height: 190px; margin-top: 15px; padding: 18px; border: 1px solid #dfe2df; background: white; display: flex; align-items: end; gap: 9px; }
.chart i { flex: 1; background: #252a2e; min-height: 25px; }
.chart i:nth-child(2), .chart i:nth-child(5), .chart i:nth-child(8) { background: var(--green); }
.floating-note { position: absolute; right: -18px; bottom: 0; width: 205px; padding: 17px 18px; border: 1px solid var(--line); background: white; box-shadow: 0 16px 34px rgba(25,30,32,.14); font-size: 13px; }
.floating-note strong { display: block; margin-bottom: 4px; font-size: 15px; }
.trust-band { border-block: 1px solid var(--line); background: var(--soft); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 25px 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item strong { display: block; margin-bottom: 3px; font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 12px; }
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2 { max-width: 650px; margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 54px); font-weight: 500; }
.section-head p { max-width: 440px; margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { border: 1px solid var(--line); background: white; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(25,31,34,.08); }
.product-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; background: #e8ecea; }
.product-card-body { padding: 22px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.product-card h3 { margin: 12px 0 9px; font-size: 22px; }
.product-card p { min-height: 52px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.product-link { font-size: 14px; font-weight: 800; }
.product-link::after { content: " →"; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.step { min-height: 240px; padding: 34px; border-right: 1px solid var(--line); background: white; }
.step:last-child { border-right: 0; }
.step-no { color: var(--coral); font-family: Georgia, serif; font-size: 42px; }
.step h3 { margin: 28px 0 10px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.split h2 { font-family: Georgia, serif; font-size: 48px; font-weight: 500; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-item { padding: 20px 0; border-top: 1px solid var(--line); }
.check-item strong { display: block; margin-bottom: 6px; }
.check-item span { color: var(--muted); font-size: 14px; }
.cta-band { padding: 70px 0; background: var(--ink); color: white; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: 46px; font-weight: 500; }
.cta-inner .button { border-color: white; background: white; color: var(--ink); white-space: nowrap; }
.site-footer { padding: 58px 0 30px; background: #101316; color: #d5d8da; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 45px; padding-bottom: 42px; }
.footer-brand p { max-width: 330px; color: #8e969d; font-size: 14px; }
.footer-col h4 { margin-bottom: 16px; color: white; font-size: 13px; text-transform: uppercase; }
.footer-col a { display: block; margin: 10px 0; color: #9ca3a8; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid #2b3034; color: #737c83; font-size: 12px; }
.content-wrap { padding: 65px 0 90px; }
.entry-header { max-width: 780px; margin-bottom: 38px; }
.entry-title, .woocommerce-products-header__title.page-title { font-family: Georgia, serif; font-size: 52px; font-weight: 500; }
.entry-content { max-width: 820px; }
.entry-content h2 { margin-top: 42px; font-size: 30px; }
.entry-content p, .entry-content li { color: #515860; }
.woocommerce .woocommerce-breadcrumb { margin: 28px 0; color: var(--muted); font-size: 13px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; padding-bottom: 20px; border: 1px solid var(--line); background: white; }
.woocommerce ul.products li.product a img { margin: 0 0 18px; aspect-ratio: 4/3; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 18px; margin-right: 18px; }
.woocommerce ul.products li.product .price { color: var(--green-dark); font-weight: 800; }
.woocommerce div.product { margin-top: 35px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--green-dark); font-size: 24px; font-weight: 800; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green); background: var(--soft); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, input[type="text"], input[type="email"], textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd4d6; border-radius: 4px; background: white; font: inherit; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 45px; }
  .hero-visual { min-height: 420px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 64px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: start; }
  .main-nav.is-open { display: flex; }
  .cart-link { min-height: 38px; padding: 0 12px; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 28px; }
  h1 { font-size: 48px; }
  .hero-copy { font-size: 17px; }
  .hero-proof { flex-direction: column; gap: 5px; }
  .hero-visual { min-height: 340px; }
  .app-window { inset: 0 7px 20px 0; }
  .floating-note { right: 0; width: 175px; }
  .dashboard { grid-template-columns: 74px 1fr; }
  .dash-main { padding: 18px; }
  .chart { height: 130px; }
  .trust-grid, .product-grid, .woocommerce ul.products, .check-list { grid-template-columns: 1fr; }
  .trust-item { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section { padding: 65px 0; }
  .section-head, .cta-inner, .footer-bottom { align-items: start; flex-direction: column; }
  .section-head h2, .split h2, .cta-inner h2 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
