/* ============================================
   RHCLOUD PTE. LTD. — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:    #060a12;
  --bg-secondary:  #0d1420;
  --bg-card:       #111827;
  --bg-card-hover: #162035;
  --accent:        #0ea5e9;
  --accent-bright: #38bdf8;
  --accent-dim:    #0369a1;
  --accent-glow:   rgba(14,165,233,0.18);
  --white:         #f0f6ff;
  --grey-light:    #94a3b8;
  --grey-mid:      #475569;
  --grey-dark:     #1e2d42;
  --border:        rgba(14,165,233,0.15);
  --border-strong: rgba(14,165,233,0.35);
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'IBM Plex Sans', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow-card:   0 4px 32px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 40px rgba(14,165,233,0.2);
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utility Classes ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid var(--border-strong);
  padding: 5px 12px; border-radius: 4px;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header .tag { margin-bottom: 16px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.display-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 600px;
  margin-top: 12px;
  font-weight: 300;
}

.highlight { color: var(--accent-bright); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 600; letter-spacing: 0.04em;
  transition: var(--transition); white-space: nowrap;
}

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px rgba(14,165,233,0.35);
}
.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 6px 32px rgba(56,189,248,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-strong); color: var(--white);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-glow);
}

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(6,10,18,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,0.4);
}

.nav-logo-text {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 700; letter-spacing: 0.05em;
}

.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}

.nav-links a {
  padding: 8px 14px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--grey-light);
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: flex; align-items: center; gap: 12px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(6,10,18,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
}

.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--grey-light); font-size: 1rem;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 80%, rgba(14,165,233,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,165,233,0.08); border: 1px solid var(--border-strong);
  border-radius: 100px; padding: 8px 16px;
  font-size: 0.8rem; font-family: var(--font-mono);
  color: var(--accent); margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.0;
  margin-bottom: 20px;
}

.hero-title .line { display: block; }
.hero-title .accent-line { color: var(--accent-bright); }

.hero-description {
  font-size: 1.15rem; color: var(--grey-light);
  max-width: 560px; margin-bottom: 36px;
  font-weight: 300; line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 800; color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem; color: var(--grey-light);
  margin-top: 4px; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow); border: 1px solid var(--border-strong);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 1.4rem;
}

.card-title {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; margin-bottom: 10px;
}

.card-text {
  font-size: 0.9rem; color: var(--grey-light); line-height: 1.7;
}

/* ── Grid Layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Feature Row ── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-content {}
.feature-tag { margin-bottom: 16px; }
.feature-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 16px; }
.feature-body { color: var(--grey-light); font-weight: 300; margin-bottom: 28px; line-height: 1.8; }

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--grey-light);
}
.feature-list li::before {
  content: '→'; color: var(--accent); flex-shrink: 0;
  font-family: var(--font-mono); margin-top: 1px;
}

.feature-visual {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  overflow: hidden;
}

.feature-visual::before {
  content: ''; position: absolute;
  top: -40%; left: -20%; width: 80%; height: 80%;
  background: radial-gradient(ellipse, rgba(14,165,233,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Divider ── */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Partners / Logos ── */
.partners-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0; overflow: hidden;
}

.partners-inner {
  display: flex; align-items: center; gap: 48px;
  overflow: hidden; white-space: nowrap;
}

.partner-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--grey-mid); flex-shrink: 0;
  transition: var(--transition); padding: 0 8px;
}

.partner-logo:hover { color: var(--grey-light); }
.partner-logo .dot { color: var(--accent); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(4,1fr);
  overflow: hidden;
}

.stat-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display); font-size: 2.4rem;
  font-weight: 800; color: var(--accent-bright);
}

.stat-label {
  font-size: 0.8rem; font-family: var(--font-mono);
  color: var(--grey-light); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 6px;
}

/* ── Testimonial/Quote Block ── */
.quote-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative; padding: 160px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(14,165,233,0.12) 0%, transparent 60%);
}

.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
}

.page-hero-sub {
  font-size: 1.1rem; color: var(--grey-light);
  margin-top: 14px; max-width: 580px;
  font-weight: 300; line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(14,165,233,0.04));
  border: 1px solid var(--border-strong);
  border-radius: 24px; padding: 64px 48px;
  text-align: center; position: relative; overflow: hidden;
}

.cta-section::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px; margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 0.875rem; color: var(--grey-light);
  margin-top: 16px; line-height: 1.7; max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.875rem; color: var(--grey-light);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
  font-size: 0.85rem; color: var(--grey-light);
  line-height: 1.8;
}

.footer-contact p strong {
  color: var(--white); font-weight: 500;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: block; margin-top: 12px; margin-bottom: 2px;
}

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--grey-mid);
  flex-wrap: wrap; gap: 12px;
}

/* ── Capability Cards ── */
.capability-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}

.capability-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.capability-card .num {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); letter-spacing: 0.08em;
  margin-bottom: 12px; display: block;
}

.capability-card h3 {
  font-size: 1.2rem; margin-bottom: 10px;
}

.capability-card p {
  font-size: 0.875rem; color: var(--grey-light); line-height: 1.7;
}

/* ── Job Cards ── */
.job-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.job-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.job-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.job-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 10px; letter-spacing: 0.05em;
}

.job-arrow {
  font-size: 1.2rem; color: var(--accent); flex-shrink: 0;
  transition: var(--transition);
}

.job-card:hover .job-arrow { transform: translateX(4px); }

/* ── Timeline ── */
.timeline {
  position: relative; padding-left: 28px;
}

.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative; margin-bottom: 32px;
}

.timeline-item::before {
  content: ''; position: absolute;
  left: -33px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.timeline-year {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 0.9rem; color: var(--grey-light); line-height: 1.7;
}

/* ── Mono Label ── */
.mono-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px; display: block;
}

/* ── Pill Tags ── */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill {
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.8rem; font-family: var(--font-mono);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--grey-light); letter-spacing: 0.04em;
  transition: var(--transition);
}
.pill:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ── Model Grid Visual ── */
.model-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}

.model-chip {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--grey-light); text-align: center;
  transition: var(--transition);
}

.model-chip.active {
  border-color: var(--accent); color: var(--accent-bright);
  background: var(--accent-glow);
}

/* ── Animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up { animation: fade-up 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Scroll Fade ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Banner strip ── */
.banner-strip {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
  padding: 12px 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.08em; color: #fff;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--grey-mid); margin-bottom: 16px;
}

.breadcrumb a { color: var(--grey-mid); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--grey-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stats-bar .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse { direction: ltr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 24px; }
  .cta-section { padding: 40px 24px; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .stats-bar .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stats-bar .stat-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; }
}
