:root {
  --navy: #0a2540;
  --navy-2: #123a5c;
  --navy-deep: #071a2e;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-light: #2dd4bf;
  --amber: #f0a532;
  --ink: #16202c;
  --gray: #5b6b7c;
  --gray-light: #8a99a8;
  --bg: #f6f8fa;
  --line: #e6eaef;
  --line-strong: #d7dee5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-sm: 0 4px 14px -4px rgba(10, 37, 64, .12);
  --shadow-md: 0 12px 28px -10px rgba(10, 37, 64, .18);
  --shadow-lg: 0 24px 60px -18px rgba(10, 37, 64, .28);
  --shadow-teal: 0 14px 30px -12px rgba(13, 148, 136, .35);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
strong { color: var(--navy); }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
::selection { background: rgba(13,148,136,.22); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-alt + .section-alt { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .09em;
  font-size: .74rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.section-head p { color: var(--gray); font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s cubic-bezier(.4,0,.2,1); text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(13,148,136,.42); }
.btn-outline { border-color: var(--line-strong); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); background: #f2fbfa; }
.btn-ghost-white { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--amber); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: .93rem; position: relative; }
.main-nav a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 6px; transform: translateX(100%);
    transition: transform .2s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 12px 8px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(45,212,191,.20), transparent 60%),
    radial-gradient(700px 400px at -5% 110%, rgba(240,165,50,.12), transparent 55%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff; padding: 108px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 55%, transparent);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.4rem); }
