/* ============================================================
   CloudRoar — Shared Design System
   Font: Inter (normal stretch, no elongation)
   Palette: Dark navy + orange accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg:        #0b0f1a;
  --bg2:       #0f1525;
  --bg3:       #151c2e;
  --card:      #1a2237;
  --card2:     #1f2940;
  --border:    rgba(255,255,255,0.08);
  --text:      #dce2f0;
  --muted:     #7a87a3;
  --white:     #ffffff;
  --orange:    #f5620a;
  --orange2:   #ff7a2e;
  --orange-bg: rgba(245,98,10,0.12);
  --teal:      #00c6a2;
  --teal-bg:   rgba(0,198,162,0.1);
  --purple:    #6b4fff;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow:    0 2px 20px rgba(0,0,0,0.35);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-stretch: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-stretch: normal;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p { color: var(--text); line-height: 1.7; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange2); }

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

/* ── LAYOUT ── */
.cr-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.cr-section { padding: 80px 0; }
.cr-section-sm { padding: 50px 0; }

/* ── HEADER ── */
.cr-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11,15,26,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.cr-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 24px;
}

.cr-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.cr-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.cr-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.cr-nav-item { position: relative; }

.cr-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  background: none;
  border: none;
}

.cr-nav-link:hover, .cr-nav-link.active {
  color: var(--white);
  background: var(--card);
}

.cr-nav-link svg { transition: transform 0.2s; }
.cr-nav-item:hover .cr-nav-link svg { transform: rotate(180deg); }

.cr-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s;
  z-index: 200;
}

.cr-nav-item:hover .cr-dropdown,
.cr-nav-item:focus-within .cr-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cr-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.12s;
}

.cr-dropdown a:hover { color: var(--white); background: var(--card); }
.cr-dropdown a.cr-new { color: var(--orange2); }
.cr-dropdown a.cr-new:hover { background: var(--orange-bg); color: var(--white); }

.cr-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}

.cr-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--orange);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.cr-nav-cta:hover { background: var(--orange2); transform: translateY(-1px); color: #fff; }

/* ── PAGE HERO / BREADCRUMB ── */
.cr-page-hero {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 42px;
  position: relative;
  overflow: hidden;
}

.cr-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(101,79,255,0.12), transparent);
}

.cr-page-hero .cr-container { position: relative; z-index: 1; }

.cr-page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}

.cr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  padding: 0;
  margin: 0;
}

.cr-breadcrumb a { color: var(--muted); text-decoration: none; }
.cr-breadcrumb a:hover { color: var(--orange); }
.cr-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  opacity: 0.4;
}
.cr-breadcrumb li:last-child { color: var(--orange2); }

/* ── BUTTONS ── */
.cr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.cr-btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 18px rgba(245,98,10,0.3);
}
.cr-btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,98,10,0.4);
  color: #fff;
}

.cr-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cr-btn-outline:hover {
  background: var(--card);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ── SECTION LABELS ── */
.cr-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 10px;
}

.cr-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--orange-bg);
  border: 1px solid rgba(245,98,10,0.25);
  color: var(--orange2);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cr-tag-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}

/* ── CARDS ── */
.cr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.cr-card:hover {
  border-color: rgba(245,98,10,0.22);
  transform: translateY(-3px);
  background: var(--card2);
}

.cr-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.cr-icon-box.orange { background: var(--orange-bg); }
.cr-icon-box.teal   { background: var(--teal-bg); }
.cr-icon-box.purple { background: rgba(107,79,255,0.12); }

/* ── GRID HELPERS ── */
.cr-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cr-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.cr-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cr-split  { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* ── STATS BAR ── */
.cr-stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.cr-stats-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.cr-stat { text-align: center; }

.cr-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.cr-stat-num span { color: var(--orange); }
.cr-stat-label { font-size: 13px; color: var(--muted); }

/* ── CHECK LIST ── */
.cr-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.cr-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.cr-check-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CTA BLOCK ── */
.cr-cta-block {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  text-align: center;
}

/* ── FOOTER ── */
.cr-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.cr-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.cr-footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.cr-footer-col h5 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 16px;
}

.cr-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.cr-footer-col ul a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.cr-footer-col ul a:hover { color: var(--white); }
.cr-footer-col ul a.cr-new { color: var(--orange2); }

.cr-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cr-footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.cr-footer-bottom a { color: var(--orange2); }

/* ── CONTACT FORM ── */
.cr-form { display: flex; flex-direction: column; gap: 14px; }

.cr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.cr-input, .cr-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
}

.cr-input:focus, .cr-textarea:focus {
  border-color: var(--orange);
}

.cr-input::placeholder, .cr-textarea::placeholder { color: var(--muted); }
.cr-textarea { resize: vertical; min-height: 130px; }

/* ── FAQ ACCORDION ── */
.cr-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.cr-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}

.cr-faq-q:hover { background: var(--card2); }

.cr-faq-q svg { flex-shrink: 0; transition: transform 0.25s; color: var(--orange); }
.cr-faq-item.open .cr-faq-q svg { transform: rotate(180deg); }

.cr-faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.cr-faq-item.open .cr-faq-a { display: block; }

/* ── PROGRESS BARS ── */
.cr-progress { margin-bottom: 18px; }
.cr-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.cr-progress-track {
  height: 8px;
  background: var(--card2);
  border-radius: 100px;
  overflow: hidden;
}
.cr-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 100px;
  transition: width 1s ease;
}

/* ── TIMELINE ── */
.cr-timeline { position: relative; padding-left: 24px; }
.cr-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.cr-timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}
.cr-timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.cr-timeline-year {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange2);
  margin-bottom: 6px;
}
.cr-timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.cr-timeline-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── JOB LISTING ── */
.cr-job-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.cr-job-item:hover { border-color: rgba(245,98,10,0.25); }
.cr-job-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cr-job-type {
  display: inline-flex;
  padding: 3px 10px;
  background: var(--teal-bg);
  color: var(--teal);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.cr-job-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; flex: 1; }
.cr-job-apply { flex-shrink: 0; }

/* ── CASE STUDY CARDS ── */
.cr-case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cr-case-card:hover { border-color: rgba(245,98,10,0.25); transform: translateY(-3px); }
.cr-case-tag {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--orange-bg);
  color: var(--orange2);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  width: fit-content;
}
.cr-case-title { font-size: 15.5px; font-weight: 700; color: var(--white); }
.cr-case-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cr-grid-3 { grid-template-columns: repeat(2,1fr); }
  .cr-grid-4 { grid-template-columns: repeat(2,1fr); }
  .cr-split { grid-template-columns: 1fr; gap: 40px; }
  .cr-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .cr-section { padding: 56px 0; }
  .cr-grid-3, .cr-grid-2 { grid-template-columns: 1fr; }
  .cr-grid-4 { grid-template-columns: repeat(2,1fr); }
  .cr-form-row { grid-template-columns: 1fr; }
  .cr-cta-block { padding: 36px 24px; }
}

@media (max-width: 640px) {
  .cr-nav-links { display: none; }
  .cr-grid-4 { grid-template-columns: 1fr; }
  .cr-footer-grid { grid-template-columns: 1fr; }
  .cr-job-item { flex-direction: column; align-items: flex-start; }
}
