/* iFlyte, site styles */
:root {
  --navy-900: #071326;
  --navy-800: #0b1b33;
  --navy-700: #132a4d;
  --sky-500: #7fb2ff;   /* accent on dark backgrounds */
  --sky-600: #3d7fe0;   /* accent on light backgrounds */
  --sky-700: #2a64c4;   /* small accent text on light backgrounds */
  --ink: #0f1c2e;
  --muted: #55657a;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 8px 24px rgba(15, 28, 46, .06);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--sky-600); outline-offset: 3px; border-radius: 4px; }

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

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--sky-500); color: var(--navy-900); font-weight: 650; text-decoration: none; padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #a3c8ff; transform: translateY(-1px); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 19, 38, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; color: var(--sky-500); }
.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-menu a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-900); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-menu .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #1d3f73 0%, transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-800)); padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); margin-top: -68px; padding-top: calc(clamp(72px, 12vw, 140px) + 68px); }
.hero-full { min-height: 100vh; margin-top: 0; padding-top: clamp(72px, 12vw, 140px); }
.hero-bg { position: absolute; inset: 0; opacity: .9; }
.hero-bg svg { width: 100%; height: 100%; }
.route { stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
.r2 { animation-duration: 42s; } .r3 { animation-duration: 55s; opacity: .6; }
@keyframes dash { to { stroke-dashoffset: -800; } }
.hero-inner { position: relative; max-width: 860px; margin-left: max(16px, (100% - var(--max)) / 2); }
.hero .eyebrow { color: var(--sky-500); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 3rem; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 720px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; }
.hero-stats li { text-align: center; }
.hero-stats strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.65); }
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-800); color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }
.section-dark .eyebrow { color: var(--sky-500); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > div > p:not(.eyebrow) { color: var(--muted); }
.section-dark .split > div > p:not(.eyebrow) { color: rgba(255,255,255,.78); }
.note { border-left: 3px solid var(--sky-600); padding-left: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,28,46,.06), 0 18px 40px rgba(15,28,46,.1); }
.card p { color: var(--muted); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #eaf2ff; color: var(--sky-600); margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; }
.link-arrow { font-weight: 650; text-decoration: none; color: var(--navy-700); }
.link-arrow::after { content: " →"; transition: margin .15s ease; }
.link-arrow:hover::after { margin-left: 4px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Diagram */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 28px; }
.d-lines path { stroke: var(--sky-600); stroke-dasharray: 5 6; animation: dash 20s linear infinite; }
.d-nodes rect { fill: var(--bg-alt); stroke: #c9d3e0; }
.d-nodes .hub { fill: var(--navy-800); stroke: var(--navy-800); }
.d-text text { fill: var(--ink); font-family: var(--font); }
.d-text .d-hub-text { fill: #fff; }
.d-text .d-label { fill: var(--sky-700); font-weight: 700; font-size: 10px; }

.features-title { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' stroke='%23071326' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Consultancy tiles */
.grid-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: border-color .2s ease; }
.tile:hover { border-color: var(--sky-600); }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--navy-700); background: #e9f1ff; padding: .3em .7em; border-radius: 6px; margin-bottom: 14px; }
@media (max-width: 900px) { .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-6 { grid-template-columns: 1fr; } }

/* Experience */
.narrow { max-width: 760px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #eef5ff, #fff); border: 1px solid #d3e3fb; border-radius: 22px; padding: clamp(28px, 5vw, 56px); }
.contact p:not(.eyebrow) { color: var(--muted); }
.contact-options { display: grid; gap: 14px; }
.contact-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.contact-card:hover { transform: translateY(-2px); border-color: var(--sky-600); }
.contact-label { display: block; font-size: .85rem; color: var(--muted); }
.contact-value { display: block; font-weight: 650; font-size: 1.12rem; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; flex-wrap: wrap; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: #fff; }

/* Reveal on scroll (only once JS confirms support) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route, .d-lines path { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
