/* ============================================================
   Cloudeation Technologies — site styles
   Palette: navy #0f172a / #1e3a8a, blue #2563eb / #3b82f6,
            accent orange #ea580c, teal #14b8a6, slate greys
   ============================================================ */

:root {
  --navy-950: #0b1120;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --brand-900: #1e3a8a;
  --brand-800: #1e40af;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-100: #dbeafe;
  --brand-50:  #eff6ff;
  --accent:    #ea580c;
  --accent-600:#c2410c;
  --teal:      #14b8a6;
  --ink:       #0f172a;
  --body:      #334155;
  --muted:     #64748b;
  --line:      #e2e8f0;
  --bg:        #ffffff;
  --bg-soft:   #f8fafc;
  --bg-slate:  #f1f5f9;
  --radius:    16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.16);
  --container: 1200px;
  --font: "Inter", ui-sans-serif, 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: 88px; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }

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

.section { padding: 96px 0; }
.section--soft  { background: var(--bg-soft); }
.section--slate { background: var(--bg-slate); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, #14213d 55%, var(--brand-900) 100%);
  color: #cbd5e1;
}
.section--teal-top { border-top: 4px solid var(--teal); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #7dd3fc; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--brand-900);
}
.section--navy .section-head h2 { color: #fff; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section--navy .section-head p { color: #94a3b8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28); }
.btn--primary:hover { background: var(--brand-800); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(234,88,12,.3); }
.btn--accent:hover { background: var(--accent-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: #fff; color: var(--brand-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-800); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
}
.nav__links a { color: var(--navy-900); }
.nav__links a:hover { color: var(--brand-600); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy-900);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #e2e8f0;
  background: radial-gradient(1100px 500px at 80% -10%, rgba(59,130,246,.35), transparent 60%),
              linear-gradient(135deg, var(--navy-950) 0%, #0f1e3d 45%, var(--brand-900) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(20,184,166,.22), transparent 70%);
  filter: blur(20px);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 110px 0 120px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 20px; color: #cbd5e1; max-width: 560px; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero__panel h3 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.hero__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__panel li { display: flex; gap: 10px; align-items: flex-start; color: #dbeafe; font-size: 15px; }
.hero__panel li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal); }

/* ---------- logos strip ---------- */
.clients { padding: 44px 0; background: #fff; border-bottom: 1px solid var(--line); }
.clients p {
  text-align: center;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 22px;
}
.clients__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 40px;
}
.clients__row span {
  font-weight: 800;
  font-size: 17px;
  color: #94a3b8;
  letter-spacing: .01em;
}

/* ---------- services grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 18px;
}
.card__icon--accent { background: #fff7ed; color: var(--accent); }
.card__icon--teal { background: #f0fdfa; color: var(--teal); }
.card h3 { font-size: 19px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media { align-self: center; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* about: compact square portrait */
.split--about .split__media { max-width: 340px; margin: 0 auto; }
.split--about .split__media img { aspect-ratio: 1 / 1; border-radius: 20px; }
.split h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--brand-900); text-transform: uppercase; }
.split ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.split li { display: flex; gap: 12px; align-items: flex-start; }
.split li svg { flex-shrink: 0; margin-top: 4px; color: var(--brand-600); }
.split li strong { display: block; color: var(--ink); }
.split li span { font-size: 15px; color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat span { display: block; margin-top: 10px; font-weight: 700; color: #7dd3fc; font-size: 15px; }
.stat small { display: block; margin-top: 4px; color: #94a3b8; font-size: 13.5px; }

/* ---------- products ---------- */
.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product__logo {
  width: 84px; height: 84px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.product h3 { font-size: 22px; margin-bottom: 4px; }
.product .kicker { color: var(--brand-600); font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.product p { margin: 0; color: var(--muted); font-size: 15.5px; }
.product__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.product__tags span {
  font-size: 12.5px; font-weight: 600;
  background: var(--brand-50); color: var(--brand-800);
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-info h3 { color: #fff; font-size: 24px; }
.contact-info p { color: #94a3b8; }
.contact-info ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: center; color: #e2e8f0; }
.contact-info li svg { flex-shrink: 0; color: var(--teal); }
.contact-info a { color: #e2e8f0; }
.contact-info a:hover { color: #fff; }

.form { background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.form__status { font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.form__status.ok { color: #15803d; }
.form__status.err { color: #b91c1c; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 64px 0 28px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer img.flogo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px; }
.site-footer p { font-size: 15px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #94a3b8; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--brand-900));
  color: #cbd5e1;
  padding: 64px 0;
}
.page-hero .crumb { font-size: 14px; color: #94a3b8; margin-bottom: 14px; }
.page-hero .crumb a { color: #93c5fd; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); margin: 0; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
/* progressive enhancement: only hide pre-animation when JS is active */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 84px 0 90px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--flip .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav[data-open="true"] .nav__links a { display: block; padding: 10px 0; width: 100%; }
  .form .row { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
