/* Callunex AI website. Colours taken from the business card:
   dark navy front, white back, violet gradient logo and swooshes. */
:root {
  --night: #0B0C16;        /* card front */
  --night-2: #141629;
  --violet: #6C5CF6;       /* logo / icons */
  --violet-light: #8B7CFF;
  --violet-deep: #4B3BD6;
  --lavender: #EEEBFF;     /* card back swoosh */
  --paper: #FFFFFF;
  --paper-2: #F6F6FA;
  --ink: #15161F;
  --muted: #5E6072;
  --line: #E4E4EE;
  --grad: linear-gradient(135deg, var(--violet-light), var(--violet-deep));
  --radius: 18px;
  --shadow: 0 24px 50px -28px rgba(20, 18, 60, 0.35);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--font); color: #fff; background: var(--grad); border: 0; padding: 14px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(108, 92, 246, 0.7); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(108, 92, 246, 0.8); }
.btn-sm { padding: 10px 20px; font-size: 0.92rem; }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.btn-outline { background: transparent; color: var(--violet-deep); border: 1.5px solid var(--violet); box-shadow: none; }
.btn-outline:hover { background: var(--lavender); box-shadow: none; }
.btn-full { width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 3px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo b { font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 22, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Swooshes, like the curves on the card */
.swoosh { position: absolute; right: -18%; bottom: -55%; width: 75%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(108, 92, 246, 0.0) 52%, rgba(108, 92, 246, 0.35) 53%, rgba(75, 59, 214, 0.55) 70%, rgba(75, 59, 214, 0.15) 100%); filter: blur(2px); }
.swoosh-light { background: radial-gradient(circle at 30% 30%, transparent 55%, var(--lavender) 56%, #E4DFFF 80%); filter: none; opacity: 0.8; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, var(--night-2), var(--night) 60%); color: #fff; padding-block: 72px 96px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero .eyebrow { color: var(--violet-light); }
.lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.72); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 4px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-light); }

.call-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 22px; display: grid; gap: 12px; backdrop-filter: blur(6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.call-head { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-variant-numeric: tabular-nums; }
.live { display: inline-flex; align-items: center; gap: 8px; color: #9FF0C0; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; }
.msg small { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 2px; }
.msg.caller { justify-self: end; background: rgba(255, 255, 255, 0.08); border-bottom-right-radius: 4px; }
.msg.ai { justify-self: start; background: var(--grad); border-bottom-left-radius: 4px; }
.booked { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(74, 222, 128, 0.12); color: #9FF0C0; font-size: 0.88rem; font-weight: 500; }
.booked svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .call-card .msg, .js .call-card .booked { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .call-card .show { opacity: 1; transform: none; }

/* Sections */
.section { padding-block: 96px; position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 48px; }
.section-head .muted { font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card:hover { border-color: #D3CEFF; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 0.97rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lavender); display: grid; place-items: center; margin-bottom: 6px; }
.icon svg, .details svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Industries */
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industries li { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 4px; }
.industries span { color: var(--muted); font-size: 0.93rem; }
.industries .featured { background: var(--night); color: #fff; border-color: var(--night); position: relative; overflow: hidden; }
.industries .featured span { color: rgba(255, 255, 255, 0.7); }
.industries .featured::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(108, 92, 246, 0.45); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.plan li span { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; }
.price span { color: var(--muted); }
.plan-rec { background: var(--night); color: #fff; border-color: var(--night); box-shadow: var(--shadow); }
.plan-rec .muted, .plan-rec .price span, .plan-rec li span { color: rgba(255, 255, 255, 0.65); }
.plan-rec li { border-color: rgba(255, 255, 255, 0.1); }
.tag { position: absolute; top: -13px; left: 28px; background: var(--grad); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.fine { margin-top: 24px; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--paper); }
.faq details[open] { border-color: #D3CEFF; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--violet); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact { background: var(--paper-2); overflow: hidden; }
.contact-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.details { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.details li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; }
.details a { text-decoration: none; }
.details a:hover { color: var(--violet-deep); }
.form { background: var(--paper); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 500; min-width: 0; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--font); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); background: var(--paper); }
.form .invalid { border-color: #D93A55; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #1E7A45; }
.form-status.err { color: #C2203F; }

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, 0.7); padding-block: 56px 28px; }
.footer .logo { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tagline { margin-top: 14px; font-style: italic; font-size: 0.95rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .call-card .msg, .js .call-card .booked { opacity: 1; transform: none; transition: none; }
  .live::before { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cards, .industries { grid-template-columns: 1fr 1fr; }
  .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 480px; margin-inline: auto; gap: 28px; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 8px 24px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .menu .btn { margin-top: 16px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 64px; }
  .cards, .industries, .row2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .cta-row .btn { flex: 1 1 auto; }
  .swoosh { width: 140%; right: -60%; bottom: -30%; }
}
