/* =========================================================
   R3 / Corda – Test Marketing Site
   ========================================================= */

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

:root {
  --clr-bg:          #08091A;
  --clr-bg-2:        #0E1030;
  --clr-bg-card:     #131535;
  --clr-bg-card-2:   #1A1E45;
  --clr-border:      rgba(255,255,255,0.08);
  --clr-brand:       #5B4EFF;
  --clr-brand-light: #7B6FFF;
  --clr-brand-glow:  rgba(91,78,255,0.35);
  --clr-accent:      #00D4FF;
  --clr-text:        #E8EAFF;
  --clr-text-muted:  #8892B0;
  --clr-white:       #FFFFFF;
  --radius:          12px;
  --radius-lg:       20px;
  --transition:      0.2s ease;
  --max-w:           1200px;
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ── Typography helpers ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-brand-light);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #5B4EFF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--clr-white);
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  max-width: 540px;
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-brand);
  color: var(--clr-white);
  box-shadow: 0 0 20px var(--clr-brand-glow);
}
.btn--primary:hover {
  background: var(--clr-brand-light);
  box-shadow: 0 0 32px var(--clr-brand-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--clr-text);
  border-color: var(--clr-border);
}
.btn--ghost:hover { border-color: var(--clr-brand-light); color: var(--clr-brand-light); }

