:root {
  --brand: #2563eb;
  --brand-dark: #1e40af;
  --brand-bright: #3b82f6;
  --brand-soft: #f0f5ff;
  --brand-line: #bfdbfe;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --line: #dfe4ea;
  --text: #26303d;
  --muted: #6b7280;
  --page: #f1f5f9;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER (GMS style) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid #d9dee6;
  box-shadow: 0 1px 4px rgba(18, 24, 33, 0.08);
}

.header-inner, .subnav {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
}

.header-inner { min-height: 70px; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #293241;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #26303d;
  font-size: 22px;
  letter-spacing: 0;
  font-family: "Bahnschrift", "Rajdhani", "Trebuchet MS", "Arial Black", Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  letter-spacing: 0.2px;
  text-transform: none;
  transform: skewX(-5deg);
}

.wordmark strong, .wordmark em { font-style: normal; }
.wordmark strong { color: var(--brand); font-weight: 900; }
.wordmark em { color: #293241; font-weight: 900; position: relative; margin-left: -1px; }

.brand img, .brand-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 10px;
  color: white;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.primary-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}

.primary-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: #2f3846;
  border-radius: 6px;
  font-weight: 600;
}

.primary-tabs a[hidden] { display: none; }
.primary-tabs .active { color: var(--brand); background: transparent; }
.primary-tabs .active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}
.primary-tabs a:hover { background: #f1f5f9; }

.account-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #242b36;
  font-size: 13px;
  white-space: nowrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  gap: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: 999px;
  font-family: "Inter Tight", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255,255,255,0.32);
}

.cta-button-large {
  min-height: 44px;
  padding: 0 24px;
  font-size: 12px;
}

.cta-button-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: none;
  color: #fff;
}

.cta-button-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  box-shadow: none;
}

.subnav {
  min-height: 44px;
  border-top: 1px solid #edf0f4;
  color: #596274;
  font-size: 13px;
}

.subnav nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.subnav-label {
  color: #929bab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.subnav a { color: #566174; }
.subnav a:hover { color: var(--brand); }

/* ===== PAGE SHELL (GMS style) ===== */
.page-shell {
  flex: 0 0 auto;
  width: min(1380px, calc(100% - 32px));
  min-width: 0;
  max-width: 1380px;
  margin: 20px auto;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(18, 24, 33, 0.12);
  overflow: hidden;
}

/* ===== SEO Home Section (GMS style homepage) ===== */
.seo-home {
  padding: 0 18px 18px;
}

.seo-home h1 {
  margin: 18px 0 6px;
  color: var(--brand);
  font-size: 26px;
}

.seo-home p {
  margin: 0 0 16px;
  max-width: 720px;
  color: #4d5968;
  font-size: 15px;
  line-height: 1.5;
}

/* ===== HERO (GMS style) ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 340px;
  background:
    linear-gradient(90deg, rgba(18, 24, 33, 0.9) 0%, rgba(30, 64, 175, 0.78) 52%, rgba(30, 26, 33, 0.58) 100%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.36), rgba(18, 24, 33, 0.24));
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  padding: 48px 58px 70px;
  border-bottom: 0;
  box-shadow: inset 0 -50px 70px rgba(18, 24, 33, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.12), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 34%, rgba(37, 99, 235, 0.16));
  opacity: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: min(100%, 760px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero h1 span {
  display: inline-block;
  color: #bfdbfe;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.32), rgba(191, 219, 254, 0));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0 7px;
}

.hero p {
  max-width: 620px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  color: #fff;
  line-height: 1.1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* ===== SECTIONS ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-light, .section-dark {
  padding: 40px 20px;
}

.section-light { background: #fff; }
.section-dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header .badge {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--brand-line);
  color: var(--brand);
  margin-bottom: 10px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
}

.section-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ===== PRICING GRID ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
  background: #fff;
  text-align: center;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}

.pricing-card:hover {
  box-shadow: 0 12px 28px rgba(18, 24, 33, 0.08);
  transform: translateY(-3px);
  border-color: var(--brand-line);
}

.pricing-card.popular {
  border: 2px solid var(--brand);
  position: relative;
}

.pricing-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}

.price {
  margin-bottom: 16px;
}

.price .currency {
  vertical-align: super;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.price .amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
}

.price .period {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.description {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.pricing-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: #374151;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

.cta-order, .cta-button.full {
  width: 100%;
  margin-top: auto;
  border-radius: 999px;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ===== COMPARISON TABLE ===== */
.compare-table-wrap {
  overflow-x: auto;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 24, 33, 0.06);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
  font-size: 13px;
}

