/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --dark:      #0d1f13;
  --dark-2:    #112318;
  --text:      #e8f5ec;
  --text-muted:#8fba9e;
  --radius:    16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; transition: all .2s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 8px 18px; font-size: 14px; }
.btn-lg  { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; }

.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,.35); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--text); }

.btn-outline {
  background: transparent; color: var(--green-400);
  border: 2px solid var(--green-500);
}
.btn-outline:hover { background: var(--green-500); color: #fff; }

.badge {
  display: inline-block;
  background: rgba(74,222,128,.15); color: var(--green-400);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 100px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
}

.accent { color: var(--green-400); }

.section-sub {
  font-size: 17px; color: var(--text-muted);
  margin-top: 10px; margin-bottom: 48px;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(13,31,19,.85);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 20px; font-weight: 700; color: var(--green-400); letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-text-link {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.nav-text-link:hover { color: var(--text); }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--green-400);
  text-decoration: none;
  border: 1px solid rgba(74,222,128,.35);
  padding: 7px 14px; border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(74,222,128,.12); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 24px 60px;
  max-width: 1100px; margin: 0 auto;
  gap: 60px;
}
.hero-content { flex: 1; max-width: 520px; }
.hero-content .badge { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(48px, 7vw, 76px); font-weight: 700;
  line-height: 1.05; letter-spacing: -.03em; margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 420px; margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.hero-duo {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 340px;
}
.hero-card {
  border-radius: 20px;
  padding: 32px 28px;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid rgba(74,222,128,.15);
  transition: transform .3s, border-color .3s;
}
.hero-card:hover { transform: translateX(6px); border-color: rgba(74,222,128,.35); }
.hero-card span { font-size: 17px; font-weight: 600; }
.hc-icon { font-size: 40px; }
.hc-magsafe {
  background: linear-gradient(135deg, rgba(34,197,94,.1), rgba(255,255,255,.03));
}
.hc-cb {
  background: linear-gradient(135deg, rgba(74,222,128,.07), rgba(255,255,255,.02));
}

/* ===== PRODUCTS OVERVIEW ===== */
.products {
  padding: 100px 0;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.05);
}
.products h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.products-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.product-overview-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.product-overview-card:hover { border-color: rgba(74,222,128,.3); transform: translateY(-4px); }
.poc-visual {
  height: 220px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.poc-v1 {
  background: linear-gradient(135deg, #1a4d30, #0d2d1a);
}
.poc-v1::after { content: '🔘'; }
.poc-v2 {
  background: linear-gradient(135deg, #1a2e3d, #0d1f2d);
}
.poc-v2::after { content: '📻'; filter: drop-shadow(0 0 20px rgba(74,222,128,.3)); }
.poc-body { padding: 28px; }
.poc-body .badge { margin-bottom: 14px; }
.poc-body h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.poc-body p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.poc-price { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.poc-price strong { color: var(--text); font-size: 20px; }

/* ===== PRODUCT SECTIONS ===== */
.product-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.product-section-alt { background: var(--dark-2); }

.ps-header { margin-bottom: 56px; }
.ps-header .badge { margin-bottom: 16px; }
.ps-header h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-bottom: 60px;
}
.feature-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(74,222,128,.3); transform: translateY(-4px); }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===== QTY CONTROL ===== */
.qty-control {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
  background: none; border: none; color: var(--text);
  width: 40px; height: 40px; font-size: 20px; cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: rgba(74,222,128,.15); color: var(--green-400); }
.qty-value {
  min-width: 48px; text-align: center;
  font-size: 17px; font-weight: 600;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  line-height: 40px;
}

.secure-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

/* ===== PRODUCT SECTION CTA ===== */
.ps-cta { margin-top: 48px; }

/* ===== ORDER SECTION ===== */
.order-section {
  padding: 100px 0;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.05);
}
.order-section h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 6px;
}

.order-card {
  background: linear-gradient(135deg, rgba(34,197,94,.07) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 24px; overflow: hidden;
  max-width: 780px;
}

.order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px; gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s;
}
.order-row:hover { background: rgba(74,222,128,.04); }

.order-row-product { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }

.order-thumb {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.ot-magsafe { background: linear-gradient(135deg, #1a4d30, #0d2d1a); }
.ot-magsafe::after { content: '🔘'; }
.ot-cb { background: linear-gradient(135deg, #1a2e3d, #0d1f2d); }
.ot-cb::after { content: '📻'; }

.order-row-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-row-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row-unitprice { font-size: 13px; color: var(--text-muted); }

.order-row-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.order-row-total { font-size: 18px; font-weight: 700; min-width: 64px; text-align: right; color: var(--text-muted); }
.order-row-total.has-value { color: var(--text); }

.order-summary {
  padding: 28px 32px;
}
.order-summary-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.order-summary-row span:first-child { font-size: 15px; color: var(--text-muted); }
.order-total { font-size: 36px; font-weight: 700; color: var(--green-400); letter-spacing: -.03em; }

.buy-perks { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.buy-perks li { font-size: 13px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.contact-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.contact-inner h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.contact-inner > p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--dark-2);
}
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer p { font-size: 14px; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #112318; border: 1px solid rgba(74,222,128,.2);
  border-radius: 20px; padding: 40px;
  width: 100%; max-width: 480px; position: relative;
  transform: translateY(16px); transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.06); border: none; color: var(--text);
  width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.12); }
.modal h3 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.modal > p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 12px 14px;
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.05);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-success { display: none; color: var(--green-400); font-size: 15px; text-align: center; font-weight: 500; }
.form-success.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .nav-text-link { display: none; }
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-content .badge { margin: 0 auto 24px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-duo { max-width: 100%; }
  .hero-card { justify-content: center; }
  .products-grid { grid-template-columns: 1fr; }
  .order-row { flex-wrap: wrap; }
  .order-row-right { width: 100%; justify-content: space-between; }
  .order-row { padding: 20px; }
  .order-summary { padding: 20px; }
}
@media (max-width: 520px) {
  .modal { padding: 28px 20px; }
}