.hero p.lead { color: #c3d6e4; font-size: 1.16rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 52px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; }
.hero-stats div { padding-right: 36px; margin-right: 36px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-stats div:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: #fff; letter-spacing: -0.01em; }
.hero-stats div span { color: #93acbf; font-size: .82rem; }

/* Hero product visual */
.hero-visual { position: relative; animation: fadeUp .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.mockup-frame {
  background: #0f2a44; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup-titlebar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.mockup-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mockup-titlebar .bar { margin-left: 10px; height: 8px; flex: 1; max-width: 220px; background: rgba(255,255,255,.08); border-radius: 4px; }
.float-badge {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; color: var(--navy);
}
.float-badge .dot-up { width: 26px; height: 26px; border-radius: 50%; background: rgba(13,148,136,.12); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.float-badge-1 { top: -18px; left: -22px; }
.float-badge-2 { bottom: -16px; right: -18px; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Trust bar (logos strip) */
.trust-bar { padding: 44px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.trust-bar .label { text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-light); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 42px; }
.trust-row span { font-weight: 700; color: var(--navy); font-size: 1.02rem; opacity: .55; letter-spacing: -0.01em; }

/* Grid / Cards */
.grid { display: grid; gap: 26px; }
.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: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(145deg, rgba(13,148,136,.14), rgba(13,148,136,.05));
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon .icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.14rem; margin-bottom: 9px; }
.card p { color: var(--gray); font-size: .95rem; margin-bottom: 0; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .89rem; color: var(--teal-dark); }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--teal-dark); background: rgba(13,148,136,.1); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }

/* Feature lists */
.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { display: flex; gap: 11px; padding: 9px 0; color: var(--ink); font-size: .95rem; }
.feature-list .icon { color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* Testimonials */
.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.testimonial-card .quote-mark { position: absolute; top: 22px; right: 26px; color: rgba(13,148,136,.14); }
.testimonial-card .quote-mark .icon { width: 34px; height: 34px; }
.testimonial-card .stars { color: var(--amber); margin-bottom: 16px; display: flex; gap: 2px; }
.testimonial-card .stars .icon { width: 15px; height: 15px; }
.testimonial-card blockquote { margin: 0 0 22px; font-size: 1.01rem; color: var(--ink); }
.testimonial-card .who-row { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.testimonial-card .who { font-weight: 700; color: var(--navy); font-size: .92rem; }
.testimonial-card .org { color: var(--gray); font-size: .84rem; }

/* Logos */
.logo-wall { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.logo-wall .logo-tile {
  flex: 1 1 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 7px; transition: box-shadow .2s ease, transform .2s ease;
}
.logo-wall .logo-tile:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-wall .logo-tile .name { font-weight: 700; color: var(--navy); display:flex; align-items:center; gap:10px; }
.logo-wall .logo-tile .desc { color: var(--gray); font-size: .88rem; }
.badge-featured { font-size: .68rem; text-transform: uppercase; color: var(--amber); font-weight: 700; letter-spacing:.05em; }

/* Pricing */
.pricing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; position: relative; display:flex; flex-direction:column; transition: box-shadow .2s ease, transform .2s ease; }
.pricing-card:hover { box-shadow: var(--shadow-sm); }
.pricing-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); transform: scale(1.02); }
.pricing-card .badge { position:absolute; top:-14px; right:30px; background:var(--teal); color:#fff; font-size:.72rem; font-weight:700; padding:6px 16px; border-radius:999px; box-shadow: var(--shadow-teal); }
.pricing-card h3 { margin-bottom: 4px; }
.pricing-card .price { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 16px 0 2px; letter-spacing: -0.02em; }
.pricing-card .price-note { color: var(--gray-light); font-size: .82rem; margin-bottom: 20px; }
.pricing-card p.desc { color: var(--gray); font-size: .92rem; }
.pricing-card .btn { margin-top: auto; }

/* Forms */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: .95rem;
  font-family: var(--font); background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,148,136,.13); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .92rem; }
.alert-success { background: #e3f7f2; color: #0b6b5d; border: 1px solid #b7e7dc; }
.alert-error { background: #fdecec; color: #9c2626; border: 1px solid #f6c6c6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 15px; padding: 17px 0; border-top: 1px solid var(--line); }
.contact-info-item:first-child { border-top: none; }
.contact-info-item .icon { color: var(--teal); width: 20px; height: 20px; margin-top: 3px; flex-shrink:0; }
.contact-info-item strong { display:block; color: var(--navy); }

/* CTA band */
.cta-band { background:
    radial-gradient(600px 260px at 90% 0%, rgba(45,212,191,.18), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy-2));
  color: #fff; border-radius: 28px; padding: 64px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d6e4; max-width: 560px; margin: 0 auto 30px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfe0ec; padding: 68px 0 32px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: #a9c1d1; font-size: .93rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #7f9bae; }
.footer-brand p { color: #93acbf; font-size: .91rem; max-width: 280px; }
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.social-links a:hover { background: var(--teal); }
.social-links .icon { width: 16px; height: 16px; color: #fff; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(165deg, var(--navy-deep), var(--navy-2)); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(45,212,191,.20), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #c3d6e4; max-width: 640px; font-size: 1.06rem; }
.breadcrumb { font-size: .82rem; color: #8fa9bc; margin-bottom: 16px; }
.breadcrumb a { color: #c3d6e4; }

/* Prose (about/legal pages) */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink); font-size: 1.03rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }

/* Chat widget */
#pamirix-chat-launcher {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--teal); color: #fff; border: none; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 200;
  display: flex; align-items: center; justify-content: center; transition: transform .18s ease, background .18s ease;
}
#pamirix-chat-launcher:hover { transform: scale(1.07); background: var(--teal-dark); }
#pamirix-chat-launcher .icon { width: 25px; height: 25px; }

#pamirix-chat-window {
  position: fixed; bottom: 98px; right: 24px; width: 368px; max-width: calc(100vw - 32px);
  height: 486px; max-height: calc(100vh - 140px); background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; z-index: 200;
  border: 1px solid var(--line);
}
#pamirix-chat-window.open { display: flex; }
.chat-header { background: var(--navy-deep); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-header .title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.chat-header .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-header button { background: none; border: none; color: #cfe0ec; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f4f7f9; }
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { color: var(--gray-light); font-style: italic; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .88rem; font-family: var(--font); }
.chat-input-row input:focus { outline: none; border-color: var(--teal); }
.chat-input-row button { background: var(--teal); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-input-row button:hover { background: var(--navy); }
.chat-input-row button .icon { width: 17px; height: 17px; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggestions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer; color: var(--navy); }
.chat-suggestions button:hover { border-color: var(--teal); color: var(--teal); }

@media (max-width: 480px) {
  #pamirix-chat-window { right: 16px; left: 16px; width: auto; bottom: 90px; }
  #pamirix-chat-launcher { right: 16px; }
}
