/* ============================================
   Solve ICT — immersive homepage, pricing,
   checkout and AI assistant. Loaded after style.css.
   ============================================ */
:root {
  --ink: #050b14;
  --ink-2: #0b1726;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);
  --muted: #94a3b8;
  --glow: 0 0 40px rgba(0,171,214,0.35);
}

body.immersive { background: var(--ink); color: #e2e8f0; }
body.immersive h1, body.immersive h2, body.immersive h3, body.immersive h4 { color: #fff; }
body.immersive p { color: #cbd5e1; }
body.immersive .section-title p { color: var(--muted); }
body.immersive section { padding: 90px 0; }
body.immersive section.alt { background: var(--ink-2); }
body.immersive .site-header { background: rgba(5,11,20,0.75); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); }

.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- 3D hero --- */
.hero3d { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 0 !important; }
.hero3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero3d::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(5,11,20,0.2) 0%, rgba(5,11,20,0.85) 75%);
}
.hero3d .container { position: relative; z-index: 2; width: 100%; }
.hero3d h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.05; max-width: 720px; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero3d .subtitle { font-size: 1.15rem; max-width: 560px; color: #cbd5e1; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost { background: var(--glass); color: #fff; border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* --- Glass cards with 3D tilt --- */
.tilt { transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s; will-change: transform; }
.tilt > * { transform: translateZ(30px); }
.glass-card {
  position: relative; background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border); border-radius: 18px; padding: 30px;
}
.glass-card:hover { box-shadow: var(--glow); }
.glass-card .icon { font-size: 2rem; margin-bottom: 12px; display: block; }

.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; perspective: 1000px; }

