@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --green:        #4fc840;
  --green-dim:    #2a7a20;
  --green-glow:   rgba(79,200,64,0.35);
  --black:        #000000;
  --near-black:   #0a0a0a;
  --surface:      #ffffff;
  --bg:           #f2f2f2;
  --text:         #222222;
  --text-mid:     #555555;
  --text-muted:   #888888;
  --border:       #e0e0e0;
  --sidebar-w:    290px;
  --radius:       3px;
  --shadow:       0 2px 14px rgba(0,0,0,0.10);
  --shadow-lg:    0 6px 28px rgba(0,0,0,0.16);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--green-dim); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1rem; }
h1,h2,h3,h4 { font-family: 'Open Sans', sans-serif; line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: 2rem; margin-bottom: .7rem; }
h2 { font-size: 1.4rem; margin-bottom: .5rem; }
h3 { font-size: 1.1rem; margin-bottom: .4rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
strong { font-weight: 700; }

/* ── Skip link ─────────────────────────────────── */
.skip { position: absolute; top: -50px; left: 0; background: var(--green); color: #000; padding: 8px 16px; z-index: 9999; font-family: 'Open Sans', sans-serif; font-weight: 700; }
.skip:focus { top: 0; }

/* ══════════════════════════════════════════════════
   HEADER
   Black bar — animated globe logo LEFT, nav RIGHT
═══════════════════════════════════════════════════ */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 0 30px rgba(79,200,64,0.15);
  border-bottom: 1px solid rgba(79,200,64,0.2);
  width: 100%;
}

.header-inner {
  display: flex;
  flex-direction: row;          /* ALWAYS row — never changes on desktop */
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  gap: 24px;
  overflow: hidden;
  max-width: 1520px;
  margin: 0 auto;
}

/* ── Logo: canvas globe + site name ─────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

#globe-canvas {
  height: 60px;
  width: auto;
  display: inline-block;
  flex-shrink: 0;
  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--green-glow);
  line-height: 1;
}
.logo-tag {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.62rem;
  color: rgba(79,200,64,0.6);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Nav ─────────────────────────────────────────── */
.main-nav { flex-shrink: 0; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: block;
  padding: 8px 18px;
  color: rgba(255,255,255,0.82);
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s;
  position: relative;
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { color: var(--green); }
.nav-list > li > a:hover::after,
.nav-list > li.active > a::after { transform: scaleX(1); }

/* Dropdown */
.nav-list li.has-sub:hover .nav-sub,
.nav-list li.has-sub:focus-within .nav-sub { display: block; }
.nav-sub {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #111;
  border-top: 2px solid var(--green);
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
}
.nav-sub a {
  display: block; padding: 10px 18px;
  color: rgba(255,255,255,0.7);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
}
.nav-sub a:hover { color: var(--green); background: rgba(79,200,64,0.07); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; flex-direction: column;
  gap: 5px; flex-shrink: 0; align-self: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; transition: all .3s; border-radius: 1px; }

/* ══════════════════════════════════════════════════
   PAGE LAYOUT — content + sidebar
═══════════════════════════════════════════════════ */
.page-wrap {
  max-width: 1520px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
}

.content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  min-height: 400px;
  animation: fadeUp .35s ease both;
}

/* ══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }



/* Widget boxes */
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  background: var(--green);
  color: #000;
  font-family: 'Open Sans', sans-serif;
  font-size: .85rem; font-weight: 700;
  padding: 9px 16px;
  letter-spacing: .1em; text-transform: uppercase;
}
.widget-body { padding: 10px 14px; }
.widget-body ul { list-style: none; }
.widget-body ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .88rem; font-family: 'Open Sans', sans-serif; font-weight: 600; }
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a { color: var(--text-mid); }
.widget-body ul li a:hover { color: var(--green); }

/* Sidebar product */
.sb-product { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: center; }
.sb-product:last-child { border-bottom: none; }
.sb-product img { width: 54px; height: 54px; object-fit: cover; border-radius: 2px; border: 1px solid var(--border); flex-shrink: 0; }
.sb-product-name { font-family: 'Open Sans', sans-serif; font-size: .88rem; font-weight: 700; color: var(--text); display: block; line-height: 1.3; margin-bottom: 2px; }
.sb-product-name:hover { color: var(--green); }
.sb-product-price { font-size: .82rem; color: var(--text-mid); }
.sb-product-price del { color: var(--text-muted); margin-right: 4px; }
.sb-product-price ins { text-decoration: none; color: var(--green-dim); font-weight: 700; }

/* ══════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════ */
.home-lead {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem; font-weight: 400;
  color: var(--text-muted);
  border-left: 3px solid var(--green);
  padding-left: 16px;
  margin-bottom: 28px;
  line-height: 1.5;
}
.home-body p { font-size: .95rem; color: #444; line-height: 1.9; }
.btn-github {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--near-black); color: var(--green) !important;
  border: 1px solid var(--green);
  padding: 10px 22px; border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif; font-size: .9rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-top: 8px; transition: background .2s, box-shadow .2s;
}
.btn-github:hover { background: rgba(79,200,64,0.1); box-shadow: 0 0 14px var(--green-glow); }

