/* =========================================================
   YourGuide.lk – Landing page styles
   Brand: blue #0489EB + black, heavy rounded wordmark
   ========================================================= */

:root {
  --blue: #0489eb;
  --blue-dark: #0268b8;
  --blue-soft: #e8f4fe;
  --ink: #0b0b0b;
  --text: #2b3138;
  --muted: #5f6b76;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(4, 137, 235, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 11, 11, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head.center { text-align: center; margin-inline: auto; }

/* ---------- Logo wordmark ---------- */
.logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.logo .b { color: var(--blue); }
.logo--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
}
/* shine sweep */
.btn::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-22deg);
  transition: left .7s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::before { left: 135%; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn:focus-visible { outline: 3px solid rgba(4,137,235,.45); outline-offset: 3px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 16px 32px rgba(4,137,235,.42), 0 0 0 5px rgba(4,137,235,.14); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 28px rgba(11,11,11,.28); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: #f1f8ff; box-shadow: 0 14px 28px rgba(0,0,0,.28), 0 0 0 5px rgba(255,255,255,.25); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav__links a:not(.btn) { padding: 6px 0; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav .logo { flex: none; }
.nav .btn { white-space: nowrap; }

/* burger (hidden on desktop) */
.nav__check { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.nav__burger:hover { box-shadow: 0 8px 20px rgba(4,137,235,.18); }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, background .2s ease, top .25s ease;
}
.nav__burger span { position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav__check:focus-visible + .nav__burger { outline: 3px solid rgba(4,137,235,.5); outline-offset: 2px; }
.nav__check:checked + .nav__burger span { background: transparent; }
.nav__check:checked + .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav__check:checked + .nav__burger span::after { top: 0; transform: rotate(-45deg); }
.nav__links a:not(.btn):hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--blue-soft), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #f0f7ff, transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .b { color: var(--blue); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Phone mockup: thick CSS frame + dynamic island around the app screenshot */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  z-index: 2;
  width: 322px;
  padding: 17px;
  background: linear-gradient(145deg, #23272c 0%, #0b0b0b 45%, #1a1d21 100%);
  border-radius: 56px;
  box-shadow:
    0 0 0 2px #3a3f45,
    0 0 0 4px #0b0b0b,
    inset 0 0 0 2px rgba(255,255,255,.08),
    var(--shadow-lg);
}
/* side buttons */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; background: #3a3f45; border-radius: 2px;
}
.phone::before { left: -7px; top: 118px; height: 54px; box-shadow: 0 74px 0 #3a3f45; }
.phone::after { right: -7px; top: 160px; height: 88px; }
.phone__screen {
  position: relative;
  background: #eef4fb;
  border-radius: 38px;
  overflow: hidden;
  line-height: 0;
}
.phone__screen img { width: 100%; height: auto; display: block; }
.phone__island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 29px;
  background: #000;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px;
}
.phone__lens {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2f3a5a 0 25%, #0d1224 60%, #05070f 100%);
  box-shadow: 0 0 0 1.5px #12151c;
}

.float-card {
  position: absolute; z-index: 3; background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: .8rem;
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
}
.float-card strong { display: block; color: var(--ink); font-size: .85rem; }
.float-card small { color: var(--muted); }
.float-card--a { left: -34px; top: 90px; }
.float-card--b { right: -6px; bottom: 90px; }
.float-card .dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 6px rgba(34,197,94,.18); flex: none; }
.float-card svg { width: 30px; height: 30px; flex: none; }

/* ---------- Problem strip ---------- */
.problem { background: var(--ink); color: #cfd6dd; padding: 72px 0; }
.problem h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; max-width: 760px; }
.problem h2 .b { color: var(--blue); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.problem__item {
  border: 1px solid #262c33; border-radius: var(--radius); padding: 24px; background: #11151a;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.problem__item:hover {
  transform: translateY(-6px); background: #141b23; border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(4,137,235,.3), 0 4px 12px rgba(0,0,0,.4);
}
.problem__item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.problem__item p { margin: 0; font-size: .95rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
/* blue gradient layer fades in on hover */
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(145deg, #25a2ff 0%, var(--blue) 45%, var(--blue-dark) 100%);
  transition: opacity .35s ease;
}
/* soft light circle */
.feature::after {
  content: ""; position: absolute; z-index: -1; top: -60px; right: -60px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 70%);
  transform: scale(.4); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--blue);
  transition: background .3s ease, color .3s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; transition: color .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; transition: color .3s ease, transform .35s cubic-bezier(.2,.8,.2,1); }

