/* ===== Corvex Technologies — marketing site ===== */
:root {
  --indigo: #4f46e5;
  --indigo-700: #4338ca;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0b1220;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 45%, #0891b2 130%); color: #fff; box-shadow: 0 8px 22px -8px rgba(79, 70, 229, .75); }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  margin-right: 9px; vertical-align: middle; position: relative; top: -1px;
}
.eyebrow-light { color: var(--cyan); }
.grad { background: linear-gradient(100deg, #818cf8, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 13, 26, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.12); box-shadow: 0 10px 30px -18px rgba(0,0,0,.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; }
.brand-text { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 19px; color: #fff; letter-spacing: -.01em; }
.brand-light { font-weight: 600; color: #7c8aa5; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-weight: 500; font-size: 15px; color: #c4cede; transition: color .2s; }
.nav > a:hover { color: #22d3ee; }
.nav .nav-cta { color: #fff; }
.nav .nav-cta: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; }
.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;
  background:
    radial-gradient(1000px 560px at 84% -14%, rgba(6,182,212,.24), transparent 62%),
    radial-gradient(940px 600px at -8% 6%, rgba(99,102,241,.30), transparent 58%),
    linear-gradient(180deg, #0a101f 0%, var(--bg-dark) 100%);
  padding: 88px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; color: #fff; }
.hero .eyebrow { color: #a5b4fc; }
.lead { font-size: 17px; color: #b7c3d8; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero .btn-ghost { color: #e2e8f0; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: #22d3ee; color: #22d3ee; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-badges li { position: relative; padding-left: 22px; font-size: 14px; font-weight: 500; color: #cbd5e1; }
.hero-badges li::before { content: "✓"; position: absolute; left: 0; color: #22d3ee; font-weight: 700; }

/* Brand C-arc watermark (signature motif) */
.hero::after {
  content: ""; position: absolute; right: -120px; top: -90px; width: 560px; height: 560px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M21 11a7 7 0 1 0 0 10' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .05; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* ===== Browser frame (real screenshots) ===== */
.frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.frame-head {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: var(--bg-alt);
}
.frame-dot { width: 10px; height: 10px; border-radius: 50%; }
.frame-dot:nth-child(1) { background: #ff5f57; }
.frame-dot:nth-child(2) { background: #febc2e; }
.frame-dot:nth-child(3) { background: #28c840; }
.frame-url {
  margin-left: 10px; flex: 1; min-width: 0;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame > img { width: 100%; height: auto; }

.frame-dark { background: #0f1115; border-color: rgba(255,255,255,.12); }
.frame-dark .frame-head { background: #171a21; border-bottom-color: rgba(255,255,255,.09); }
.frame-dark .frame-url { background: #0f1115; border-color: rgba(255,255,255,.14); color: #9aa3b2; }

/* ===== Hero product switcher (signature) ===== */
.hero-visual { position: relative; }
.hero-visual .frame { border-color: rgba(255,255,255,.12); box-shadow: 0 44px 90px -34px rgba(0,0,0,.75), 0 0 60px -18px rgba(99,102,241,.35); }
.hero-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hero-tab {
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  color: #b7c3d8; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 14px; border-radius: 999px; transition: all .25s ease;
}
.hero-tab:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-tab.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #0891b2 140%);
  box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .8);
}
.hero-panels { position: relative; aspect-ratio: 16 / 10; background: #0f1115; }
.hero-panel {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0; transform: translateX(18px); pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-panel.active { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero-panel { transition: none; }
}

/* ===== Industry strip ===== */
.segments { border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid var(--line); background: var(--bg-dark); padding: 30px 0; }
.segments-label { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 18px; }
.segments-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.segments-list li { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 16px; color: #b7c3d8; opacity: .9; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, #f5f7ff 0%, #f3fafd 100%); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 940px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.10)); margin-bottom: 18px; }
.cards .card:nth-child(3n+2) .card-icon { background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(16,185,129,.10)); }
.cards .card:nth-child(3n) .card-icon { background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(236,72,153,.10)); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* Coming-up cards */
.coming-card { position: relative; padding-top: 34px; }
.coming-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--indigo); background: rgba(79,70,229,.08); border: 1px dashed rgba(79,70,229,.35);
  padding: 4px 11px; border-radius: 999px;
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); }
.f-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.10)); }
.feature-grid .feature:nth-child(4n+2) .f-ico { background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(16,185,129,.10)); }
.feature-grid .feature:nth-child(4n+3) .f-ico { background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(236,72,153,.10)); }
.feature-grid .feature:nth-child(4n) .f-ico { background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(249,115,22,.10)); }
.feature h4 { font-size: 16px; margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--muted); }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { padding: 24px; border-left: 3px solid var(--indigo); background: #fff; border-radius: 0 12px 12px 0; }
.why-grid .why-item:nth-child(6n+2) { border-left-color: #06b6d4; }
.why-grid .why-item:nth-child(6n+3) { border-left-color: #8b5cf6; }
.why-grid .why-item:nth-child(6n+4) { border-left-color: #10b981; }
.why-grid .why-item:nth-child(6n+5) { border-left-color: #f59e0b; }
.why-grid .why-item:nth-child(6n) { border-left-color: #ec4899; }
.why-item h4 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.about-grid p { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }
.about-grid .btn { margin-top: 8px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: "Plus Jakarta Sans"; font-size: 28px; font-weight: 800; background: linear-gradient(120deg, var(--indigo), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 14px; color: var(--muted); }

/* CTA / contact */
.cta { background: var(--bg-dark); color: #cbd5e1; padding: 84px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-copy > p { font-size: 17px; color: #94a3b8; margin-bottom: 30px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.contact-text { display: flex; flex-direction: column; }
.contact-text small { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.contact-text a, .contact-val { font-family: "Plus Jakarta Sans"; font-weight: 700; font-size: 17px; color: #fff; }
.contact-text a:hover { color: var(--cyan); }

.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; padding: 30px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { font-family: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.field textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: #047857; background: #d1fae5; padding: 11px 14px; border-radius: 10px; margin: 0; }

/* Footer */
.site-footer { background: #060912; color: #94a3b8; padding: 52px 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 .brand-text { color: #fff; font-size: 20px; }
.footer-brand .brand-light { color: #64748b; }
.footer-brand p { margin-top: 8px; font-size: 14px; color: #64748b; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-nav a { font-size: 15px; color: #cbd5e1; }
.footer-nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13px; color: #64748b; }
.footer-contact a:hover { color: var(--cyan); }

/* ===== Product showcase (real screenshots) ===== */
.showcase { display: flex; flex-direction: column; gap: 84px; }
.show-item { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.show-item.reverse { grid-template-columns: .92fr 1.08fr; }
.show-item.reverse .show-visual { order: 2; }
.show-item { --acc: var(--indigo); --acc-soft: rgba(79, 70, 229, .1); }
.show-item.theme-stay { --acc: #b8860b; --acc-soft: rgba(184, 134, 11, .12); }
.show-item.theme-fleet { --acc: #2563eb; --acc-soft: rgba(37, 99, 235, .1); }
.show-item.theme-med { --acc: #0f766e; --acc-soft: rgba(15, 118, 110, .1); }
.show-item.theme-pos { --acc: #d97706; --acc-soft: rgba(217, 119, 6, .12); }

.show-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--acc); background: var(--acc-soft);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.show-copy h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.01em; margin-bottom: 12px; }
.show-copy > p { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.show-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.show-chips li {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.show-chips .chip-soon { color: var(--muted); background: transparent; border-style: dashed; }
.show-link { font-weight: 700; font-size: 15px; color: var(--acc); transition: opacity .2s; }
.show-link:hover { opacity: .75; }

.show-visual .frame { border-top: 3px solid var(--acc); transition: transform .35s ease, box-shadow .35s ease; }
.show-item:hover .show-visual .frame { transform: translateY(-5px); }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) and (min-width: 721px) {
  .nav { gap: 18px; }
  .nav > a { font-size: 14px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
  .cards, .feature-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .showcase { gap: 64px; }
  .show-item, .show-item.reverse { grid-template-columns: 1fr; gap: 26px; }
  .show-item.reverse .show-visual { order: 0; }
  .show-visual { max-width: 600px; width: 100%; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(9, 13, 26, .97); border-bottom: 1px solid rgba(255,255,255,.1); padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .3s ease; height: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .nav-cta { margin-top: 12px; border: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 76px; }
}
@media (max-width: 560px) {
  .cards, .feature-grid, .why-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .hero h1 br { display: none; }
  .frame-head { padding: 9px 12px; }
  .frame-url { font-size: 11px; padding: 3px 10px; }
  .hero-tab { font-size: 12px; padding: 7px 11px; }
}