/* ══════════════════════════════════════════════════
   CAROUSEL
═══════════════════════════════════════════════════ */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); margin: 24px 0; background: #111; user-select: none; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; height: 360px; object-fit: cover; display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); border: 1px solid rgba(79,200,64,.4);
  color: var(--green); width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.car-btn:hover { background: rgba(0,0,0,.85); border-color: var(--green); }
.car-btn.prev { left: 14px; }
.car-btn.next { right: 14px; }
.car-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: background .2s, transform .2s; }
.car-dot.on { background: var(--green); transform: scale(1.4); }

/* ══════════════════════════════════════════════════
   SHOP
═══════════════════════════════════════════════════ */
.shop-count { color: var(--text-muted); font-family: 'Open Sans', sans-serif; font-size: .88rem; margin-bottom: 4px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; margin-top: 20px; }
.product-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-body { padding: 14px; }
.product-body h2 { font-size: .9rem; margin-bottom: 8px; color: var(--text); line-height: 1.4; font-weight: 600; text-transform: none; }
.product-price { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: 12px; }
.product-price del { font-weight: 400; color: var(--text-muted); font-size: .85rem; margin-right: 5px; }
.badge-sale { display: inline-block; background: #e05c20; color: #fff; font-family: 'Open Sans', sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; margin-bottom: 6px; }
.btn-buy {
  display: block; width: 100%; padding: 10px;
  background: var(--green); color: #000 !important;
  text-align: center; border: none; cursor: pointer;
  font-family: 'Open Sans', sans-serif; font-size: .85rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s; border-radius: 0;
}
.btn-buy:hover { background: var(--green-dim); color: #fff !important; }
.stripe-note { margin-top: 20px; padding: 12px 16px; background: #f8f8f8; border-left: 3px solid var(--green); font-family: 'Open Sans', sans-serif; font-size: .85rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════ */
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fafafa; transition: box-shadow .2s; }
.contact-item:hover { box-shadow: var(--shadow); }
.contact-icon { font-size: 1.5rem; width: 36px; text-align: center; flex-shrink: 0; }
.contact-label { display: block; font-family: 'Open Sans', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: .95rem; color: var(--green-dim); font-weight: 600; font-family: 'Open Sans', sans-serif; }

/* ══════════════════════════════════════════════════
   BLOG POST
═══════════════════════════════════════════════════ */
.post-hdr { padding-bottom: 18px; border-bottom: 2px solid var(--border); margin-bottom: 26px; }
.post-meta { font-family: 'Open Sans', sans-serif; font-size: .74rem; color: var(--text-muted); margin-top: 6px; }
.post-body p { font-size: .95rem; color: #444; }
.post-body img { margin: 16px 0; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer { background: var(--near-black); border-top: 1px solid rgba(79,200,64,.2); padding: 28px 32px 20px; margin-top: 0; }
.footer-inner { max-width: 1520px; margin: 0 auto; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.footer-links a { color: rgba(255,255,255,.45); font-family: 'Open Sans', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bar span { font-family: 'Open Sans', sans-serif; font-size: .72rem; color: rgba(255,255,255,.3); }

/* ══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .page-wrap { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
  .content { padding: 24px 22px; }
  .header-inner { padding: 0 20px; height: 76px; }
  #globe-canvas { height: 54px; width: auto; }
  .logo-name { font-size: 1.55rem; }
}

@media (max-width: 620px) {
  .header-inner { height: 62px; padding: 0 14px; }
  #globe-canvas { height: 44px; width: auto; }
  .site-logo { flex: 0 0 auto; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .logo-name { font-size: 1.25rem; }
  .logo-tag { display: none; }
  /* Collapse nav to hamburger */
  .nav-list {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #111; border-top: 2px solid var(--green);
    z-index: 400;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1rem; }
  .nav-list > li > a::after { display: none; }
  .nav-sub { position: static; border-top: none; border-left: 3px solid var(--green); background: #0a0a0a; box-shadow: none; }
  .nav-toggle { display: flex; }
  .carousel-slide img { height: 200px; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.6rem; }
}
@media (max-width: 400px) { .shop-grid { grid-template-columns: 1fr; } }


/* Patent highlight */
.patent-callout {
  margin: 24px 0;
  padding: 12px 16px;
  background-color: #edf8ea;
  border: 1px solid #c9e8c3;
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
}

.patent-callout .patent-title {
  margin: 0 0 8px 0;
  color: var(--green-dim);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.patent-callout p {
  margin: 0 0 10px 0;
}

.patent-callout p:last-child {
  margin-bottom: 0;
}