.compare-table th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 700; color: var(--text); }

.compare-table .popular-row {
  background: rgba(37, 99, 235, 0.03);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  transition: transform 200ms ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 12px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== FOOTER (GMS style) ===== */
.footer {
  flex: 0 0 auto;
  margin-top: auto;
  background: #fbfcfe;
  border-top: 1px solid #dfe4ea;
  padding: 26px 18px 18px;
}

.footer-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(0, 1fr));
  gap: 42px;
}

.footer-brand img, .footer-brand .brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-brand .brand-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 10px;
  color: white;
  font-weight: 900;
  font-size: 14px;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.footer h2 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--brand);
}

.footer a {
  display: block;
  color: #4d5968;
  margin: 0 0 12px;
  font-size: 13px;
}

.footer a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer > p {
  max-width: 1380px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid #e8edf3;
  text-align: center;
  color: #98a2b3;
  font-size: 12px;
}

.footer-bottom {
  max-width: 1380px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid #e8edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #98a2b3;
  font-size: 12px;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-payments span {
  padding: 3px 8px;
  border-radius: 4px;
  background: #f0f4ff;
  border: 1px solid var(--brand-line);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
}

.footer-mobile {
  display: none;
}

/* ===== PRODUCT PAGE STYLES (GMS style, preserved from original) ===== */
.product-page {
  padding: 24px 18px;
}

.product-header-area {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #dde2ea;
}

.product-icon {
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.product-heading h1 {
  margin: 0;
  color: #172033;
  font-size: 28px;
}

.product-heading p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 15px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  grid-column: 2 / 3;
  color: #475569;
  font-weight: 700;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #d6dce5;
  border-radius: 7px;
  background: #fff;
  color: #4b5567;
  font-size: 13px;
}

.product-content {
  margin-top: 24px;
  max-width: 860px;
}

.product-content h2 {
  color: var(--brand);
  font-size: 20px;
  margin: 24px 0 10px;
}

.product-content ul {
  padding-left: 20px;
  color: #4b5563;
}

.product-content li {
  margin-bottom: 6px;
  line-height: 1.45;
}

/* ===== BUTTONS (GMS style) ===== */
button, .button {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

button:disabled { cursor: not-allowed; opacity: 0.55; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--brand);
  color: white;
}

.button:hover { background: var(--brand-dark); }

/* ===== STAT COUNTER ===== */
.stat-counter {
  display: inline-block;
}

/* ===== CART NOTIFICATIONS ===== */
.cart-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: #059669;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .header-inner { min-height: 56px; gap: 12px; }
  .primary-tabs { display: none; }
  .mobile-menu-toggle { display: flex; }
  .subnav { display: none !important; }
  .nav-open .primary-tabs {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #d9dee6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 8px 12px;
    z-index: 61;
  }
  .nav-open .subnav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 98px);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #d9dee6;
    padding: 8px 12px;
    z-index: 61;
  }
  .nav-open .subnav nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero { padding: 32px 24px 48px; }
  .hero h1 { font-size: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 16px; justify-content: center; }
  .hero-stat strong { font-size: 20px; }
  .section-header h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .account-actions .cta-button { font-size: 9px; padding: 0 12px; min-height: 32px; }
}

/* ===== YEARLY PRICING ===== */
.price-yearly {
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.price-yearly .currency {
  vertical-align: super;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.price-yearly .amount {
  font-size: 26px;
  font-weight: 900;
  color: #059669;
  line-height: 1;
}

.price-yearly .period {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.yearly-discount {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #059669;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
