/* =========================================================
   Cloud Virtuoso Tech — styles.css
   Modern cloud-tech aesthetic: deep navy base, light
   contrast sections, subtle gradients, soft shadows.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #0f2748;
  --navy-700: #14335e;
  --blue-500: #2f6fed;
  --blue-400: #4f9cff;
  --violet-500: #8b5cf6;

  --ink: #10233f;
  --slate: #4a5b74;
  --muted: #6b7a90;

  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --border: #e2e8f2;
  --card-bg: #ffffff;

  --white: #ffffff;
  --light-100: #eaf1fb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 63, 0.06), 0 2px 8px rgba(16, 35, 63, 0.05);
  --shadow-md: 0 6px 24px rgba(16, 35, 63, 0.10);
  --shadow-lg: 0 18px 50px rgba(11, 31, 58, 0.18);

  --container: 1120px;
  --gradient: linear-gradient(120deg, var(--blue-400) 0%, var(--violet-500) 100%);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* offset for fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }

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

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 156, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(139, 92, 246, 0.40); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { font-size: 1.12rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-text strong { font-weight: 800; }

.site-nav { display: flex; align-items: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.97rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gradient); filter: brightness(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(79, 156, 255, 0.30), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(139, 92, 246, 0.28), transparent 55%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.hero-inner {
  position: relative;
  padding-block: 96px 104px;
  max-width: 820px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-400);
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--blue-500); }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 30%, #cfe1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
}
.section-title-light { color: #fff; }
.section-lead { font-size: 1.08rem; color: var(--slate); margin: 0; }
.section-lead-light { color: rgba(255, 255, 255, 0.82); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--slate); margin: 0 0 18px; font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-highlights li {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.about-highlights strong { color: var(--ink); }
.about-highlights span:last-child { color: var(--slate); font-size: 0.96rem; }
.hl-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
  color: var(--blue-500);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cfdcf3;
}
.card h3 { font-size: 1.22rem; color: var(--ink); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.98rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--light-100);
  color: var(--blue-500);
}

/* Project cards */
.card-project p { color: var(--slate); margin: 8px 0 0; font-size: 0.99rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-500);
  background: rgba(139, 92, 246, 0.10);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ---------- Training ---------- */
.section-dark .hero-bg { display: none; }
.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
}
.pills li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eaf1fb;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.pills li:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.training-note { color: rgba(255, 255, 255, 0.82); margin: 0; font-size: 1.02rem; }
.training-note a { color: var(--blue-400); }

/* ---------- Founder ---------- */
.founder-card {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 860px;
}
.founder-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient);
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}
.founder-body h3 { margin-bottom: 2px; font-size: 1.4rem; }
.founder-role { color: var(--blue-500); font-weight: 600; margin: 0 0 12px; }
.founder-body p:last-child { color: var(--slate); margin: 0; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-image:
    radial-gradient(600px 300px at 20% 0%, rgba(79, 156, 255, 0.28), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(139, 92, 246, 0.26), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.contact-card .section-head { margin: 0 auto 28px; }
.contact-card .section-title { color: #fff; }
.contact-card .section-lead { color: rgba(255, 255, 255, 0.85); }
.contact-card .eyebrow-dark { color: var(--blue-400); }

/* ---------- Footer ---------- */
.site-footer {
  background: #081627;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 48px 28px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand .brand-text { color: #fff; font-size: 1.1rem; }
.footer-domain { margin: 6px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease;
  }
  .nav-menu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-cta { text-align: center; margin-top: 4px; }

  .founder-card { flex-direction: column; text-align: center; gap: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .section { padding-block: 60px; }
  .hero-inner { padding-block: 72px 80px; }
  .container { padding-inline: 18px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
