/* ==========================================================================
   Vantage Digital — styles.css
   Brand: Ink #0E1116 · Accent #4C6FFF · Accent-dim #8C9EFF · Paper #F5F6F8
   Type: Helvetica/Arial Bold (headings) · Helvetica/Arial Regular (body)
   ========================================================================== */

:root {
  --ink: #0E1116;
  --ink-soft: #171B22;
  --accent: #4C6FFF;
  --accent-dim: #8C9EFF;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --line: rgba(14, 17, 22, 0.1);
  --line-dark: rgba(245, 246, 248, 0.12);
  --shadow: 0 20px 50px -20px rgba(14, 17, 22, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; margin-bottom: .35em; }

p { margin: 0 0 1em; color: rgba(14,17,22,0.72); }

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

.text-accent { color: var(--accent); }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  margin: 0 0 .9em;
}

.section-lead {
  max-width: 640px;
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px -8px rgba(76, 111, 255, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(76, 111, 255, .65); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 248, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo {
  height: 32px;
  width: auto;
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 76%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(76, 111, 255, 0));
  }
  88% {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 16px rgba(76, 111, 255, .45));
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:not(.nav-cta) { color: rgba(14,17,22,0.7); transition: color .2s; }
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(600px 340px at 18% 20%, rgba(76,111,255,.22), transparent 60%),
    radial-gradient(500px 320px at 82% 0%, rgba(140,158,255,.28), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 760px; }
.hero-sub { font-size: 1.15rem; max-width: 600px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero-phone-demo { justify-self: end; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .code-demo.hero-phone-demo { display: none; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 90px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(76,111,255,.1);
  color: var(--accent);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.card-list li {
  font-size: .92rem;
  color: rgba(14,17,22,0.65);
  padding-left: 22px;
  position: relative;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(76,111,255,.15);
  box-shadow: inset 0 0 0 3px var(--accent);
}

@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AI Automation section
   ========================================================================== */
.automation {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
}
.automation h2, .automation p { color: var(--paper); }
.automation p.section-lead { color: rgba(245,246,248,0.68); }
.automation-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.automation-steps {
  list-style: none;
  margin: 30px 0 34px;
  padding: 0;
  display: grid;
  gap: 22px;
}
.automation-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.automation-steps h4 { color: var(--paper); }
.automation-steps p { color: rgba(245,246,248,0.62); margin: 0; font-size: .95rem; }

.step-num {
  flex: none;
  font-weight: 700;
  font-size: .85rem;
  color: var(--accent-dim);
  border: 1.5px solid rgba(140,158,255,.4);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

/* phone demo mock */
.phone-demo { display: flex; justify-content: center; }
.phone-demo-frame {
  width: 320px;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 32px;
  padding: 14px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.phone-demo-notch {
  width: 70px;
  height: 6px;
  border-radius: 4px;
  background: rgba(245,246,248,.15);
  margin: 0 auto 12px;
}
.phone-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(245,246,248,.6);
  padding: 0 6px 12px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 12px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-dim);
}
.dot-live { background: #4CFF9E; box-shadow: 0 0 0 3px rgba(76,255,158,.2); }

.phone-demo-body {
  height: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 4px 8px;
  overflow: hidden;
}
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn .5s var(--ease) forwards;
}
.bubble.caller {
  align-self: flex-start;
  background: rgba(245,246,248,.08);
  color: var(--paper);
  border-bottom-left-radius: 4px;
}
.bubble.ai {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

/* code editor mock (hero) */
.code-demo-frame {
  width: 380px;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  padding-bottom: 20px;
  box-shadow: 0 30px 70px -20px rgba(14, 17, 22, .45);
  overflow: hidden;
}
.code-demo-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 20px;
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-red { background: #FF5F57; }
.code-dot-yellow { background: #FEBC2E; }
.code-dot-green { background: #28C840; }
.code-demo-filename {
  margin-left: 8px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .76rem;
  color: rgba(245, 246, 248, .5);
}
.code-demo-body {
  padding: 0 22px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .86rem;
  line-height: 2.1;
  color: rgba(245, 246, 248, .85);
}
.code-line {
  display: block;
  width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  animation: codeType 5s ease-in-out infinite;
}
.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: .45s; }
.code-line:nth-child(3) { animation-delay: .9s; }
.code-line:nth-child(4) { animation-delay: 1.35s; }
.tok-kw { color: var(--accent-dim); }
.tok-fn { color: var(--accent); }
.tok-comment { color: rgba(245, 246, 248, .4); }
.code-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent-dim);
  animation: blink 1s steps(1) infinite;
}

@keyframes codeType {
  0% { width: 0; }
  10% { width: 100%; }
  72% { width: 100%; }
  86%, 100% { width: 0; }
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ==========================================================================
   Reviews / stickers section
   ========================================================================== */
.reviews { padding: 100px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.review-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.sticker-mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: rotate(-3deg);
  transition: transform .4s var(--ease);
}
.sticker-mock:hover { transform: rotate(0deg); }

.qr-mock {
  width: 140px;
  height: 140px;
  background: var(--ink);
  border-radius: 12px;
  padding: 12px;
}
.qr-grid {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-image:
    repeating-linear-gradient(90deg, var(--white) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--white) 0 8px, transparent 8px 16px);
  background-blend-mode: screen;
  background-color: var(--ink);
  opacity: .95;
  position: relative;
}
.qr-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, var(--white) 0 12px, transparent 13px),
    radial-gradient(circle at 85% 15%, var(--white) 0 12px, transparent 13px),
    radial-gradient(circle at 15% 85%, var(--white) 0 12px, transparent 13px);
}
.sticker-caption {
  text-align: center;
  font-weight: 700;
  font-size: .92rem;
  margin: 0;
  color: var(--ink);
}
.stars-mock {
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 3px;
}

.review-features {
  display: grid;
  gap: 18px;
  margin: 26px 0 30px;
}
.review-feature {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
  border-left: 3px solid var(--accent-dim);
}
.review-feature strong { font-size: 1.02rem; }
.review-feature span { color: rgba(14,17,22,0.62); font-size: .92rem; }

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-visual { order: -1; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process { padding: 90px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 44px;
}
.process-step .step-num {
  border-color: rgba(76,111,255,.35);
  color: var(--accent);
  margin-bottom: 14px;
}
@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact / booking
   ========================================================================== */
.contact { padding: 100px 0 120px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: start;
}
.contact-details { margin-top: 26px; display: grid; gap: 14px; }
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  width: fit-content;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.contact-line svg { width: 20px; height: 20px; color: var(--accent); }
.contact-line:hover { border-color: var(--accent); color: var(--accent); }

.booking-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.booking-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.booking-icon { width: 40px; height: 40px; }
.booking-card-head h3 { margin-bottom: 2px; }
.booking-card-head p { margin: 0; font-size: .88rem; }
.booking-note { margin: 14px 0 0; font-size: .85rem; text-align: center; }
.booking-note a { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(245,246,248,.6);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 26px; width: auto; opacity: .95; }
.footer-meta { text-align: right; font-size: .85rem; }
.footer-meta p { margin: 0 0 4px; color: inherit; }

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

/* ==========================================================================
   Sticky CTA (mobile)
   ========================================================================== */
.sticky-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -8px rgba(76,111,255,.6);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 90;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (min-width: 901px) {
  .sticky-cta { display: none; }
}

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 26px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .bubble, .brand-logo { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .code-line { animation: none !important; width: 100% !important; }
  .code-cursor { animation: none !important; }
}