/* --- Pricing --- */
.billing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -1.5rem; margin-bottom: 2rem; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; perspective: 1200px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--glow); }
.price-card .badge {
  position: absolute; top: -12px; right: 20px; background: var(--accent-yellow); color: var(--ink);
  font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; text-transform: uppercase;
}
.price-card .aud { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; color: #fff; margin: 10px 0 4px; }
.price-card .amount small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.price-card .dep { font-size: .82rem; color: var(--accent); margin-bottom: 16px; }
.price-card ul { list-style: none; margin: 0 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: .93rem; color: #cbd5e1; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.price-card .btn { justify-content: center; }

.addon-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.addon-table td { padding: 14px 10px; border-bottom: 1px solid var(--glass-border); color: #cbd5e1; font-size: .95rem; }
.addon-table td:last-child { text-align: right; color: #fff; font-weight: 700; white-space: nowrap; }
.addon-table small { display: block; color: var(--muted); }

/* --- Browser mock (3D) --- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mock-stage { perspective: 1400px; height: 380px; position: relative; }
.mock {
  position: absolute; width: 78%; border-radius: 12px; overflow: hidden; border: 1px solid var(--glass-border);
  background: #0f1d2b; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transition: transform .6s;
}
.mock .bar { height: 26px; background: #16263a; display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.mock .body { padding: 16px; }
.mock .blk { height: 12px; border-radius: 4px; background: rgba(255,255,255,0.08); margin-bottom: 10px; }
.mock .hero-blk { height: 90px; border-radius: 8px; background: linear-gradient(120deg, var(--accent), #6d28d9); margin-bottom: 14px; }
.mock.m1 { left: 0; top: 30px; transform: rotateY(22deg) rotateX(6deg) translateZ(-60px); }
.mock.m2 { right: 0; top: 80px; width: 62%; transform: rotateY(-18deg) rotateX(4deg) translateZ(20px); }
.mock.m2 .hero-blk { background: linear-gradient(120deg, var(--accent-yellow), #f97316); }
.mock-stage:hover .m1 { transform: rotateY(10deg) rotateX(2deg) translateZ(0); }
.mock-stage:hover .m2 { transform: rotateY(-6deg) translateZ(60px); }
.mock-stage .phone {
  position: absolute; left: 44%; bottom: 0; width: 110px; height: 210px; border-radius: 20px; border: 3px solid #334155;
  background: #0f1d2b; transform: rotateY(-25deg) translateZ(90px); box-shadow: 0 20px 40px rgba(0,0,0,.6); padding: 14px 8px;
}
.phone .hero-blk { height: 60px; border-radius: 8px; background: linear-gradient(120deg, var(--accent), #22c55e); margin-bottom: 8px; }
.phone .blk { height: 8px; border-radius: 3px; background: rgba(255,255,255,0.1); margin-bottom: 6px; }

/* --- Steps --- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.flow .glass-card::before {
  counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center;
}

.cta-band { text-align: center; background: radial-gradient(circle at 50% 0%, rgba(0,171,214,0.25), transparent 60%); }

body.immersive .site-footer { background: #03070d; border-top: 1px solid var(--glass-border); }

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* --- Checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: var(--glass); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt input { margin-top: 5px; accent-color: var(--accent); }
.opt .t { flex: 1; }
.opt .t strong { color: #fff; }
.opt .t small { display: block; color: var(--muted); }
.opt .p { color: #fff; font-weight: 700; white-space: nowrap; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea, .qty {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.3); color: #fff; font-size: .95rem; font-family: inherit;
}
.qty { width: 70px; padding: 6px 8px; }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; color: #cbd5e1; }
.summary .total { border-top: 1px solid var(--glass-border); margin-top: 8px; padding-top: 12px; font-size: 1.05rem; color: #fff; font-weight: 700; }
.summary .due { font-size: 1.8rem; color: var(--accent); font-weight: 800; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pay-badges span { font-size: .72rem; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,0.08); color: #e2e8f0; }
.notice { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.checkout-grid h3 { margin-top: 26px; }
.checkout-grid h3:first-child { margin-top: 0; }

/* --- AI assistant widget --- */
.bot-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 300; width: 62px; height: 62px; border-radius: 50%;
  border: none; cursor: pointer; background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff; font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(0,171,214,0.5); animation: pulse 2.6s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,171,214,0.55); } 50% { box-shadow: 0 0 0 14px rgba(0,171,214,0); } }
.bot-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 300; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  display: none; flex-direction: column; border-radius: 18px; overflow: hidden; background: #0b1726; border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.55); font-size: .92rem;
}
.bot-panel.open { display: flex; }
.bot-head { padding: 14px 16px; background: linear-gradient(135deg, #0f2a40, #1b1446); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.bot-head small { display: block; color: #67e8f9; font-size: .75rem; }
.bot-head button { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.bot-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; color: #e2e8f0; }
.msg.bot { background: rgba(255,255,255,0.07); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chips button { font-size: .78rem; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--glass-border); background: transparent; color: #cbd5e1; cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: #fff; }
.bot-form { display: flex; border-top: 1px solid var(--glass-border); }
.bot-form input { flex: 1; padding: 14px; border: none; background: transparent; color: #fff; font-size: .92rem; outline: none; }
.bot-form button { padding: 0 18px; border: none; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
  .showcase, .checkout-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .mock-stage { height: 300px; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  body.immersive section { padding: 64px 0; }
  .hero3d { min-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bot-fab { animation: none; }
  .tilt { transition: none; }
}

/* --- Ticket form inside the chat --- */
.msg.ticket { display: flex; flex-direction: column; gap: 8px; max-width: 100%; width: 100%; white-space: normal; }
.msg.ticket small { color: var(--muted); }
.msg.ticket input, .msg.ticket select, .msg.ticket textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.35); color: #fff; font: inherit; font-size: .88rem;
}
.msg.ticket .btn { justify-content: center; }

[hidden] { display: none !important; }

/* --- Inner page hero & long-form text --- */
.page-hero {
  padding: 90px 0 50px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,171,214,0.22), transparent 65%), var(--ink);
  border-bottom: 1px solid var(--glass-border);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -1px; margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; color: #e2e8f0; }
.prose h4 { font-size: .98rem; margin: 1.2rem 0 .3rem; color: #fff; }
.prose ul { margin: 0 0 1rem 1.2rem; color: #cbd5e1; }
.prose li { margin-bottom: .4rem; }
body.immersive .contact-grid { gap: 24px; align-items: start; }

.wa-fab { position: fixed; right: 96px; bottom: 28px; z-index: 300; width: 50px; height: 50px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s; }
.wa-fab:hover { transform: scale(1.07); }

.nav-links .nav-cta { color: #fff !important; padding: 8px 16px; }
.nav-links .nav-signin { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--glass-border); }
.nav-links .nav-signin a { color: var(--muted); }
@media (max-width: 900px) { .nav-links .nav-signin { margin-left: 0; padding-left: 0; border-left: 0; } }
.wa-fab::after, .bot-fab::after { position: absolute; right: 0; bottom: calc(100% + 6px); white-space: nowrap; font-size: 12px; font-weight: 600;
  background: rgba(15,23,42,.92); color: #fff; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.wa-fab::after { content: 'Sales on WhatsApp'; }
.bot-fab::after { content: 'Ask IT support'; }
.wa-fab:hover::after, .bot-fab:hover::after, .wa-fab:focus-visible::after, .bot-fab:focus-visible::after { opacity: 1; }