/* Every card turns blue on hover */
.feature:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 24px 48px rgba(4,137,235,.34), 0 6px 14px rgba(4,137,235,.2);
}
.feature:hover::before { opacity: 1; }
.feature:hover::after { opacity: 1; transform: scale(1); }
.feature:hover h3 { color: #fff; transform: translateX(3px); }
.feature:hover p { color: rgba(255,255,255,.94); transform: translateX(3px); }
.feature:hover .feature__icon { background: rgba(255,255,255,.2); color: #fff; transform: scale(1.1) rotate(-6deg); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 20px 20px 24px; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.step:hover {
  transform: translateY(-6px); background: #fff; border-color: #cfe7fb;
  box-shadow: 0 18px 38px rgba(4,137,235,.16), 0 4px 10px rgba(11,11,11,.06);
}
.step:hover::before { background: var(--blue); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; margin-bottom: 16px;
  transition: background .3s ease;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 43px; left: 78px; right: -12px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px);
}
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Safety split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.split p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--text); }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue); }
.panel {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 28px; padding: 36px; color: #fff; box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.track { background: rgba(255,255,255,.14); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.track__row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.track__row + .track__row { margin-top: 10px; opacity: .9; font-size: .82rem; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 5px rgba(74,222,128,.3); }
.panel small { opacity: .85; display: block; }

/* ---------- Audience cards ---------- */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.aud {
  border-radius: 24px; padding: 36px; border: 1px solid var(--line); background: #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.aud:hover { transform: translateY(-8px); border-color: #bfe0fb; box-shadow: 0 28px 56px rgba(11,11,11,.14), 0 6px 16px rgba(4,137,235,.12); }
.aud--dark:hover { border-color: var(--blue); box-shadow: 0 28px 56px rgba(4,137,235,.34), 0 6px 16px rgba(0,0,0,.35); }
.aud--dark { background: var(--ink); border-color: var(--ink); }
.aud--dark h3, .aud--dark li { color: #fff; }
.aud--dark p { color: #b6c0ca; }
.aud h3 { font-size: 1.5rem; font-weight: 800; }
.aud p { color: var(--muted); }
.aud ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.aud li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.aud li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.faq details:hover { transform: translateY(-3px); border-color: #bfe0fb; box-shadow: 0 14px 30px rgba(4,137,235,.16), 0 3px 8px rgba(11,11,11,.05); }
.faq details[open] { border-color: #bfe0fb; box-shadow: 0 10px 24px rgba(4,137,235,.12); }
.faq summary:hover { color: var(--blue-dark); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 88px; }
.cta__box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 32px; padding: 64px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta__box::before, .cta__box::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.cta__box::before { width: 320px; height: 320px; top: -140px; left: -100px; }
.cta__box::after { width: 260px; height: 260px; bottom: -120px; right: -60px; }
.cta__box > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.cta p { max-width: 560px; margin: 0 auto 28px; opacity: .92; font-size: 1.05rem; }
.signup { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 14px; flex-wrap: wrap; justify-content: center; }
.signup input {
  flex: 1 1 240px; padding: 15px 20px; border-radius: 999px; border: 0; font: inherit; color: var(--ink);
}
.signup input:focus { outline: 3px solid rgba(255,255,255,.55); }
.cta small { opacity: .8; }
.badges { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.store {
  display: inline-block; line-height: 0; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.store img { height: 60px; width: auto; display: block; border-radius: 12px; }
.store:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(0,0,0,.38), 0 0 0 4px rgba(255,255,255,.25); }
.store:active { transform: translateY(-1px) scale(.98); }
.store:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab4be; padding: 56px 0 28px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-family: "Poppins", sans-serif; font-size: .95rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid #222930; padding-top: 22px; display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__burger { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11,11,11,.12); font-size: 1.05rem;
  }
  .nav__check:checked ~ .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; padding: 15px 26px; }
  .float-card--a { left: max(0px, calc(50% - 215px)); }
  .float-card--b { right: max(0px, calc(50% - 215px)); }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .problem__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .features, .audience, .steps { grid-template-columns: 1fr; }
  .float-card--a { left: 0; top: 40px; }
  .float-card--b { right: 0; bottom: 40px; }
  .cta__box { padding: 48px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .phone { width: 296px; padding: 15px; border-radius: 52px; }
  .phone__screen { border-radius: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .feature:hover, .step:hover, .aud:hover, .problem__item:hover, .faq details:hover, .store:hover { transform: none; }
}
