/* ============================================================
   Altitude AI — site styles
   Brand: ink #1d2127 · blue #5b9dff · slate #5a6270
   ============================================================ */

:root {
  --ink: #1d2127;
  --ink-2: #272c35;
  --blue: #5b9dff;
  --blue-600: #3f86f5;
  --slate: #5a6270;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --line: #e6eaf1;
  --text: #2b303a;
  --text-soft: #5a6270;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(29, 33, 39, 0.08);
  --shadow-lg: 0 24px 70px rgba(29, 33, 39, 0.16);
  --max: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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 { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.15; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .6rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #0c1320; box-shadow: 0 8px 22px rgba(91, 157, 255, .35); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 33, 39, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 30px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { color: #d7dce5; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.btn-primary { color: #0c1320; }
.nav-links a.btn-primary:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s var(--ease); }
.mobile-menu { display: none; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu a { color: #d7dce5; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.06); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 500px at 80% -10%, rgba(91,157,255,.22), transparent 60%),
              linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef1f6; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 84px 24px 96px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: rgba(91,157,255,.12); border: 1px solid rgba(91,157,255,.3);
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; }
.lede { font-size: 1.18rem; color: #c3cad6; max-width: 42ch; margin: 0 0 2rem; }
.lede strong { color: #fff; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-stats { list-style: none; display: flex; gap: 2.2rem; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.stat-label { font-size: .85rem; color: #9aa3b2; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 260px; }
.hero-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,157,255,.45), transparent 65%); filter: blur(10px); }
.hero-icon { position: relative; width: min(300px, 70%); filter: drop-shadow(0 20px 50px rgba(0,0,0,.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.06); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.1rem;
  padding: 16px 24px; color: #aeb6c4; font-size: .9rem; font-weight: 500; }
.trust .dot { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .8rem; }
.section-sub { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.about-lead p { color: var(--text-soft); font-size: 1.05rem; margin: 0 0 1.1rem; }
.about-lead strong { color: var(--ink); }
.value-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.value-cards h3 { margin-bottom: .4rem; }
.value-cards p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Projects ---------- */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 40px;
}
.project:last-child { margin-bottom: 0; }
.project-reverse .project-media { order: 2; }
.project-media { border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.project-media video { width: 100%; height: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: var(--ink); }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-600); background: rgba(91,157,255,.12); padding: .35rem .7rem; border-radius: 999px; margin-bottom: .9rem; }
.project-body h3 { font-size: 1.45rem; }
.project-body > p { color: var(--text-soft); }
.feature-list { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; }
.feature-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--text); font-size: .96rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue-600); font-weight: 800; }
.project-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.project-links .btn { font-size: .88rem; padding: .7rem 1.1rem; }

/* ---------- Approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.approach-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.approach-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(91,157,255,.5); }
.approach-card h3 { margin-bottom: .5rem; }
.approach-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { margin-top: .4rem; }
.contact-copy > p { color: var(--text-soft); font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 1.4rem 0; }
.contact-points li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.contact-points li::before { content: "→"; position: absolute; left: 0; color: var(--blue-600); font-weight: 800; }
.contact-direct { font-size: .98rem; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-row label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-row input, .form-row textarea {
  width: 100%; font: inherit; color: var(--text); padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91,157,255,.2); background: #fff; }
.form-row textarea { resize: vertical; }
.form-status { margin: .9rem 0 0; font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #157347; }
.form-status.err { color: #c0392b; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb6c4; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: .8rem; }
.footer-brand p { max-width: 34ch; font-size: .92rem; margin: 0; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: #c3cad6; font-weight: 500; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .85rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #c3cad6; }

/* ---------- Slide-deck modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 16, 24, .72); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; z-index: 1; width: min(1100px, 94vw); height: min(82vh, 760px);
  margin: 6vh auto 0; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: modalIn .22s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--ink); color: #fff; flex: 0 0 auto; }
.modal-title { font-weight: 600; font-size: .98rem; }
.modal-actions { display: flex; align-items: center; gap: 14px; }
.modal-download { color: #c3cad6; font-size: .88rem; font-weight: 500; }
.modal-download:hover { color: #fff; }
.modal-close { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; transition: background .15s; }
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-frame { position: relative; flex: 1 1 auto; background: var(--bg-alt); }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-note { display: none; max-width: 460px; margin: 0; padding: 28px;
  position: absolute; inset: 0; place-content: center; align-content: center;
  text-align: center; color: var(--text-soft); font-size: .98rem; }
.modal-note.show { display: grid; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px 70px; }
  .hero-visual { order: -1; min-height: 180px; }
  .hero-icon { width: 160px; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .project, .project-reverse { grid-template-columns: 1fr; }
  .project-reverse .project-media { order: 0; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .value-cards, .approach-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
