/* ===================== Tokens ===================== */
:root {
  /* Brand (sampled from the RaineyByte logo) */
  --navy-950: #071b33;
  --navy-900: #0a2140;
  --navy-800: #123156;
  --blue-700: #1b5fa0;
  --blue-600: #2478b8;
  --blue-500: #3e93ce;
  --blue-400: #70b0e8;
  --blue-300: #a8d2f2;
  --gray-600: #4d545c;
  --gray-500: #626a73;
  --gray-300: #c7ced5;
  --gray-100: #f4f6f8;
  --white: #ffffff;

  /* Creative accent (not in the logo — used only in the Creative Studio section) */
  --accent-magenta: #e04fb0;
  --accent-purple: #7b5fe0;
  --accent-cyan: #2fd6cf;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --header-h: 76px;
  --radius: 14px;
  --shadow-soft: 0 8px 30px rgba(10, 33, 64, 0.08);
  --shadow-med: 0 16px 40px rgba(10, 33, 64, 0.14);
  --transition: 200ms ease;
}

/* ===================== Reset ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 33, 64, 0.08);
  z-index: 500;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark { border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-name em { font-style: normal; color: var(--blue-600); }
.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: color var(--transition);
}
.primary-nav a:hover { color: var(--blue-600); }
.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-600) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 100px;
  overflow: hidden;
  background: var(--gray-100);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(244,246,248,0) 40%),
    repeating-linear-gradient(0deg, rgba(10,33,64,0.05) 0px, rgba(10,33,64,0.05) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(10,33,64,0.05) 0px, rgba(10,33,64,0.05) 1px, transparent 1px, transparent 48px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 90%);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 840px;
}
.hero-logo {
  width: min(420px, 80vw);
  margin: 0 auto 32px;
}
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-med); }
.btn-ghost {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn-ghost:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }

/* ===================== Services overview ===================== */
.services-overview { padding: 80px 0 0; }
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.overview-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.overview-card:hover { transform: translateY(-4px); }
.overview-card--tech {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--navy-900);
}
.overview-card--tech:hover { box-shadow: var(--shadow-med); border-color: var(--blue-400); }
.overview-card--creative {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--accent-purple) 100%);
  color: var(--white);
}
.overview-card--creative:hover { box-shadow: 0 16px 40px rgba(123, 95, 224, 0.35); }
.overview-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
}
.overview-card--tech .overview-icon { background: rgba(36, 120, 184, 0.1); color: var(--blue-600); }
.overview-card--creative .overview-icon { background: rgba(255, 255, 255, 0.15); color: var(--white); }
.overview-icon svg { width: 28px; height: 28px; }
.overview-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.overview-card p { color: var(--gray-500); margin-bottom: 22px; }
.overview-card--creative p { color: rgba(255,255,255,0.82); }
.overview-link { font-weight: 600; font-size: 0.95rem; }
.overview-card--tech .overview-link { color: var(--blue-600); }
.overview-card--creative .overview-link { color: var(--accent-cyan); }

/* ===================== Shared section heading styles ===================== */
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 18px;
  max-width: 720px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 48px;
}

/* ===================== IT & Automation (clean/professional) ===================== */
.it-section { padding: 100px 0; background: var(--white); }
.it-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.it-card { grid-column: span 2; }
.it-card:nth-child(n+4) { grid-column: span 3; }
.it-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.it-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue-400);
}
.it-card-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(36, 120, 184, 0.1);
  color: var(--blue-600);
  margin-bottom: 20px;
}
.it-card-icon svg { width: 24px; height: 24px; }
.it-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy-900); }
.it-card > p { color: var(--gray-600); margin-bottom: 18px; }
.it-card ul li {
  position: relative;
  padding-left: 20px;
  color: var(--navy-800);
  font-size: 0.94rem;
  margin-bottom: 10px;
}
.it-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* ===================== Creative Studio (bold/vibrant) ===================== */
.creative-section {
  position: relative;
  padding: 100px 0;
  background: var(--navy-950);
  overflow: hidden;
}
.creative-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(224, 79, 176, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(47, 214, 207, 0.25), transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(123, 95, 224, 0.35), transparent 45%);
}
.creative-section .section-inner { position: relative; }
.section-kicker--creative { color: var(--accent-cyan); }
.section-title--creative { color: var(--white); }
.section-lead--creative { color: rgba(255, 255, 255, 0.75); }

.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.creative-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.creative-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.09);
}
.creative-card-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-purple));
  color: var(--white);
  margin-bottom: 22px;
}
.creative-card-icon svg { width: 28px; height: 28px; }
.creative-card h3 { font-size: 1.35rem; color: var(--white); margin-bottom: 8px; }
.creative-card > p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.creative-card ul li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.creative-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* ===================== Page hero (interior pages) ===================== */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 48px;
  background: var(--gray-100);
}
.page-hero .section-title { margin-bottom: 12px; }
.page-hero .section-lead { margin-bottom: 0; }

.nav-current { color: var(--blue-600) !important; }

/* ===================== Team ===================== */
.team-section { padding: 24px 0 100px; background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.team-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue-400);
}
.team-avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--accent-purple) 100%);
}
.team-card-body h2 { font-size: 1.25rem; color: var(--navy-900); margin-bottom: 4px; }
.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.team-bio { color: var(--gray-600); margin-bottom: 18px; }
.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-skills li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
  background: rgba(36, 120, 184, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===================== About ===================== */
.about-section { padding: 100px 0; background: var(--gray-100); }
.about-inner { max-width: 760px; }
.about-inner p { color: var(--gray-600); font-size: 1.05rem; }
.about-team-link {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--blue-600);
}
.about-team-link:hover { text-decoration: underline; }

/* ===================== Contact ===================== */
.contact-section { padding: 100px 0; background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  display: grid;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-top: 14px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--navy-900);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(62, 147, 206, 0.2);
}
.contact-form button { margin-top: 22px; width: fit-content; }

.contact-direct h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--navy-900); }
.contact-direct a { color: var(--blue-600); font-weight: 600; font-size: 1.05rem; }
.contact-direct a:hover { text-decoration: underline; }
.contact-line { margin-bottom: 10px; }
.contact-line:last-child { margin-bottom: 0; }

/* ===================== Footer ===================== */
.site-footer { background: var(--navy-950); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.footer-mark { border-radius: 6px; opacity: 0.9; }

/* ===================== Reveal-on-scroll ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .overview-grid,
  .creative-grid,
  .it-grid { grid-template-columns: 1fr; }
  .it-card,
  .it-card:nth-child(n+4) { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(10,33,64,0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid rgba(10,33,64,0.06); }
  .nav-cta { margin-top: 12px; text-align: center; }
  .brand-tagline { display: none; }
}
