/* ============================================================
 * Rayl Platform page — pandabase-inspired structure, Rayl dark.
 * Loaded after styles.css; only adds new patterns.
 * ============================================================ */

/* Wider section container for this page */
.pf-hero,
.pf-pain,
.pf-pillars,
.pf-metrics,
.pf-cap,
.pf-quotes,
.pf-links,
.pf-blog,
.pf-final {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

/* === HERO ============================================ */
.pf-hero {
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  text-align: left;
}

.pf-hero-copy h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.pf-hero-copy h1 em {
  font-family: "Aeonik", "Fustat", sans-serif;
  font-style: italic;
  background: linear-gradient(135deg, #ffd27a, #ff8a3d 55%, #ff4d2e);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.pf-hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.pf-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pf-hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.pf-hero-trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.pf-hero-trust-pill > span:first-child:not(.pf-hero-trust-dot) {
  color: #ffb050;
  letter-spacing: 0;
}

.pf-hero-visual {
  position: relative;
  isolation: isolate;
}

.pf-hero-glow {
  position: absolute;
  inset: -16% -10% -14% -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 196, 110, 0.14), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(255, 77, 46, 0.12), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 960px) {
  .pf-hero { grid-template-columns: 1fr; gap: 40px; }
}

/* === PAIN POINTS ===================================== */
.pf-pain {
  padding: 80px 0 64px;
}

.pf-pain-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.pf-pain-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.pf-pain-head .section-lede {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  margin: 0;
}

.pf-pain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pf-pain-card {
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 46, 0.08), transparent 50%),
    rgba(13, 13, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.pf-pain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.35);
}

.pf-pain-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb050;
}

.pf-pain-card h3 {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.pf-pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* === FEATURE PILLARS ================================= */
.pf-pillars {
  padding: 80px 0 64px;
}

.pf-pillars h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  margin-bottom: 36px;
  letter-spacing: -0.015em;
  max-width: 760px;
}

.pf-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.pf-pillar {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-pillar:last-child { border-right: 0; }

.pf-pillar-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  color: #ffb050;
}

.pf-pillar h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.pf-pillar p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .pf-pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-pillar:last-child { border-bottom: 0; }
}

/* === METRICS STRIP =================================== */
.pf-metrics {
  margin: 32px auto 80px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 24px;
}

.pf-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.pf-metric + .pf-metric::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.pf-metric strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pf-metric span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* === CAPABILITY SECTIONS ============================ */
.pf-cap {
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.pf-cap h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.pf-cap p {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  margin-bottom: 22px;
}

.pf-cap-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-cap-checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text);
}

.pf-cap-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd27a, #ff8a3d 55%, #ff4d2e);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.4);
}

.pf-cap-checks li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 1px;
  font-size: 11px;
  font-weight: 900;
  color: #1a0d05;
}

@media (max-width: 960px) {
  .pf-cap { grid-template-columns: 1fr; gap: 32px; }
  .pf-cap-ship .pf-cap-visual { order: 2; }
  .pf-cap-ship .pf-cap-copy { order: 1; }
}

/* === Code snippet visual ============================= */
.pf-code {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 13, 13, 0.85);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pf-code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pf-code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.pf-code-dot:nth-child(1) { background: #ff605c; }
.pf-code-dot:nth-child(2) { background: #ffbd44; }
.pf-code-dot:nth-child(3) { background: #00ca4e; }

.pf-code-name {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 12px;
  color: var(--muted-2);
}

.pf-code pre {
  margin: 0;
  padding: 20px 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e0e0e0;
  white-space: pre;
  overflow-x: auto;
}

.pf-code .cm { color: #6f7a82; font-style: italic; }
.pf-code .kw { color: #ff8a3d; font-weight: 700; }
.pf-code .fn { color: #ffd27a; }
.pf-code .ty { color: #8ad6ff; }
.pf-code .bool { color: #4ade80; }

/* === Ship timeline visual ============================ */
.pf-ship-pane {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pf-ship-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  transition: background 200ms ease;
}

.pf-ship-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pf-ship-step {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-2);
}

.pf-ship-step-done {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-color: transparent;
  color: #0a1a0e;
}

.pf-ship-step-active {
  background: linear-gradient(135deg, #ffd27a, #ff8a3d);
  border-color: transparent;
  color: #1a0d05;
  box-shadow: 0 0 18px rgba(255, 138, 61, 0.5);
}

.pf-ship-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf-ship-row b {
  font-size: 14px;
  font-weight: 700;
}

.pf-ship-row span {
  font-size: 12px;
  color: var(--muted-2);
}

/* === Tech stack visual =============================== */
.pf-stack {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pf-stack-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.pf-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-stack-list li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.pf-stack-list li:hover {
  background: rgba(255, 138, 61, 0.08);
  border-color: rgba(255, 138, 61, 0.35);
  transform: translateY(-1px);
}

/* === TESTIMONIALS ==================================== */
.pf-quotes {
  padding: 80px 0;
}

.pf-quotes h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 4px 0 32px;
  max-width: 720px;
}

.pf-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.pf-quote {
  margin: 0;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.pf-quote:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.3);
}

.pf-quote blockquote {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.pf-quote blockquote::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: -6px;
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 1;
  color: rgba(255, 138, 61, 0.2);
  pointer-events: none;
}

.pf-quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pf-quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd27a, #ff8a3d 55%, #ff4d2e);
  font-family: "Aeonik", "Fustat", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: #1a0d05;
}

.pf-quote figcaption b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.pf-quote figcaption em {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 2px;
}

/* === FEATURE LINKS =================================== */
.pf-links {
  padding: 64px 0;
}

.pf-links h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 4px 0 32px;
  max-width: 720px;
}

.pf-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pf-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.5);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.pf-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.08), transparent 60%),
    rgba(13, 13, 13, 0.55);
}

.pf-link-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pf-link-card h3 span {
  color: var(--muted-2);
  transition: transform 200ms ease, color 200ms ease;
}

.pf-link-card:hover h3 span {
  transform: translateX(4px);
  color: #ffb050;
}

.pf-link-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* === BLOG TEASER ===================================== */
.pf-blog {
  padding: 64px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
}

.pf-blog h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.pf-blog .section-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.pf-blog-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 138, 61, 0.08), transparent 60%),
    rgba(13, 13, 13, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.pf-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 138, 61, 0.4);
}

.pf-blog-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb050;
}

.pf-blog-card h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.pf-blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pf-blog-meta {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

@media (max-width: 880px) {
  .pf-blog { grid-template-columns: 1fr; gap: 24px; }
}

/* === FINAL CTA ======================================= */
.pf-final {
  text-align: center;
  padding: 96px 24px;
  margin: 32px auto 80px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 196, 110, 0.1), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 77, 46, 0.12), transparent 58%),
    rgba(13, 13, 13, 0.55);
  position: relative;
  isolation: isolate;
}

.pf-final h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pf-final p {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  margin: 0 auto 28px;
  max-width: 540px;
}
