/* Public site: quieter chrome, product-grade surfaces */

body.light-mode {
  background: #f4f6f8 !important;
  color: #0c1222;
}

body.light-mode::before,
body.dark-mode::before {
  display: none !important;
}

body.light-mode .gradient-bg {
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(29, 78, 216, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 20%, rgba(15, 23, 42, 0.03), transparent 70%) !important;
}

header {
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: none !important;
  padding: 0.7rem 0 !important;
}

header.scrolled {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06) !important;
}

header .logo {
  width: 108px !important;
}

header nav ul li a {
  padding: 0.4rem 0.65rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  border-radius: 8px !important;
  letter-spacing: -0.01em !important;
}

header nav ul li a i,
header nav ul li a svg.tx-icon,
header nav ul li a [data-lucide] {
  display: none !important;
}

/* Lucide icon wells on marketing cards */
.feature-icon,
.step-icon,
.feature-card .feature-icon,
.step-card .step-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

.feature-icon svg,
.step-icon svg,
.feature-icon .tx-icon,
.step-icon .tx-icon {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 1.75 !important;
}

.mobile-menu ul li a svg.tx-icon,
.mobile-menu ul li a [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-menu-button svg,
.mobile-close-btn svg,
.theme-toggle svg {
  width: 20px;
  height: 20px;
}

html[data-trinix-theme="dark"] .feature-icon,
html[data-trinix-theme="dark"] .step-icon {
  background: rgba(37, 99, 235, 0.18) !important;
  color: #93c5fd !important;
}

header nav ul li a::after {
  display: none !important;
}

header nav ul li a:hover {
  color: #0c1222 !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

.header-cta .btn-primary,
.mobile-menu .btn-primary {
  background: #0c1222 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.header-cta .btn-primary::after,
.header-cta .btn-primary::before {
  display: none !important;
}

body.light-mode a.btn-primary,
body.light-mode button.btn-primary {
  background: #0c1222 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.light-mode a.btn-primary::before,
body.light-mode a.btn-primary::after {
  display: none !important;
}

@media (max-width: 1180px) {
  header nav ul li a {
    padding: 0.4rem 0.4rem !important;
    font-size: 0.8125rem !important;
  }
}

/* Homepage hero */
.trinix-hero {
  padding: 7.5rem 0 4.5rem !important;
  min-height: 0 !important;
}

.hero-badge {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hero-badge i { display: none; }

.hero-main-title {
  font-size: clamp(2.7rem, 5.2vw, 4.35rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.048em !important;
  line-height: 0.98 !important;
  color: #0c1222 !important;
  margin-bottom: 1.15rem !important;
}

.gradient-text {
  background: none !important;
  -webkit-text-fill-color: #1d4ed8 !important;
  color: #1d4ed8 !important;
  animation: none !important;
}

.hero-description {
  font-family: Epilogue, sans-serif !important;
  font-size: 1.0625rem !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  max-width: 34rem !important;
  font-weight: 400 !important;
}

.hero-cta-buttons .btn-primary,
.how-it-works-cta .btn-primary-large,
.pricing-btn.btn-primary-gradient {
  background: #0c1222 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 0.85rem 1.15rem !important;
  font-weight: 600 !important;
}

.hero-cta-buttons .btn-primary::before,
.hero-cta-buttons .btn-primary::after,
.pricing-btn.btn-primary-gradient::before,
.pricing-btn.btn-primary-gradient::after,
.btn-primary-large::before {
  display: none !important;
}

.hero-cta-buttons .btn-secondary {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 12px !important;
  color: #0c1222 !important;
  box-shadow: none !important;
}

.hero-cta-buttons .btn-primary i,
.hero-cta-buttons .btn-secondary i,
.how-it-works-cta .btn-primary-large i {
  display: none;
}

.trust-indicators {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  gap: 1.75rem !important;
  margin-top: 0.5rem;
}

.trust-number {
  background: none !important;
  -webkit-text-fill-color: #0c1222 !important;
  color: #0c1222 !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  font-size: 1.65rem !important;
}

.trust-label {
  color: #334155 !important;
  font-size: 0.8125rem !important;
}

.hero-floating-element,
.hero-glow,
.cta-bg-orb {
  display: none !important;
}

/* Product stage */
.tx-stage {
  position: relative;
  min-height: 420px;
}

.tx-browser {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.tx-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tx-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
}

.tx-url {
  margin-left: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: #334155;
  letter-spacing: -0.01em;
}

.tx-store { padding: 18px 18px 20px; }

.tx-store-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.tx-store-top strong {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.tx-store-top em {
  font-style: normal;
  font-size: 0.8rem;
  color: #334155;
}

.tx-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tx-product {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.tx-product b,
.tx-product small {
  display: block;
}

.tx-product b {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tx-product small {
  color: #334155;
  font-size: 0.78rem;
}

.swatch {
  height: 92px;
  border-radius: 10px;
}

.s1 { background: linear-gradient(160deg, #1e293b, #334155); }
.s2 { background: linear-gradient(160deg, #d6b48a, #8d6a45); }
.s3 { background: linear-gradient(160deg, #0f172a, #1d4ed8); }
.s4 { background: linear-gradient(160deg, #e7e5e4, #a8a29e); }

.tx-float {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0c1222;
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  min-width: 180px;
}

.tx-float strong,
.tx-float small { display: block; }
.tx-float strong { font-size: 0.85rem; font-weight: 600; letter-spacing: -0.02em; }
.tx-float small { color: rgba(255,255,255,0.65); font-size: 0.75rem; }

.tx-order { right: 16px; bottom: 18px; }
.tx-chat { left: 18px; top: 58px; background: #fff; color: #0c1222; border: 1px solid rgba(15,23,42,0.08); }
.tx-chat small { color: #334155; }

.tx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

/* Sections */
.features-section,
.how-it-works-section,
.pricing-section,
.cta-section {
  background: transparent !important;
  padding: 4.5rem 0 !important;
}

.section-badge {
  background: transparent !important;
  border: 0 !important;
  color: #1d4ed8 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.72rem !important;
  padding: 0 !important;
  text-transform: uppercase !important;
}

.section-badge i { display: none; }

.section-title,
.cta-title {
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  color: #0c1222 !important;
}

.section-description,
.cta-description {
  color: #334155 !important;
  font-family: Epilogue, sans-serif !important;
}

.feature-card,
.step-card,
.pricing-card {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.feature-card::before,
.step-card::before,
.pricing-card::before {
  display: none !important;
}

.feature-card:hover,
.step-card:hover,
.pricing-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06) !important;
  background: #fff !important;
}

.feature-icon,
.step-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  box-shadow: none !important;
}

.feature-icon::after,
.step-icon::after { display: none !important; }

.feature-icon i,
.step-icon i {
  color: #0c1222 !important;
  font-size: 1rem !important;
}

.step-number {
  width: 36px !important;
  height: 36px !important;
  margin: 0 auto 16px !important;
  background: #0c1222 !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.step-number::before,
.step-card:hover .step-number::before {
  display: none !important;
}

.step-card:hover .step-number {
  transform: none !important;
  box-shadow: none !important;
}

.feature-title,
.step-title,
.plan-name {
  letter-spacing: -0.03em !important;
  color: #0c1222 !important;
}

.feature-card:hover .feature-title { color: #0c1222 !important; }

.pricing-section .pricing-card.featured {
  background: #0c1222 !important;
  color: #fff !important;
  border-color: #0c1222 !important;
  animation: none !important;
}

.pricing-section .pricing-card.featured .plan-name,
.pricing-section .pricing-card.featured .price,
.pricing-section .pricing-card.featured .featured-price,
.pricing-section .pricing-card.featured .feature-item,
.pricing-section .pricing-card.featured .feature-item span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}

.pricing-section .pricing-card.featured .plan-tagline,
.pricing-section .pricing-card.featured .period {
  color: rgba(255,255,255,0.65) !important;
}

.pricing-section .pricing-card.featured .pricing-btn {
  background: #fff !important;
  color: #0c1222 !important;
}

.popular-badge {
  top: 18px !important;
  right: 18px !important;
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
}

.popular-badge i { display: none !important; }

.pricing-section .pricing-card.featured { padding-top: 3.2rem !important; }

.price,
.featured-price {
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  background: none !important;
  -webkit-text-fill-color: #0c1222 !important;
  letter-spacing: -0.04em !important;
}

.tx-product small {
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
}

.pricing-section .pricing-card.featured .price,
.pricing-section .pricing-card.featured .featured-price {
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

.cta-card {
  background: #0c1222 !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  padding: 4.5rem 2rem !important;
}

.cta-card::before { display: none !important; }
.cta-card:hover { transform: none !important; box-shadow: none !important; }

.cta-title,
.cta-description,
.cta-trust,
.cta-trust span {
  color: #fff !important;
}

.cta-description { color: rgba(255,255,255,0.7) !important; }

.cta-btn-primary {
  background: #fff !important;
  color: #0c1222 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.cta-btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
}

/* Inner marketing pages */
.page-hero {
  padding: 8rem 0 2.5rem !important;
}

.page-hero h1 {
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
  color: #0c1222 !important;
}

body.tx-page {
  background: #f4f6f8 !important;
}

body.tx-page .card-bg,
.template-card,
body.light-mode .pricing-card {
  border-radius: 16px !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

footer {
  background: #fff !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  margin-top: 2rem;
}

.footer-section-title {
  letter-spacing: -0.02em !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  color: #94a3b8 !important;
}

.footer-link {
  color: #334155 !important;
}

@media (max-width: 1024px) {
  .tx-order, .tx-chat { position: static; margin-top: 12px; }
  .tx-stage { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .features-grid,
  .steps-grid,
  .pricing-grid,
  .template-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Dark public theme. html attribute is set before paint. */
html[data-trinix-theme="dark"] body,
html[data-trinix-theme="dark"] body.light-mode,
html[data-trinix-theme="dark"] body.tx-page {
  background: var(--tx-page) !important;
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .gradient-bg {
  background:
    radial-gradient(ellipse 70% 45% at 85% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    #0b1220 !important;
}

html[data-trinix-theme="dark"] header,
html[data-trinix-theme="dark"] .mobile-menu {
  background: rgba(17, 24, 39, 0.92) !important;
  border-color: var(--tx-border) !important;
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] header nav ul li a,
html[data-trinix-theme="dark"] .nav-login,
html[data-trinix-theme="dark"] .mobile-menu a {
  color: var(--tx-muted) !important;
}

html[data-trinix-theme="dark"] header nav ul li a:hover,
html[data-trinix-theme="dark"] .nav-login:hover {
  color: var(--tx-text) !important;
  background: var(--tx-raised) !important;
}

html[data-trinix-theme="dark"] .header-cta .btn-primary,
html[data-trinix-theme="dark"] .mobile-menu .btn-primary,
html[data-trinix-theme="dark"] body a.btn-primary,
html[data-trinix-theme="dark"] body button.btn-primary,
html[data-trinix-theme="dark"] .hero-cta-buttons .btn-primary,
html[data-trinix-theme="dark"] .how-it-works-cta .btn-primary-large,
html[data-trinix-theme="dark"] .pricing-btn.btn-primary-gradient {
  background: var(--tx-btn) !important;
  color: var(--tx-btn-text) !important;
}

html[data-trinix-theme="dark"] .hero-badge,
html[data-trinix-theme="dark"] .hero-cta-buttons .btn-secondary,
html[data-trinix-theme="dark"] .tx-browser,
html[data-trinix-theme="dark"] .tx-product,
html[data-trinix-theme="dark"] .tx-url,
html[data-trinix-theme="dark"] .feature-card,
html[data-trinix-theme="dark"] .step-card,
html[data-trinix-theme="dark"] .pricing-card,
html[data-trinix-theme="dark"] .template-card,
html[data-trinix-theme="dark"] body.tx-page .card-bg,
html[data-trinix-theme="dark"] footer {
  background: var(--tx-panel) !important;
  color: var(--tx-text) !important;
  border-color: var(--tx-border) !important;
}

html[data-trinix-theme="dark"] .hero-main-title,
html[data-trinix-theme="dark"] .section-title,
html[data-trinix-theme="dark"] .feature-title,
html[data-trinix-theme="dark"] .step-title,
html[data-trinix-theme="dark"] .plan-name,
html[data-trinix-theme="dark"] .page-hero h1,
html[data-trinix-theme="dark"] .trust-number,
html[data-trinix-theme="dark"] .price,
html[data-trinix-theme="dark"] .tx-store-top strong,
html[data-trinix-theme="dark"] .tx-product b {
  color: var(--tx-text) !important;
  -webkit-text-fill-color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .hero-description,
html[data-trinix-theme="dark"] .section-description,
html[data-trinix-theme="dark"] .feature-description,
html[data-trinix-theme="dark"] .step-description,
html[data-trinix-theme="dark"] .plan-tagline,
html[data-trinix-theme="dark"] .trust-label,
html[data-trinix-theme="dark"] .footer-link,
html[data-trinix-theme="dark"] .tx-store-top em,
html[data-trinix-theme="dark"] .tx-product small,
html[data-trinix-theme="dark"] .period {
  color: var(--tx-muted) !important;
}

html[data-trinix-theme="dark"] .feature-icon,
html[data-trinix-theme="dark"] .step-icon,
html[data-trinix-theme="dark"] .tx-browser-bar,
html[data-trinix-theme="dark"] .theme-toggle {
  background: var(--tx-raised) !important;
  border-color: var(--tx-border) !important;
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .feature-icon i,
html[data-trinix-theme="dark"] .step-icon i,
html[data-trinix-theme="dark"] .theme-toggle i {
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .step-number {
  background: #e7edf5 !important;
  color: #0c1222 !important;
}

html[data-trinix-theme="dark"] .feature-card:hover,
html[data-trinix-theme="dark"] .step-card:hover,
html[data-trinix-theme="dark"] .pricing-card:hover,
html[data-trinix-theme="dark"] .template-card:hover {
  background: var(--tx-raised) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-trinix-theme="dark"] .feature-card:hover .feature-title {
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .trust-indicators {
  border-top-color: var(--tx-border) !important;
}

html[data-trinix-theme="dark"] .tx-chat {
  background: var(--tx-raised) !important;
  color: var(--tx-text) !important;
  border-color: var(--tx-border) !important;
}

html[data-trinix-theme="dark"] .tx-chat small { color: var(--tx-muted) !important; }

html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured {
  background: var(--tx-inverse) !important;
  color: var(--tx-inverse-text) !important;
  border-color: var(--tx-inverse) !important;
}

html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .plan-name,
html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .price,
html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .featured-price,
html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .feature-item,
html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .feature-item span {
  color: var(--tx-inverse-text) !important;
  -webkit-text-fill-color: var(--tx-inverse-text) !important;
}

html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .plan-tagline,
html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .period {
  color: #334155 !important;
}

html[data-trinix-theme="dark"] .pricing-section .pricing-card.featured .pricing-btn,
html[data-trinix-theme="dark"] .cta-btn-primary {
  background: var(--tx-inverse-text) !important;
  color: var(--tx-inverse) !important;
}

html[data-trinix-theme="dark"] .popular-badge {
  background: rgba(12, 18, 34, 0.08) !important;
  color: #0c1222 !important;
}

html[data-trinix-theme="dark"] .cta-card {
  background: var(--tx-raised) !important;
  border: 1px solid var(--tx-border) !important;
}

html[data-trinix-theme="dark"] .cta-title,
html[data-trinix-theme="dark"] .cta-trust,
html[data-trinix-theme="dark"] .cta-trust span {
  color: var(--tx-text) !important;
}

html[data-trinix-theme="dark"] .cta-description {
  color: var(--tx-muted) !important;
}

html[data-trinix-theme="dark"] .cta-btn-secondary {
  color: var(--tx-text) !important;
  border-color: var(--tx-border) !important;
}

html[data-trinix-theme="dark"] .footer-section-title {
  color: #94a3b8 !important;
}

