:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --border-active: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* HIGH-VISIBILITY KINETIC AMBIENT ANIMATION */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle, #cbd5e1 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

/* Dynamic floating light orb */
body::after {
  content: "";
  position: fixed;
  top: -10%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.12) 40%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, 15%) scale(1.15); }
  100% { transform: translate(8%, -8%) scale(0.9); }
}

/* TOP NAVIGATION */
.site-header {
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-symbol {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-cta-btn {
  background: var(--text-primary);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-cta-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* HERO SECTION */
.artcraft-hero {
  padding: 60px 24px 30px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.platform-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.artcraft-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.artcraft-hero p.lead-text {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 28px;
}

/* PROMOTIONAL SUBSCRIPTION OFFER BANNER */
.promo-subscription-card {
  max-width: 680px;
  margin: 0 auto 36px;
  background: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
}

.promo-details {
  text-align: left;
}

.promo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent-rose);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.promo-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.promo-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.promo-pricing-lock {
  text-align: right;
}

.old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.deal-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-blue);
  line-height: 1.1;
}

.deal-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* SEARCH CAPSULE (ODOO STYLE) */
.search-hub {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.search-form-capsule {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  padding: 8px 10px 8px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.search-form-capsule:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.15);
}

.search-icon {
  font-size: 16px;
  margin-right: 12px;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
}

.search-input-field::placeholder {
  color: var(--text-muted);
}

.search-action-btn {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-action-btn:hover {
  background: var(--accent-blue-hover);
}

/* CATEGORY STRIP */
.category-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.category-chip {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.category-chip:hover, .category-chip.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

/* APP SHOWCASE CARDS (BRIGHT ELEGANT SQUIRCLE) */
.apps-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.app-ecosystem-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.1);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-icon-squircle {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-blue);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.app-icon-squircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title-group h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.app-badge-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.app-body-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.platform-support-icons {
  font-weight: 600;
  color: var(--text-secondary);
}

.install-label-link {
  color: var(--accent-blue);
  font-weight: 800;
  font-size: 13px;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact {
  margin-top: 8px;
  font-size: 13px;
}

.footer-contact a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 700;
}


/* HOMEPAGE HERO KEYWORD HIGHLIGHTS */
.biz-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1.5px 7px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}

.act-tag {
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 1.5px 7px;
  border-radius: 5px;
  font-weight: 600;
  white-space: nowrap;
}


/* HOMEPAGE NETWORK & FAQ ENHANCEMENTS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.faq-accordion-group details[open] summary span:last-child {
  transform: rotate(45deg);
}

.faq-accordion-group details summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 768px) {
  #hero-section {
    min-height: 440px !important;
    padding: 50px 16px 40px !important;
  }
}


/* ==================================================== */
/* DANSYO MINIMALIST DESIGN SYSTEM (ODOO-INSPIRED)     */
/* ==================================================== */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-secondary: #475569;
  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-dark: #0f172a;
  --accent-dark-hover: #1e293b;
  --accent-emerald: #059669;
  --accent-emerald-bg: #ecfdf5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* Standardized Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main) !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: #94a3b8;
}

/* Clean Odoo-Style App Card */
.app-card-odoo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-card-odoo:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .app-card-odoo, .btn-primary, .btn-secondary {
    transition: none !important;
    transform: none !important;
  }
}


/* FULL-WIDTH RESPONSIVE SOFTWARE CATALOG */
.catalog-full-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

@media (min-width: 1600px) {
  .catalog-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
  }
}

@media (max-width: 1200px) {
  .catalog-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .catalog-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .catalog-full-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* DANSYO MOBILE RESPONSIVE ENGINE */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
  }

  /* Universal section boundary constraints */
  section, header, footer, main, .container {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Grid breakdowns to single column */
  .apps-showcase-grid,
  .catalog-full-grid,
  #catalogGrid,
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Category pills horizontal swipe strip */
  .category-filter-bar {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    padding: 6px 12px 14px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .category-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Launcher & Banner adaptive sizing */
  #dansyo-hub > div > div,
  #dansyo-hub-launcher-card {
    padding: 24px 18px !important;
  }

  #dansyo-hub a[style*="display: inline-flex"],
  #dansyo-hub-launcher-card .btn {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Search capsule container */
  .search-hub,
  div[style*="max-width: 580px; margin: 0 auto"] {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 4px !important;
  }
}

@media (max-width: 480px) {
  #hero-section {
    padding: 44px 14px 36px !important;
  }

  #hero-section h1 {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
  }

  #hero-section p {
    font-size: 14px !important;
  }

  #artisticPriceLink {
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  #heroPriceText {
    font-size: 26px !important;
  }

  .app-card-odoo {
    padding: 16px !important;
  }

  /* Bottom contact launcher widget */
  #floatingContactFab {
    bottom: 16px !important;
    right: 16px !important;
  }

  #floatingContactFab button {
    padding: 9px 15px !important;
    font-size: 12.5px !important;
  }

  #contactSlidePanel {
    right: 12px !important;
    bottom: 68px !important;
    width: calc(100vw - 24px) !important;
    padding: 18px !important;
    box-sizing: border-box !important;
  }
}