.btn--outline {
  color: var(--clr-text);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline:hover { border-color: var(--clr-white); color: var(--clr-white); }

.btn--white { background: var(--clr-white); color: var(--clr-bg); }
.btn--white:hover { background: #E0E2FF; }

.btn--outline-white {
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover { border-color: var(--clr-white); }

.btn--lg { padding: 0.8125rem 1.875rem; font-size: 1rem; border-radius: 10px; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,9,26,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  border-bottom-color: var(--clr-border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav__logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  padding: 0.4rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--clr-white); background: rgba(255,255,255,0.06); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91,78,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,78,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #5B4EFF 0%, transparent 70%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #00D4FF 0%, transparent 70%);
  bottom: -100px; right: -100px;
  opacity: 0.2;
}

.hero__inner { position: relative; max-width: 820px; margin-inline: auto; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(91,78,255,0.15);
  border: 1px solid rgba(91,78,255,0.4);
  color: var(--clr-brand-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.375rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.75rem;
}

.hero__headline {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--clr-text-muted);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num { font-size: 1.75rem; font-weight: 800; color: var(--clr-white); line-height: 1; }
.stat__label { font-size: 0.8125rem; color: var(--clr-text-muted); margin-top: 0.25rem; }
.stat__divider { width: 1px; height: 40px; background: var(--clr-border); }

/* ── LOGOS ── */
.logos {
  padding-block: 3rem;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.logos__label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.logos__strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.logos__item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.3;
  transition: color var(--transition);
  font-weight: 400;
}
.logos__item:hover { color: rgba(255,255,255,0.65); }
.logos__item strong { display: block; font-weight: 700; }

/* ── PLATFORM ── */
.platform { background: var(--clr-bg-2); }

.platform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.platform__card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.platform__card:hover {
  border-color: rgba(91,78,255,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 32px rgba(91,78,255,0.12);
}

.platform__card--featured {
  background: linear-gradient(135deg, rgba(91,78,255,0.15) 0%, rgba(0,212,255,0.06) 100%);
  border-color: rgba(91,78,255,0.3);
}

.platform__card-icon {
  width: 52px; height: 52px;
  background: rgba(91,78,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.platform__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.625rem;
}

.platform__card p {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-brand-light);
}
.card-link:hover { color: var(--clr-accent); }

/* ── SOLUTIONS ── */
.solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.solution-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-brand), var(--clr-accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.solution-card:hover { border-color: rgba(91,78,255,0.3); transform: translateY(-3px); }
.solution-card:hover::before { opacity: 1; }

.solution-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-brand-light);
  margin-bottom: 0.75rem;
}

.solution-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.solution-card p { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.65; }

/* ── HOW IT WORKS ── */
.how { background: var(--clr-bg-2); }

.how__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.how__content { max-width: 540px; }
.how__content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.how__content > p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.how__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.how__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.how__list-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: rgba(91,78,255,0.15);
  border: 1px solid rgba(91,78,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--clr-brand-light);
  margin-top: 0.15rem;
}

.how__list li > div { display: flex; flex-direction: column; gap: 0.2rem; }
.how__list strong { font-size: 0.9375rem; font-weight: 600; color: var(--clr-white); }
.how__list span { font-size: 0.875rem; color: var(--clr-text-muted); line-height: 1.55; }

/* Network diagram */
.how__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-diagram {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(91,78,255,0.4);
  background: var(--clr-bg-card-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-align: center;
}

.node--center {
  width: 80px; height: 80px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(91,78,255,0.2);
  border-color: var(--clr-brand);
  color: var(--clr-white);
  font-size: 0.6875rem;
}
.node__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(91,78,255,0.2);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.node--1 { width: 64px; height: 64px; top: 0; left: 50%; transform: translateX(-50%); }
.node--2 { width: 64px; height: 64px; top: 50%; right: 0; transform: translateY(-50%); }
.node--3 { width: 64px; height: 64px; bottom: 0; left: 50%; transform: translateX(-50%); }
.node--4 { width: 64px; height: 64px; top: 50%; left: 0; transform: translateY(-50%); }

/* ── TESTIMONIALS ── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color var(--transition);
}
.testimonial:hover { border-color: rgba(91,78,255,0.3); }

.testimonial p {
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.testimonial p::before { content: '"'; color: var(--clr-brand); font-size: 1.5rem; line-height: 0; vertical-align: -0.5rem; }

.testimonial footer { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial strong { font-size: 0.9375rem; font-weight: 600; color: var(--clr-white); }
.testimonial span { font-size: 0.8125rem; color: var(--clr-text-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--clr-bg-2);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.cta-banner__bg { position: absolute; inset: 0; pointer-events: none; }
.cta-banner__orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,78,255,0.25) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.cta-banner__inner { position: relative; max-width: 680px; margin-inline: auto; }

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner p { font-size: 1.0625rem; color: var(--clr-text-muted); margin-bottom: 2.5rem; max-width: 500px; margin-inline: auto; }
.cta-banner p { margin-bottom: 2.5rem; }

.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: #060714;
  border-top: 1px solid var(--clr-border);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.footer__brand p { font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.6; max-width: 240px; }

.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.footer__social a:hover { background: rgba(91,78,255,0.15); border-color: rgba(91,78,255,0.4); color: var(--clr-white); }

.footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.875rem; color: var(--clr-text-muted); }
.footer__col a:hover { color: var(--clr-text); }

.footer__bottom { padding-block: 1.5rem; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p { font-size: 0.8125rem; color: var(--clr-text-muted); }
.footer__bottom em { font-style: normal; color: rgba(255,255,255,0.3); }

.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.8125rem; color: var(--clr-text-muted); }
.footer__legal a:hover { color: var(--clr-text); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .how__inner { grid-template-columns: 1fr; }
  .how__content { max-width: 100%; }
  .how__visual { order: -1; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(8,9,26,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 0.5rem;
    z-index: 99;
    align-items: flex-start;
  }
  .nav__links--open a { font-size: 1.25rem; padding: 0.75rem; }
  .nav__cta--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 2rem; left: 1.5rem; right: 1.5rem;
    z-index: 100;
  }
  .nav__cta--open .btn { justify-content: center; }

  .hero__stats { gap: 1.25rem; padding: 1rem 1.25rem; }
  .stat__divider { height: 30px; }

  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2.5rem; }
  .hero__stats { flex-direction: column; gap: 1rem; }
  .stat__divider { display: none; }
  .footer__nav { grid-template-columns: 1fr; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
}
