/* Hostlinko Design System
   Apple-inspired, calm, professional design system.
   Adapted from the Jaratel design system: same tokens/spacing/components,
   re-themed with Hostlinko's purple/yellow brand colors. */

:root {
  /* Brand */
  --primary: #a558e1;
  --primary-dark: #8a3fc4;
  --primary-soft: #f3e9fb;
  --secondary: #ffc400;
  --secondary-dark: #d9a500;
  --secondary-soft: #fff7e0;

  /* Navy (brand pair with purple) */
  --navy: #0c1442;
  --navy-light: #161f5c;
  --navy-soft: #eaecf6;
  --gradient-brand: linear-gradient(135deg, #4361ee 0%, #a558e1 100%);
  --gradient-brand-soft: linear-gradient(135deg, #eef0ff 0%, #f3e9fb 100%);

  /* Neutrals */
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f0f0f2;
  --border: #e3e3e6;
  --border-soft: #ececee;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-faint: #98989d;

  /* Status */
  --danger: #d4373f;
  --danger-soft: #fbe9e9;
  --warning: #b8860b;
  --warning-soft: #fbf3df;
  --info: #0066cc;
  --info-soft: #e8f1fc;
  --success: #1c8a4b;
  --success-soft: #e7f6ee;

  /* Radius */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 { letter-spacing: -0.01em; margin: 0; font-weight: 600; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sales-page { max-width: 720px; margin: 0 auto; padding: 0 20px; }

section { padding: 80px 0; }
@media (max-width: 760px) { section { padding: 50px 0; } }

/* ---------------------------------- Typography ---------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin: 0; }
@media (max-width: 760px) {
  .section-head h2 { font-size: 1.5rem; }
}

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }

/* ---------------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  background: var(--gradient-brand);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn i { font-size: 0.95em; }
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; padding: 10px 16px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-onlight { background: var(--secondary); color: #1d1d1f; }
.btn-onlight:hover { background: var(--secondary-dark); color: #1d1d1f; }

/* ---------------------------------- Cards ---------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-soft); }
.card-lg { border-radius: var(--radius-lg); padding: 32px; }
@media (max-width: 760px) { .card-lg { padding: 20px; } }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title-row h3 { font-size: 1.05rem; font-weight: 600; }

.icon-tile {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.icon-tile.alt { background: var(--secondary-soft); color: var(--secondary-dark); }

/* Solution / Service / Hosting feature cards */
.feature-card { display: flex; flex-direction: column; height: 100%; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.feature-card ul.feature-list { list-style: none; margin: 0 0 18px; padding: 0; }
.feature-card ul.feature-list li {
  font-size: 0.85rem; color: var(--text-muted);
  padding: 5px 0 5px 22px; position: relative;
}
.feature-card ul.feature-list li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  color: var(--primary); position: absolute; left: 0; top: 5px; font-size: 0.72rem;
}
.feature-card .btn-ghost { align-self: flex-start; padding: 8px 0; font-weight: 600; }
.feature-card .btn-ghost:hover { background: transparent; color: var(--primary); }

/* Pricing card (hosting plans) */
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; height: 100%;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card .ribbon {
  position: absolute; top: -13px; left: 32px;
  background: var(--secondary); color: #1d1d1f;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-card .plan-tag { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; display: block; }
.price-card .price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.01em; }
.price-card .price small { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.price-card .price-period { display: none; }
.price-card.show-yearly .price-period.yearly,
.price-card:not(.show-yearly) .price-period.monthly { display: inline; }
.price-card ul.plan-features { list-style: none; margin: 22px 0; padding: 0; flex: 1; }
.price-card ul.plan-features li {
  font-size: 0.88rem; padding: 8px 0; border-bottom: 1px solid var(--border-soft);
  padding-left: 22px; position: relative; color: var(--text);
}
.price-card ul.plan-features li:last-child { border-bottom: none; }
.price-card ul.plan-features li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  color: var(--primary); position: absolute; left: 0; top: 9px; font-size: 0.7rem;
}

/* Toggle (monthly/annually) */
.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 auto 40px; }
.billing-toggle span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.billing-toggle span.active { color: var(--text); }
.billing-switch {
  width: 50px; height: 28px; border-radius: 999px; background: var(--border);
  position: relative; cursor: pointer; transition: background .2s;
}
.billing-switch .knob {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; position: absolute;
  top: 3px; left: 3px; transition: left .2s; box-shadow: var(--shadow-sm);
}
.billing-switch.on { background: var(--primary); }
.billing-switch.on .knob { left: 25px; }
.save-badge {
  font-size: 0.7rem; font-weight: 700; color: var(--success); background: var(--success-soft);
  padding: 3px 9px; border-radius: 999px;
}
@media (max-width: 760px) {
  .billing-toggle { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 28px; }
  .billing-toggle span { font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
}

/* ---------------------------------- Grid ---------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; }
}

/* ---------------------------------- Stat cards ---------------------------------- */
.stat-card { text-align: center; padding: 30px 20px; }
.stat-card .stat-value { font-size: 2.4rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.stat-card .stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 6px; }

/* ---------------------------------- Badges ---------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-secondary { background: var(--secondary-soft); color: var(--secondary-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }

/* ---------------------------------- Forms ---------------------------------- */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-family: var(--font);
  font-size: 0.95rem; color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------------------------------- Site Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .brand img { height: 34px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav .nav-link {
  font-size: 0.92rem; font-weight: 500; color: var(--text); position: relative; padding: 8px 0;
}
.site-nav .nav-link:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer;
}
.menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; margin: 0 auto; }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 300; opacity: 0;
  pointer-events: none; transition: opacity .25s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 78%; max-width: 320px;
  background: var(--surface); z-index: 301; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s ease;
  padding: 24px; overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel .nav-link { display: block; padding: 13px 0; border-bottom: 1px solid var(--border-soft); font-weight: 500; }
.mobile-panel .panel-close { background: none; border: none; font-size: 1.3rem; color: var(--text-muted); float: right; cursor: pointer; }

@media (max-width: 920px) {
  .site-nav { display: none; }
  .header-actions .btn-secondary { display: none; }
  .menu-btn { display: flex; }
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  padding: 110px 0 90px;
  background: var(--gradient-brand);
  text-align: center;
}
.hero .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.hero h1 { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.02em; max-width: 880px; margin: 0 auto 22px; color: #fff; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 640px; margin: 0 auto 36px; line-height: 1.6; }
.hero .hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero .btn { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }
.hero .btn:hover { background: #fff; filter: brightness(.97); color: var(--primary-dark); }
.hero .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero .hero-trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: rgba(255,255,255,.7); font-size: 0.88rem; font-weight: 600; }
.hero .hero-trust i { color: var(--secondary); margin-right: 6px; }
@media (max-width: 760px) {
  .hero { padding: 70px 0 50px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .hero-actions { flex-wrap: nowrap; gap: 10px; width: 100%; }
  .hero .hero-actions .btn { flex: 1 1 0; padding: 13px 14px; font-size: 0.85rem; white-space: nowrap; }
  .hero .hero-trust {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px;
    justify-content: stretch; text-align: left; max-width: 360px; margin: 0 auto;
  }
  .hero .hero-trust span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) {
  .hero .hero-actions .btn { font-size: 0.78rem; padding: 12px 8px; }
  .hero .hero-actions .btn i { display: none; }
}

/* ---------------------------------- Sub-page header (hosting/wordpress) ---------------------------------- */
.page-hero {
  padding: 80px 0 60px;
  background: var(--gradient-brand);
  text-align: center;
}
.page-hero .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 16px; color: #fff; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------------------------------- Why choose / comparison ---------------------------------- */
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.why-item:last-child { border-bottom: none; }
.why-item .icon-tile { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 1.05rem; }
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* ---------------------------------- Testimonials ---------------------------------- */
.testimonial-card { display: flex; flex-direction: column; height: 100%; }
.testimonial-card .stars { color: var(--secondary-dark); margin-bottom: 14px; font-size: 0.9rem; }
.testimonial-card p.quote { color: var(--text); font-size: 0.96rem; line-height: 1.65; flex: 1; margin: 0 0 18px; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
}
.testimonial-card .person strong { display: block; font-size: 0.9rem; }
.testimonial-card .person span { display: block; font-size: 0.78rem; color: var(--text-muted); }

/* ---------------------------------- Tech stack ---------------------------------- */
.tech-badge {
  display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.9rem;
  justify-content: center;
}
.tech-badge i { color: var(--primary); font-size: 1.2rem; }

/* ---------------------------------- Blog cards ---------------------------------- */
.blog-card img { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16/10; object-fit: cover; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card .blog-body { padding: 22px; }
.blog-card .blog-meta { font-size: 0.76rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* ---------------------------------- FAQ accordion ---------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; font-size: 1rem; font-weight: 600; color: var(--text); font-family: var(--font);
}
.faq-question i { color: var(--primary); transition: transform .25s ease; flex-shrink: 0; margin-left: 14px; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 4px 22px; color: var(--text-muted); line-height: 1.65; margin: 0; font-size: 0.93rem; }

/* ---------------------------------- CTA banner ---------------------------------- */
.cta-banner {
  background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.7); margin: 0; max-width: 480px; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-banner { padding: 32px; text-align: center; justify-content: center; }
  .cta-banner .cta-actions { flex-wrap: nowrap; width: 100%; gap: 10px; }
  .cta-banner .cta-actions .btn { flex: 1 1 0; padding: 13px 10px; font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 380px) {
  .cta-banner .cta-actions .btn { font-size: 0.76rem; padding: 12px 6px; }
}

/* ---------------------------------- Product showcase (illustrated banner) ---------------------------------- */
.product-showcase {
  background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.product-showcase .ps-content { flex: 1 1 380px; min-width: 0; position: relative; z-index: 2; }
.product-showcase .ps-eyebrow {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.product-showcase h2 { color: #fff; font-size: 1.95rem; line-height: 1.16; margin-bottom: 14px; }
.product-showcase > .ps-content > p { color: rgba(255,255,255,.82); margin: 0 0 22px; max-width: 520px; line-height: 1.6; }
.product-showcase .ps-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.product-showcase .ps-points li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.92); font-size: .95rem; line-height: 1.4; }
.product-showcase .ps-points li i { color: var(--secondary); margin-top: 3px; flex: none; }
.product-showcase .ps-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-showcase .ps-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; position: relative; z-index: 2; }
.product-showcase .ps-art svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 760px) {
  .product-showcase { padding: 36px 26px; gap: 30px; }
  .product-showcase h2 { font-size: 1.55rem; }
  .product-showcase .ps-art { order: -1; }
  .product-showcase .ps-actions { flex-wrap: nowrap; width: 100%; }
  .product-showcase .ps-actions .btn { flex: 1 1 0; padding: 13px 10px; font-size: .85rem; white-space: nowrap; }
}

/* ---------------------------------- Footer ---------------------------------- */
.site-footer { background: linear-gradient(160deg, var(--navy) 0%, #1a1040 100%); color: rgba(255,255,255,.7); padding-top: 70px; }
.site-footer .footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .footer-brand img { height: 32px; margin-bottom: 16px; }
.site-footer .footer-brand p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 240px; }
.site-footer .footer-social { display: flex; gap: 10px; margin-top: 18px; }
.site-footer .footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.site-footer .footer-social a:hover { background: var(--primary); }
.site-footer .footer-col h5 {
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #fff; margin-bottom: 18px;
}
.site-footer .footer-col ul { list-style: none; }
.site-footer .footer-col li { margin-bottom: 11px; }
.site-footer .footer-col a { color: rgba(255,255,255,.65); font-size: 0.88rem; }
.site-footer .footer-col a:hover { color: #fff; }
.footer-newsletter { padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-newsletter h5 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.footer-newsletter p { margin: 0; color: rgba(255,255,255,.55); font-size: 0.88rem; }
.footer-newsletter form { display: flex; gap: 10px; }
.footer-newsletter input { width: 240px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom { padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,.5); }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 920px) {
  .site-footer .footer-top { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-footer .footer-top { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .footer-newsletter form { width: 100%; }
  .footer-newsletter input { width: 100%; flex: 1; }
}
@media (max-width: 480px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------- Legal / sales-page content ---------------------------------- */
.legal-page { padding: 60px 0 100px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 36px; display: block; }
.legal-page h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal-page h1 + p, .legal-page h2 + p { margin-top: 0; }
.legal-page p { color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; font-size: 0.95rem; }
.legal-page ul, .legal-page ol { color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; padding-left: 22px; font-size: 0.95rem; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { text-decoration: underline; }
.legal-page strong { color: var(--text); }

/* ---------------------------------- Empty state (404) ---------------------------------- */
.empty-state { text-align: center; padding: 130px 20px 140px; }
.empty-state .icon-wrap {
  width: 88px; height: 88px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem; margin: 0 auto 28px;
}
.empty-state h1 { font-size: 2.2rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); max-width: 440px; margin: 0 auto 30px; font-size: 1rem; }

/* ---------------------------------- Utilities ---------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------------------------------- Preloader ---------------------------------- */
.preloader { background: var(--surface); }
.preloader .preloader-container {
  width: auto; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.preloader .preloader-container span.loader-ring {
  display: block;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  animation: loader-spin .85s linear infinite;
}
.preloader .loader-logo { height: 26px; width: auto; opacity: .85; }
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ---------------------------------- Subpage menu (inherits the page's first gradient section) ---------------------------------- */
#coodiv-header.subpages-header-min {
  background: var(--gradient-brand) !important;
}
#coodiv-header.subpages-header-min .navbar.fixed-header-layout:not(.top-header-fixed) {
  background: transparent !important;
  box-shadow: none !important;
}
/* on scroll (.top-header-fixed) it behaves exactly like the homepage menu: white bg, dark text */

/* not sticky on subpages: only the homepage keeps a fixed/sticky nav */
#coodiv-header.subpages-header-min .navbar.fixed-header-layout {
  position: relative !important;
  z-index: 50 !important;
}
#coodiv-header.subpages-header-min .navbar.fixed-header-layout.top-header-fixed {
  position: relative !important;
  width: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 50 !important;
}


/* ============================================================= */
/* Premium "Intelligent solutions for modern businesses" cards    */
/* Rich AT REST — tinted gradient cards, depth, accent + glow.     */
/* Scoped to #solutions so only the Business Software cards change. */
/* ============================================================= */
#solutions { background: linear-gradient(180deg, #faf7ff 0%, #f4f0fb 100%); }
#solutions .grid { gap: 26px; }

#solutions .feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid #e9ddf7;
  background: linear-gradient(165deg, #f7f0ff 0%, #ffffff 58%);
  box-shadow: 0 4px 14px rgba(70, 34, 128, .06);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
/* warm variant for the gold cards (those with an .alt icon tile) */
#solutions .feature-card:has(.icon-tile.alt) {
  border-color: #f2e4c2;
  background: linear-gradient(165deg, #fff7e6 0%, #ffffff 58%);
  box-shadow: 0 4px 14px rgba(150, 96, 12, .06);
}
/* subtle glow in the top-right corner */
#solutions .feature-card::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(220px 180px at 100% 0%, rgba(165,88,225,.10), transparent 62%);
  transition: opacity .4s ease; opacity: .8;
}
#solutions .feature-card:has(.icon-tile.alt)::after {
  background: radial-gradient(220px 180px at 100% 0%, rgba(245,152,31,.12), transparent 62%);
}
#solutions .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(120, 60, 200, .12);
}
#solutions .feature-card:has(.icon-tile.alt):hover {
  box-shadow: 0 12px 26px rgba(210, 140, 20, .12);
}
#solutions .feature-card:hover::after { opacity: 1; }

/* keep the card body above the glow layer */
#solutions .feature-card > * { position: relative; z-index: 1; }

/* gradient icon tiles */
#solutions .feature-card .icon-tile {
  width: 50px; height: 50px;
  border-radius: 13px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #b06ae6 0%, #8a3fc4 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(138,63,196,.20);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
#solutions .feature-card .icon-tile.alt {
  background: linear-gradient(135deg, #ffcf3f 0%, #f5981f 100%);
  box-shadow: 0 4px 10px rgba(245,152,31,.22);
}
#solutions .feature-card:hover .icon-tile { transform: translateY(-2px) scale(1.05) rotate(-3deg); }

#solutions .feature-card h3 { font-size: 1.22rem; letter-spacing: -.01em; margin-bottom: 10px; }
#solutions .feature-card > p { color: #57515e; margin-bottom: 18px; }

/* feature list — circular check badges */
#solutions .feature-card ul.feature-list li {
  font-size: .875rem; padding: 7px 0 7px 28px; color: #4a4550;
}
#solutions .feature-card ul.feature-list li::before {
  content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
  font-size: .56rem; color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #b06ae6, #8a3fc4);
  display: flex; align-items: center; justify-content: center;
  top: 6px; left: 0;
}
#solutions .feature-card:has(.icon-tile.alt) ul.feature-list li::before {
  background: linear-gradient(135deg, #ffcf3f, #f5981f);
}

/* "Learn More" — solid gradient pill with a sliding arrow */
#solutions .feature-card .btn-ghost {
  align-self: flex-start;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a558e1, #8a3fc4);
  color: #fff;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
#solutions .feature-card:has(.icon-tile.alt) .btn-ghost {
  background: linear-gradient(135deg, #f9b52e, #f5981f);
}
#solutions .feature-card .btn-ghost i { transition: transform .25s ease; margin-left: 8px; }
#solutions .feature-card .btn-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 5px 12px rgba(138,63,196,.22);
}
#solutions .feature-card:has(.icon-tile.alt) .btn-ghost:hover {
  box-shadow: 0 5px 12px rgba(245,152,31,.24);
}
#solutions .feature-card .btn-ghost:hover i { transform: translateX(4px); }

@media (max-width: 600px) {
  #solutions .feature-card { padding: 26px 22px; }
}

/* ---------------------------------------------------------------------------
   Flickity touch fix: the bundled flickity CSS in main.min.css is missing the
   `touch-action: pan-y` rule, so dragging a carousel on mobile swallows the
   vertical scroll gesture (page freezes over the hero / services / testimonials).
   Restoring it lets the browser pan vertically while Flickity keeps horizontal swipe.
--------------------------------------------------------------------------- */
.flickity-enabled { touch-action: pan-y; }
.flickity-enabled.is-draggable .flickity-viewport { touch-action: pan-y; }

/* ---------------------------------------------------------------------------
   Never let the page get scroll-locked on mobile. The legacy offcanvas menu
   adds `body.offcanvas-stop-scrolling { overflow:hidden }`; a desynced
   open/close state (a stray swipe opened the menu outside Bootstrap's knowledge)
   could leave that class stuck, freezing the whole page. Neutralise it so the
   page can ALWAYS scroll.
--------------------------------------------------------------------------- */
body.offcanvas-stop-scrolling,
html.offcanvas-stop-scrolling,
body.modal-open {
  overflow: auto !important;
  height: auto !important;
  position: static !important;
}