/* ============================================================
   Tcurve — Making the world 2.0
   Modern dark theme with animated gradient borders
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --bg:            #070a12;
  --bg-soft:       #0b1120;
  --surface:       #10182b;
  --surface-2:     #131d33;
  --line:          rgba(255, 255, 255, 0.08);
  --text:          #e8eef7;
  --muted:         #93a1b8;
  --muted-2:       #64748b;

  --accent:        #18b4ec;   /* cyan from logo */
  --accent-2:      #6c5ce7;   /* violet */
  --accent-3:      #22d3a6;   /* teal glow */
  --accent-soft:   rgba(24, 180, 236, 0.14);

  --grad:          linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-soft:     linear-gradient(120deg, rgba(24,180,236,.16), rgba(108,92,231,.16));

  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow:   0 0 40px -8px rgba(24, 180, 236, 0.45);

  --container:     1180px;
  --gap:           clamp(58px, 7vw, 96px);   /* consistent vertical rhythm */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);

  --font:          'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:  'Bricolage Grotesque', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* animated angle property for rotating gradient borders */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 80% -10%, rgba(108, 92, 231, 0.18), transparent 60%),
    radial-gradient(50vw 50vw at 0% 10%, rgba(24, 180, 236, 0.16), transparent 55%),
    radial-gradient(40vw 40vw at 60% 100%, rgba(34, 211, 166, 0.10), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title { font-size: clamp(28px, 4vw, 44px); }
.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

section { position: relative; }
/* --- Consistent vertical rhythm ---------------------------------
   Every content section carries --gap top & bottom. When two padded
   sections sit back-to-back the second one's top is collapsed, so the
   space between any two blocks is always exactly one --gap.           */
.section-pad { padding: var(--gap) 0; }
.section-pad + .section-pad,
.page-hero + .section-pad { padding-top: 0; }

/* ============================================================
   Animated gradient border — reusable
   ============================================================ */
.glow-border {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;                 /* border thickness */
  border-radius: inherit;
  background: conic-gradient(from var(--angle),
      var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 6s linear infinite;
  z-index: -1;
}
@keyframes spin { to { --angle: 360deg; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  position: relative;
  white-space: nowrap;
}
.btn i { transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 55px -6px rgba(24,180,236,.6); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 46px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: color .25s, background .25s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  width: 60%;
  margin: 3px auto 0;
  border-radius: 2px;
  background: var(--grad);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,18,.55) 0%, rgba(7,10,18,.85) 60%, var(--bg) 100%);
}
.hero-content { max-width: 780px; }
.hero h1 {
  font-size: clamp(38px, 6.5vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 strong { display: block; font-weight: 800; }
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  margin-bottom: 28px;
}
.hero-badge b { color: var(--accent); }
.hero-badge .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  color: #fff; font-size: 11px;
}

/* floating scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 22px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ============================================================
   Feature top boxes
   ============================================================ */
.features { margin-top: -70px; position: relative; z-index: 5; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  padding: 34px 30px;
  border-radius: var(--radius);
}
.feature-card .ico {
  width: 74px; height: 74px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.feature-card .ico img { width: 42px; height: 42px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3.4;
  padding: 4px;
  overflow: hidden;
}
.about-visual .inner {
  height: 100%;
  border-radius: calc(var(--radius) - 4px);
  background:
    radial-gradient(circle at 30% 20%, rgba(24,180,236,.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(108,92,231,.25), transparent 55%),
    var(--surface-2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* animated grid inside about visual */
.about-visual .inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask: radial-gradient(circle at center, #000, transparent 75%);
  -webkit-mask: radial-gradient(circle at center, #000, transparent 75%);
  animation: drift 18s linear infinite;
}
@keyframes drift { to { background-position: 38px 38px; } }
.about-visual .stat-float {
  position: relative; z-index: 2;
  text-align: center;
}
.about-visual .stat-float b {
  font-size: clamp(42px, 6vw, 68px);
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.about-visual .stat-float span { color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.about-text h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.about-text p { color: var(--muted); font-size: 17px; margin-bottom: 30px; }

.about-list { display: grid; gap: 14px; margin-bottom: 34px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15.5px; }
.about-list i {
  color: var(--accent);
  margin-top: 3px;
}

/* ============================================================
   CRM cards
   ============================================================ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

.crm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.crm-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease);
}
.crm-card:hover { transform: translateY(-8px); }
.crm-card .crm-visual {
  height: 120px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.crm-card .crm-visual img {
  height: 96px; width: auto;
  filter: drop-shadow(0 12px 24px rgba(24,180,236,.35));
  transition: transform .4s var(--ease);
}
.crm-card:hover .crm-visual img { transform: scale(1.08) translateY(-4px); }
.crm-card h3 { font-size: 18px; margin-bottom: 6px; }
.crm-card .tag { color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.crm-card p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Stats parallax band
   ============================================================ */
.stat-band {
  text-align: center;
  padding: 0;                 /* outer spacing comes from neighbouring --gap */
  position: relative;
  overflow: hidden;
}
.stat-band > .container { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.stat-band::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: var(--grad);
  opacity: .10;
}
.stat-band::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-band h2 {
  font-size: clamp(52px, 10vw, 120px);
  line-height: 1;
  background: linear-gradient(100deg, var(--accent), var(--accent-3), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-band p { font-size: clamp(18px, 2.5vw, 26px); color: var(--muted); margin-top: 8px; }
.stat-band p span { color: var(--text); font-weight: 700; }

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial { text-align: center; }
.testimonial .quote {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px;
  border-radius: var(--radius);
}
.testimonial .qmark { font-size: 60px; color: var(--accent); line-height: .5; font-family: Georgia, serif; }
.testimonial blockquote {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
}
.testimonial cite {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.testimonial cite span { color: var(--muted); font-weight: 500; }
.testimonial .btn { margin-top: 34px; }

/* ============================================================
   Contact / Support form section
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-form-wrap { padding: 40px; border-radius: var(--radius); }
.contact-form { display: grid; gap: 18px; }
.field { position: relative; }
.field i {
  position: absolute; left: 18px; top: 18px;
  color: var(--muted-2); font-size: 15px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px 15px 46px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.field textarea { min-height: 130px; padding-top: 15px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-info { padding: 40px; border-radius: var(--radius); }
.contact-info h3 { font-size: 26px; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 30px; }
.info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.info-item .ii-ico {
  flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent);
}
.info-item .ii-txt small { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.info-item .ii-txt p { color: var(--text); font-weight: 600; line-height: 1.5; }

.social-icons { display: flex; gap: 12px; margin: 30px 0 26px; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform .3s var(--ease), color .3s, border-color .3s, background .3s;
}
.social-icons a:hover { transform: translateY(-4px); color: #fff; border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  text-align: center;
  padding: 0 0 var(--gap);    /* top gap comes from previous section; keep bottom before footer */
}
.cta-inner {
  padding: clamp(44px, 6vw, 72px);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad);
  opacity: .12;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 42px); max-width: 760px; margin: 0 auto 30px; }
.cta-inner h2 strong { color: var(--accent); }

/* ============================================================
   Page hero (secondary pages)
   ============================================================ */
.page-hero {
  padding: clamp(130px, 15vw, 170px) 0 var(--gap);
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 18px; }
.breadcrumb { color: var(--muted-2); font-size: 14px; margin-top: 20px; }
.breadcrumb a:hover { color: var(--accent); }

/* generic content list cards */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.detail-card { padding: 34px; border-radius: var(--radius); }
.detail-card .dc-ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 20px;
}
.detail-card .dc-ico img { width: 34px; height: 34px; }
.detail-card .dc-ico i { color: var(--accent); font-size: 22px; }
.detail-card h3 { font-size: 20px; margin-bottom: 10px; }
.detail-card p { color: var(--muted); font-size: 15px; }

/* careers positions */
.position { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: var(--radius); margin-bottom: 18px; }
.position h3 { font-size: 19px; margin-bottom: 4px; }
.position p { color: var(--muted); font-size: 14px; }
.position .meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 70px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
}
.footer-logo img { height: 70px; width: auto; margin: 0 auto 26px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; margin-bottom: 30px; }
.footer-nav a { padding: 8px 16px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-radius: 8px; transition: color .25s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--accent); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
.reveal.zoom { transform: scale(.9); }
.reveal.zoom.in { transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Illustrations / images
   ============================================================ */
.illus {
  position: relative;
  border-radius: var(--radius);
  padding: 6px;
  overflow: visible;
}
.illus img, .illus svg { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 6px); }
.illus.float img, .illus.float svg { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.illus .glow-blob {
  position: absolute; inset: -30px; z-index: -1;
  background: radial-gradient(circle at 40% 30%, rgba(24,180,236,.35), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(108,92,231,.30), transparent 60%);
  filter: blur(30px);
}

/* photo frames (real images) */
.illus.photo { padding: 6px; background: var(--surface); }
.illus.photo img {
  aspect-ratio: 4 / 3.25;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  transition: transform .7s var(--ease);
}
.illus.photo:hover img { transform: scale(1.05); }
.illus.photo .ov {
  position: absolute; inset: 6px; z-index: 1; pointer-events: none;
  border-radius: calc(var(--radius) - 6px);
  background: linear-gradient(150deg, rgba(24,180,236,.12), transparent 42%, rgba(7,10,18,.5));
}
.illus.photo.wide img { aspect-ratio: 16 / 8; }

/* google maps embed */
.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  width: 100%; height: 440px; border: 0; display: block;
  filter: invert(92%) hue-rotate(180deg) brightness(.95) contrast(.92) saturate(.8);
}
.map-embed .map-pin {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(16,24,43,.92); border: 1px solid var(--line);
  backdrop-filter: blur(8px); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow);
}
.map-embed .map-pin i { color: var(--accent); }
@media (max-width: 640px) { .map-embed iframe { height: 340px; } }

/* floating mini badges over illustrations */
.illus .chip-float {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(16,24,43,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700;
  backdrop-filter: blur(8px);
  animation: floaty 5s ease-in-out infinite;
}
.illus .chip-float i { color: var(--accent-3); }
.illus .chip-float.top { top: 8%; right: -18px; animation-delay: .4s; }
.illus .chip-float.bottom { bottom: 10%; left: -18px; animation-delay: 1.1s; }

/* ============================================================
   3D tilt cards
   ============================================================ */
.tilt { transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }
.tilt-inner { transform: translateZ(30px); }

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee {
  overflow: hidden;
  margin-top: var(--gap);
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.marquee-item i { color: var(--accent); font-size: 20px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============================================================
   Steps (how it works)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 34px 28px; border-radius: var(--radius); position: relative; }
.step .num {
  counter-increment: step;
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--grad-soft); border: 1px solid var(--line);
  font-size: 22px; font-weight: 800; color: var(--accent);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============================================================
   Value / perk grid
   ============================================================ */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 30px 26px; border-radius: var(--radius); }
.value-card .v-ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent); font-size: 20px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 14.5px; }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-tile { padding: 30px 20px; border-radius: var(--radius); }
.stat-tile b { display: block; font-size: clamp(28px, 4vw, 42px); background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-tile span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.acc-head {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 16.5px; font-weight: 700;
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.acc-head i { color: var(--accent); transition: transform .35s var(--ease); flex: none; }
.acc-item.open .acc-head i { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc-body p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ============================================================
   Support option cards
   ============================================================ */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.support-card { padding: 32px 24px; border-radius: var(--radius); text-align: center; transition: transform .4s var(--ease); }
.support-card:hover { transform: translateY(-8px); }
.support-card .s-ico { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); color: var(--accent); font-size: 24px; }
.support-card h3 { font-size: 17px; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 14px; }

/* ============================================================
   Form validation states
   ============================================================ */
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.14); }
.field .err { display: none; color: #ff8585; font-size: 12.5px; margin-top: 6px; padding-left: 4px; }
.field.invalid .err { display: block; }
.field.valid input, .field.valid textarea { border-color: rgba(34,211,166,.5); }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
.contact-form.shake { animation: shake .4s; }

/* ============================================================
   Thank-you modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(3,6,12,.72); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; max-width: 440px; width: 100%;
  padding: 46px 38px; border-radius: 22px; text-align: center;
  background: var(--surface);
  transform: translateY(24px) scale(.96); transition: transform .4s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal h3 { font-size: 26px; margin: 22px 0 10px; }
.modal p { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.modal .modal-close-x { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; }
.modal .modal-close-x:hover { color: #fff; }

/* animated success check */
.check-wrap { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--line); display: grid; place-items: center; }
.check-svg { width: 54px; height: 54px; }
.check-svg circle { stroke: var(--accent-3); stroke-width: 4; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: checkCircle .6s var(--ease) forwards; }
.check-svg path { stroke: var(--accent-3); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: checkMark .35s .5s var(--ease) forwards; }
@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkMark { to { stroke-dashoffset: 0; } }

/* ============================================================
   Hero animated blobs
   ============================================================ */
.hero-blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob.b1 { width: 420px; height: 420px; background: rgba(24,180,236,.4); top: -80px; right: 6%; animation: blobMove 16s ease-in-out infinite; }
.blob.b2 { width: 360px; height: 360px; background: rgba(108,92,231,.38); bottom: -60px; left: 4%; animation: blobMove 20s ease-in-out infinite reverse; }
.blob.b3 { width: 260px; height: 260px; background: rgba(34,211,166,.3); top: 40%; left: 44%; animation: blobMove 24s ease-in-out infinite; }
@keyframes blobMove { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.12); } 66% { transform: translate(-30px,20px) scale(.92); } }

@media (max-width: 960px) {
  .steps, .value-grid, .support-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps, .value-grid, .support-grid, .stat-row { grid-template-columns: 1fr; }
  .illus .chip-float { display: none; }
  .modal { padding: 38px 24px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .crm-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }

  /* raise header above the backdrop while the menu is open.
     NOTE: no backdrop-filter here — it would become the containing block
     for the fixed nav panel and clip it to the header's height. */
  .site-header.nav-open {
    z-index: 1000;
    background: #0b1120;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1000;
    width: min(330px, 84vw);
    height: 100%;
    background: #0b1120;                 /* solid, fully opaque */
    border-left: 1px solid var(--line);
    padding: 96px 22px 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 16px; }
  .main-nav a:hover { background: rgba(255,255,255,0.06); }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--accent-soft); }
  .menu-toggle { display: flex; position: relative; z-index: 1001; }
  .header-actions .btn-quote { display: none; }
}

/* Mobile menu backdrop (created by JS, appended to <body>) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 7, 14, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .crm-grid { grid-template-columns: 1fr; }
  .features { margin-top: 40px; }
  .contact-form-wrap, .contact-info { padding: 28px; }
  .testimonial .quote { padding: 34px 24px; }
  .position { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 18px; }
}

/* ============================================================
   Custom cursor (desktop / fine-pointer only)
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(24, 180, 236, 0.9);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(24, 180, 236, 0.55);
  transition: width .28s var(--ease), height .28s var(--ease),
              background-color .28s var(--ease), border-color .28s var(--ease);
}
.cursor-ring.is-active {
  width: 62px; height: 62px;
  background: rgba(24, 180, 236, 0.10);
  border-color: rgba(24, 180, 236, 0.9);
}
/* hide native cursor when custom one is active, but keep text caret in fields */
html.custom-cursor, html.custom-cursor a, html.custom-cursor button,
html.custom-cursor .btn, html.custom-cursor .tilt, html.custom-cursor .acc-head {
  cursor: none;
}
html.custom-cursor input, html.custom-cursor textarea { cursor: text; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
