:root {
  --navy: #0b1f3a;
  --navy-soft: #13345d;
  --orange: #ff9d1d;
  --orange-dark: #e8790d;
  --cream: #fff8ed;
  --paper: #ffffff;
  --ink: #142338;
  --muted: #657184;
  --line: #e7e9ed;
  --green: #168468;
  --shadow: 0 20px 55px rgba(11, 31, 58, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button, select { font: inherit; }
a { color: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 99; padding: 10px 14px; border-radius: 8px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(11, 31, 58, .07);
  backdrop-filter: blur(14px);
}

.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font-size: 1.35rem; font-weight: 850; letter-spacing: -.04em; }
.brand-dot { color: var(--orange-dark); }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 38px; height: 32px; padding: 6px 6px 10px; border-radius: 8px 8px 5px 5px; background: var(--orange); box-shadow: inset 0 -5px 0 rgba(11,31,58,.12); }
.bus-window { border-radius: 2px; background: var(--navy); opacity: .92; }
.bus-wheel { position: absolute; bottom: -4px; width: 8px; height: 8px; border: 2px solid white; border-radius: 50%; background: var(--navy); }
.bus-wheel-left { left: 6px; }
.bus-wheel-right { right: 6px; }

.primary-nav { display: flex; align-items: center; gap: 30px; color: #3d4b5e; font-size: .94rem; font-weight: 650; }
.primary-nav a { text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--orange-dark); }
.launch-badge { padding: 7px 12px; border: 1px solid #f5c77c; border-radius: 999px; color: #9b5705; background: #fff8e9; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 10px; background: #f2f4f7; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--navy); }

.hero { position: relative; min-height: 680px; overflow: hidden; color: white; background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(36, 86, 135, .52), transparent 32%), linear-gradient(115deg, transparent 52%, rgba(255,157,29,.06)); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; min-height: 680px; padding-block: 70px 84px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #ffd797; font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.eyebrow.dark { color: var(--orange-dark); }
.eyebrow.light { color: #ffd797; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(3.2rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.065em; }
.hero-intro { max-width: 590px; margin-bottom: 34px; color: #cad6e4; font-size: 1.13rem; }

.search-card { max-width: 700px; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: white; color: var(--ink); box-shadow: var(--shadow); }
.search-fields { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: end; gap: 10px; }
.field { display: grid; gap: 6px; }
.field span { color: #687486; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.field select { width: 100%; min-height: 52px; padding: 0 38px 0 13px; border: 1px solid #dce0e6; border-radius: 12px; color: var(--ink); background: #f9fafb; }
.field select:focus { outline: 3px solid rgba(255,157,29,.25); border-color: var(--orange-dark); }
.swap-button { width: 44px; height: 44px; margin-bottom: 4px; border: 1px solid #dce0e6; border-radius: 50%; color: var(--navy); background: white; cursor: pointer; }
.swap-button:hover { border-color: var(--orange); background: var(--cream); }
.search-button { width: 100%; margin-top: 13px; padding: 14px 20px; border: 0; border-radius: 12px; color: var(--navy); background: var(--orange); font-weight: 850; cursor: pointer; }
.search-button:hover { background: #ffad40; }
.search-button:focus-visible, .swap-button:focus-visible, .menu-button:focus-visible { outline: 3px solid rgba(255,157,29,.45); outline-offset: 2px; }
.search-message { display: none; margin: 13px 3px 0; padding: 11px 13px; border-radius: 10px; color: #6d4705; background: #fff5dc; font-size: .9rem; }
.search-message.visible { display: block; }
.search-message.error { color: #9c2e21; background: #fff0ed; }
.verification-note { margin: 16px 0 0; color: #9eb0c5; font-size: .86rem; }
.verification-note span { color: #65d6b5; font-weight: 900; }

.route-visual { position: relative; min-height: 520px; }
.sun { position: absolute; top: 56px; right: 62px; width: 84px; height: 84px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 80px rgba(255,157,29,.3); }
.cloud { position: absolute; height: 16px; border-radius: 999px; background: rgba(255,255,255,.13); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 18px; width: 32px; height: 32px; }
.cloud::after { left: 44px; width: 24px; height: 24px; }
.cloud-one { top: 112px; left: 48px; width: 88px; }
.cloud-two { top: 180px; right: 10px; width: 68px; transform: scale(.75); }
.hill { position: absolute; bottom: 78px; border-radius: 55% 55% 0 0 / 100% 100% 0 0; transform-origin: bottom; }
.hill-back { left: -30px; width: 560px; height: 245px; background: #153d55; transform: rotate(-3deg); }
.hill-front { left: 70px; width: 520px; height: 175px; background: #0d4a47; transform: rotate(5deg); }
.road-line { position: absolute; right: -110px; bottom: 63px; width: 650px; height: 80px; border-top: 5px solid #758297; border-radius: 50%; transform: rotate(5deg); }
.visual-bus { position: absolute; right: 58px; bottom: 85px; width: 250px; height: 128px; border-radius: 24px 28px 12px 12px; background: var(--orange); box-shadow: inset 0 -18px 0 var(--orange-dark), 0 24px 30px rgba(0,0,0,.25); transform: rotate(4deg); }
.visual-bus::before { content: "CITYBUS.LK"; position: absolute; left: 20px; bottom: 25px; color: var(--navy); font-size: 13px; font-weight: 950; letter-spacing: .08em; }
.visual-windows { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; padding: 16px 54px 0 16px; }
.visual-windows span { height: 43px; border-radius: 8px 8px 3px 3px; background: var(--navy-soft); border: 3px solid rgba(255,255,255,.55); }
.visual-door { position: absolute; top: 15px; right: 14px; width: 34px; height: 84px; border: 3px solid var(--navy); border-radius: 7px 12px 4px 4px; }
.visual-wheel { position: absolute; bottom: -16px; width: 38px; height: 38px; border: 8px solid #24354a; border-radius: 50%; background: #9da6b2; }
.wheel-one { left: 38px; }
.wheel-two { right: 38px; }
.route-pin { position: absolute; width: 18px; height: 18px; border: 4px solid var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.route-pin::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: white; }
.pin-one { left: 45px; bottom: 232px; }
.pin-two { right: 25px; bottom: 255px; }

.section { padding: 105px 0; }
.routes-section { background: #f7f8fa; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; margin-bottom: 45px; }
h2 { margin-bottom: 18px; font-size: clamp(2.25rem, 4vw, 3.55rem); line-height: 1.06; letter-spacing: -.05em; }
.section-heading > p, .info-copy > p { color: var(--muted); }
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.route-card { position: relative; min-height: 235px; padding: 27px 24px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.route-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(11,31,58,.09); }
.route-number { position: absolute; top: -15px; right: 10px; color: #f1f2f4; font-size: 5.6rem; font-weight: 900; line-height: 1; }
.route-cities { position: relative; display: grid; gap: 4px; margin: 28px 0 16px; font-size: 1.18rem; line-height: 1.2; }
.route-cities span { color: var(--orange-dark); }
.route-card p { color: var(--muted); font-size: .9rem; }
.status-pill { display: inline-block; padding: 6px 10px; border-radius: 999px; color: #08654f; background: #eaf8f3; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.info-section { background: white; }
.info-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.info-copy > p { max-width: 520px; }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--navy); background: var(--orange); font-weight: 900; }
.feature h3 { margin-bottom: 5px; font-size: 1.05rem; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.marketplace-section { background: var(--cream); }
.marketplace-heading { margin-bottom: 38px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-card { min-height: 280px; padding: 30px; border: 1px solid #eadfcd; border-radius: 20px; background: rgba(255,255,255,.78); }
.audience-card h3 { margin: 28px 0 12px; color: var(--navy); font-size: 1.45rem; line-height: 1.2; letter-spacing: -.025em; }
.audience-card p { margin-bottom: 0; color: var(--muted); }
.audience-label { display: inline-block; padding: 7px 11px; border-radius: 999px; color: #8a4b00; background: #ffe8c2; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.operator-card { color: white; border-color: var(--navy); background: var(--navy); }
.operator-card h3 { color: white; }
.operator-card p { color: #b8c5d4; }

.launch-section { padding: 90px 0; color: white; background: var(--navy); }
.launch-inner { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.launch-inner p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: #b8c5d4; }
.outline-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; text-decoration: none; font-weight: 750; white-space: nowrap; }
.outline-button:hover { color: var(--navy); background: white; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--muted); font-size: .86rem; }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { text-align: right; }
.footer-brand { font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 650; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--orange-dark); }
.footer-nav a[aria-current="page"] { color: var(--navy); }

/* Legal pages (terms, privacy) */
.legal-hero { padding: 50px 0 44px; color: white; background: var(--navy); }
.legal-hero h1 { max-width: 640px; margin-bottom: 14px; font-size: clamp(1.85rem, 3.6vw, 2.45rem); line-height: 1.12; letter-spacing: -.035em; }
.legal-hero > .container > p { max-width: 620px; margin-bottom: 0; color: #cad6e4; font-size: 1rem; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #9eb0c5; font-size: .85rem; }
.legal-meta strong { color: #dbe4ef; font-weight: 700; }

.legal-layout { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 62px; padding: 58px 0 96px; align-items: start; }
.legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 130px); padding: 22px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: #f7f8fa; }
.legal-toc h2 { margin-bottom: 12px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; font-size: .87rem; line-height: 1.4; }
.legal-toc a { color: #3d4b5e; text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--orange-dark); }

.legal-body { max-width: 780px; }
.legal-body > section { margin-bottom: 44px; scroll-margin-top: 96px; }
.legal-body h2 { margin-bottom: 12px; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.015em; }
.legal-body p, .legal-body li { color: #3f4b5c; }
.legal-body ol, .legal-body ul { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 22px; }
.legal-body li > ul, .legal-body li > ol { margin: 9px 0 0; }
.legal-body ol > li::marker { color: var(--muted); font-weight: 700; }
.legal-body a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-body em { color: var(--navy); font-style: normal; font-weight: 650; }

.legal-note { margin: 0 0 22px; padding: 18px 22px; border-left: 4px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--cream); }
.legal-note p { margin-bottom: 10px; font-size: .95rem; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-todo { padding: 1px 7px; border-radius: 6px; color: #8a4b00; background: #ffe8c2; font-weight: 700; white-space: nowrap; }
.legal-contact { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #f7f8fa; }
.legal-contact p:last-child { margin-bottom: 0; }
.legal-updated { margin-top: 22px; color: var(--muted); font-size: .85rem; }

/* Account deletion request form */
.request-form { display: grid; gap: 16px; max-width: 560px; margin: 0 0 22px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #f7f8fa; }
.request-form .field span { color: var(--muted); }
.request-form .hint { margin: 0; color: var(--muted); font-size: .82rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.request-form input, .request-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #dce0e6; border-radius: 12px; color: var(--ink); background: white; font: inherit; }
.request-form textarea { min-height: 96px; resize: vertical; }
.request-form input:focus, .request-form textarea:focus { outline: 3px solid rgba(255,157,29,.25); border-color: var(--orange-dark); }
.request-form input[aria-invalid="true"], .request-form textarea[aria-invalid="true"] { border-color: #c0392b; }
.prefix-input { display: flex; align-items: center; gap: 8px; }
.prefix-input .prefix { padding: 12px 11px; border: 1px solid #dce0e6; border-radius: 12px; background: white; color: var(--muted); font-weight: 700; }
.consent-field { display: flex; align-items: flex-start; gap: 10px; }
.consent-field input { width: 20px; min-width: 20px; height: 20px; margin-top: 2px; padding: 0; accent-color: var(--orange-dark); }
.consent-field label { color: #3f4b5c; font-size: .92rem; line-height: 1.45; }
.request-form .search-button { margin-top: 0; }
.request-form .search-button[disabled] { opacity: .6; cursor: not-allowed; }
.form-message { display: none; margin: 0; padding: 12px 14px; border-radius: 10px; color: #6d4705; background: #fff5dc; font-size: .9rem; }
.form-message.visible { display: block; }
.form-message.error { color: #9c2e21; background: #fff0ed; }
.form-message.success { color: #1d6b3f; background: #e8f7ee; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; gap: 7px 24px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 90px; }
  .route-visual { min-height: 400px; margin-top: -30px; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .operator-card { grid-column: 1 / -1; }
  .info-grid { gap: 55px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { height: 68px; }
  .menu-button { display: block; }
  .primary-nav { position: absolute; top: 68px; left: 14px; right: 14px; display: none; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; gap: 8px; }
  .primary-nav a { padding: 10px; border-radius: 8px; }
  .launch-badge { text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { padding: 62px 0 70px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-intro { font-size: 1rem; }
  .search-fields { grid-template-columns: 1fr 44px; }
  .search-fields .field:first-child { grid-column: 1 / -1; }
  .search-fields .field:last-child { grid-column: 1 / -1; grid-row: 2; }
  .swap-button { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; transform: rotate(90deg); }
  .route-visual { display: none; }
  .section { padding: 76px 0; }
  .section-heading, .info-grid, .launch-inner { grid-template-columns: 1fr; gap: 25px; }
  .route-grid, .audience-grid { grid-template-columns: 1fr; }
  .operator-card { grid-column: auto; }
  .route-card { min-height: 210px; }
  .launch-inner { align-items: start; }
  .footer-inner { grid-template-columns: 1fr; gap: 9px; text-align: center; }
  .footer-inner p:last-child { text-align: center; }
  .footer-brand { justify-content: center; }
  .legal-hero { padding: 44px 0 40px; }
  .legal-layout { padding-bottom: 70px; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-body > section { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
