/* ==========================================================================
   C2Cnetworks — shared styles
   ========================================================================== */

:root {
  --navy-950: #05070d;
  --navy-900: #0a0f1c;
  --navy-800: #10182b;
  --navy-700: #1a2540;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --cyan-400: #22d3ee;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;

  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(2, 8, 23, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-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 {
  list-style: none;
}

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

section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--slate-600);
  margin-top: 12px;
  font-size: 1.05rem;
}

p {
  color: var(--slate-600);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-400);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--slate-900);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(5, 7, 13, 0.98);
  box-shadow: 0 8px 24px -12px rgba(2, 8, 23, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

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

.nav-links a {
  position: relative;
  color: var(--slate-200);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  border-radius: 2px;
  transition: right 0.25s var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
  transform-origin: center;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::before {
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  left: -10%;
  top: -18%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
}

.hero::after {
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  right: -8%;
  top: -6%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(3%, 4%) scale(1.08);
  }
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--cyan-400);
}

.hero h1 {
  color: var(--white);
}

.hero p.lead {
  color: var(--slate-400);
  font-size: 1.15rem;
  margin: 20px 0 34px;
  max-width: 620px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  max-width: 620px;
}

.hero-inner > * {
  animation: fadeInUp 0.7s var(--ease) both;
}

.hero-inner > *:nth-child(1) { animation-delay: 0s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stats .stat-label {
  color: var(--slate-400);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- Cards / Grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: #d6ddea;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-500);
  transition: transform 0.3s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.96rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-500);
}

.card-link .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

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

/* ---------- Pricing ---------- */

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 10px;
}

.price-amount {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.price-period {
  font-size: 0.85rem;
  color: var(--slate-600);
}

.price-note {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 10px;
}

.pricing-disclaimer {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--slate-400);
}

/* ---------- Alt section ---------- */

.section-alt {
  background: var(--slate-100);
}

.section-dark {
  background: var(--navy-900);
  color: var(--slate-200);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: var(--slate-400);
}

/* ---------- Feature list ---------- */

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  color: var(--slate-600);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--blue-500);
}

/* ---------- Service detail blocks (services page) ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid #e5e9f0;
}

.service-block:last-child {
  border-bottom: none;
}

.service-block.reverse .service-copy {
  order: 2;
}

.service-block[id] {
  scroll-margin-top: 96px;
}

.service-visual {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.service-visual svg {
  width: 96px;
  height: 96px;
  opacity: 0.9;
  position: relative;
  transition: transform 0.4s var(--ease);
}

.service-block:hover .service-visual svg {
  transform: scale(1.06);
}

.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.service-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: rgba(37, 99, 235, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.service-copy ul {
  margin-top: 20px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--blue-500), #1d4ed8 55%, var(--navy-950));
  background-size: 160% 160%;
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  transition: background-position 0.6s var(--ease);
}

.cta-band:hover {
  background-position: 100% 0%;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-900);
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--white);
  color: var(--slate-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-top: 10px;
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.4s var(--ease) both;
}

.form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.form-error.show {
  display: block;
  animation: fadeInUp 0.4s var(--ease) both;
}

.form-error a {
  color: #991b1b;
  text-decoration: underline;
}

/* ---------- Contact page layout ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #e5e9f0;
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item .card-icon {
  margin-bottom: 0;
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.92rem;
}

/* ---------- Team / values ---------- */

.value-item {
  display: flex;
  gap: 16px;
}

.value-item .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-500);
  min-width: 40px;
  transition: transform 0.3s var(--ease);
}

.value-item:hover .num {
  transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-inner > *,
  .hero::before,
  .hero::after {
    animation: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.92rem;
  color: var(--slate-400);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 72px 0 64px;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .eyebrow {
  color: var(--cyan-400);
}

.page-hero p {
  color: var(--slate-400);
  max-width: 620px;
  margin-top: 14px;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--slate-400);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ---------- Logos / trust strip ---------- */

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
  color: var(--slate-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease), padding 0.35s var(--ease);
  }

  .nav.open .nav-links {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
    padding: 20px 24px 28px;
  }
}

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

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block.reverse .service-copy {
    order: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .grid-3,
  .grid-4,
  .grid-2,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  section {
    padding: 64px 0;
  }

  .cta-band {
    padding: 36px 24px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-cta .btn-primary {
    padding: 9px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}
