/* =============================================================
   RnB Cloud — styles.css
   Modern, premium technology-company styling.
   Organized: Variables → Reset → Base → Layout → Components
   → Sections → Footer → Responsive → Motion preferences
   ============================================================= */

/* ---------- Brand variables ---------- */
:root {
  /* Brand colors */
  --navy: #10255C;
  --deep-blue: #064BA7;
  --primary-blue: #0C77E0;
  --cyan: #0CBEFA;
  --white: #FFFFFF;
  --bg-soft: #F3F8FD;
  --text: #17233A;
  --muted: #667085;

  /* Derived tokens */
  --border: #E2ECF6;
  --border-strong: #CFE0F1;
  --brand-gradient: linear-gradient(135deg, #064BA7 0%, #0C77E0 55%, #0CBEFA 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 37, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 37, 92, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 37, 92, 0.14);

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 72px;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 800;
}

p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--primary-blue); text-decoration: none; }

/* Visible, consistent focus states for keyboard users */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Visually hidden (screen-reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 112px); }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin: 0 0 0.75rem;
}
.label-light { color: var(--cyan); }

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-intro { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-intro-light { color: rgba(255, 255, 255, 0.82); }

.section-cta { margin-top: clamp(32px, 5vw, 48px); text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-lg { --btn-pad-y: 15px; --btn-pad-x: 28px; font-size: 1rem; }

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(12, 119, 224, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(12, 119, 224, 0.36); }

.btn-outline {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary-blue); color: var(--primary-blue); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--deep-blue);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand-name-accent { color: var(--primary-blue); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.975rem;
  padding: 6px 2px;
  position: relative;
  transition: color var(--transition);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-gradient);
  transition: width var(--transition);
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--primary-blue); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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;
  overflow: hidden;
  background: var(--bg-soft);
  padding-block: clamp(72px, 12vw, 136px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center, rgba(12, 190, 250, 0.22), rgba(12, 119, 224, 0.12) 45%, transparent 70%);
  filter: blur(10px);
}
.hero-network { position: absolute; top: 0; right: 0; width: 55%; height: 100%; opacity: 0.5; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-blue);
  background: rgba(12, 119, 224, 0.08);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.25rem; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.hero-tags li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-blue);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* =============================================================
   TRUST / VALUE STRIP
   ============================================================= */
.value-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(40px, 6vw, 64px);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.value-item h3 { font-size: 1.075rem; margin-bottom: 0.35rem; }
.value-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  color: var(--primary-blue);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

/* =============================================================
   SERVICES + shared cards
   ============================================================= */
.services { background: var(--bg-soft); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 28px);
}
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card > p { color: var(--muted); font-size: 0.975rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  color: var(--white);
  background: var(--brand-gradient);
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(12, 119, 224, 0.22);
}

.card-list { margin-top: 18px; display: grid; gap: 10px; }
.card-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 14px; height: 14px;
  transform: translateY(-2px);
  background:
    linear-gradient(var(--primary-blue), var(--primary-blue)) center/8px 2px no-repeat,
    linear-gradient(var(--primary-blue), var(--primary-blue)) center/2px 8px no-repeat;
  border-radius: 4px;
  background-color: rgba(12, 119, 224, 0.1);
}

.card-soft { background: var(--bg-soft); }

/* =============================================================
   CYBERSECURITY (dark)
   ============================================================= */
.section-dark {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: -30%; left: -10%;
  width: 50vw; height: 50vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(12, 119, 224, 0.35), transparent 65%);
  pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 190, 250, 0.6);
  background: rgba(255, 255, 255, 0.07);
}
.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-item p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin: 0; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(12, 190, 250, 0.12);
  border: 1px solid rgba(12, 190, 250, 0.3);
  margin-bottom: 16px;
}

/* =============================================================
   AI
   ============================================================= */
.ai { background: var(--white); }

/* =============================================================
   ABOUT
   ============================================================= */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.marker-list { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.marker-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}
.marker-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex: none;
}

.about-visual { display: flex; justify-content: center; }
.about-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--brand-gradient);
}
.about-mark { margin: 8px auto 20px; }
.about-card-text { color: var(--text); font-weight: 600; font-size: 1.1rem; margin: 0; }

/* =============================================================
   WHY RnB CLOUD
   ============================================================= */
.why { background: var(--white); }
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-number {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary-blue);
  margin-bottom: 10px;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.why-card p { color: var(--muted); font-size: 0.975rem; margin: 0; }

/* =============================================================
   FINAL CTA
   ============================================================= */
.final-cta {
  background: var(--brand-gradient);
  color: var(--white);
  padding-block: clamp(64px, 9vw, 104px);
  text-align: center;
}
.final-cta-inner { max-width: 720px; margin-inline: auto; }
.final-cta h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.final-cta-text { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 2rem; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 1.5rem; }
.final-cta-note { color: rgba(255, 255, 255, 0.85); font-weight: 600; margin: 0; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.brand-footer .brand-name-footer { color: var(--white); }
.footer-tag { margin-top: 14px; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; max-width: 320px; }

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.8); transition: color var(--transition); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--cyan); }
.footer-contact li { font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255, 255, 255, 0.75); }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--cyan); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile navigation */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px clamp(20px, 5vw, 40px) 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a { display: block; padding: 14px 4px; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 16px; width: 100%; }
}

@media (max-width: 620px) {
  .cards-grid,
  .cards-grid-4,
  .feature-grid,
  .value-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head-left { text-align: left; }
  .hero-actions .btn,
  .final-cta-actions .btn { flex: 1 1 auto; }
}

/* Large monitors: keep content comfortably centered */
@media (min-width: 1600px) {
  :root { --maxw: 1280px; }
}

/* =============================================================
   MOTION PREFERENCES
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover,
  .card:hover,
  .why-card:hover,
  .feature-item:hover { transform: none; }
}
