/* ==========================================================================
   PAYFLUX — Web3 Payment Infrastructure
   Premium minimalist fintech aesthetic
   Colours:
     Warm ivory   #F3F0E4  (background)
     Muted sage   #758B68  (primary)
     Deep forest  #263D31  (text / depth)
     Soft olive   #B9C2A8  (accents / lines)
   No neon, no excessive gradients, no cluttered cards.
   ========================================================================== */

/* --- Design tokens --- */
:root {
  /* Surfaces */
  --bg: #F3F0E4;
  --bg-soft: #FAF8EC;
  --surface: #FFFFFF;
  --surface-soft: rgba(255, 255, 255, 0.7);

  /* Brand greens */
  --forest: #263D31;
  --forest-soft: rgba(38, 61, 49, 0.75);
  --sage: #758B68;
  --sage-soft: rgba(117, 139, 104, 0.15);
  --olive: #B9C2A8;
  --olive-soft: rgba(185, 194, 168, 0.35);
  --ivory: #F3F0E4;
  --ivory-dim: #E7E2D0;

  /* Text */
  --text: #263D31;
  --text-soft: #4A5A4C;
  --muted: #758B68;
  --muted-soft: #9DAE8C;

  /* Lines & borders */
  --line: #B9C2A8;
  --line-soft: rgba(185, 194, 168, 0.45);
  --line-hover: #758B68;

  /* Geometry */
  --maxw: 1140px;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;

  /* Shadows (soft, premium) */
  --shadow-sm: 0 6px 20px rgba(38, 61, 49, 0.06);
  --shadow-md: 0 14px 40px rgba(38, 61, 49, 0.08);
  --shadow-lg: 0 24px 60px rgba(38, 61, 49, 0.10);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-elegant: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-normal: 0.5s;
  --dur-slow: 0.8s;

  /* Fonts */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--forest);
}

p {
  margin: 0 0 14px;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-sm {
  padding: 64px 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-normal) var(--ease-smooth),
    transform var(--dur-normal) var(--ease-smooth);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Ribbon / abstract shapes --- */
.ribbon {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ribbon-1 {
  top: -14%;
  right: -10%;
  width: 700px;
  height: 420px;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--forest) 45%,
    var(--olive) 100%
  );
  border-radius: 55% 45% / 50% 55%;
  box-shadow: 0 30px 60px rgba(38, 61, 49, 0.12);
  opacity: 0.5;
  transform: rotate(-8deg);
}

.ribbon-2 {
  bottom: -18%;
  left: -12%;
  width: 860px;
  height: 520px;
  background: linear-gradient(
    135deg,
    var(--forest) 0%,
    var(--sage) 50%,
    var(--ivory) 100%
  );
  border-radius: 45% 55% / 55% 45%;
  box-shadow: 0 30px 60px rgba(38, 61, 49, 0.08);
  opacity: 0.35;
  transform: rotate(10deg);
}

.ribbon-3 {
  top: 20%;
  left: -8%;
  width: 520px;
  height: 340px;
  background: linear-gradient(
    135deg,
    var(--olive-soft),
    var(--sage-soft)
  );
  border-radius: 60% 40% / 45% 55%;
  opacity: 0.45;
  transform: rotate(-14deg);
}

.ribbon-4 {
  bottom: 10%;
  right: -6%;
  width: 480px;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--forest-soft),
    var(--olive-soft)
  );
  border-radius: 50% 50% / 60% 40%;
  opacity: 0.3;
  transform: rotate(12deg);
}

.curved-line {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.line-1 {
  top: 18%;
  left: 6%;
  width: 260px;
  height: 260px;
  border-top: 1px solid var(--line-soft);
  opacity: 0.5;
}

.line-2 {
  bottom: 22%;
  right: 8%;
  width: 340px;
  height: 340px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0.4;
}

.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.35;
}

.blob-1 {
  top: 10%;
  left: 12%;
  width: 560px;
  height: 560px;
  background: var(--sage);
  border-radius: 50%;
}

.blob-2 {
  bottom: 8%;
  right: 14%;
  width: 460px;
  height: 460px;
  background: var(--forest);
  border-radius: 50%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: transform var(--dur-normal) var(--ease-smooth),
    background var(--dur-normal) var(--ease-smooth),
    box-shadow var(--dur-normal) var(--ease-smooth);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--forest);
  z-index: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  z-index: 1;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s var(--ease-smooth);
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--forest);
  color: #FFFFFF;
  padding: 12px 26px;
}

.btn-primary:hover {
  background: #1F3428;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 10px 22px;
  border: 1px solid var(--line-soft);
}

.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--forest);
  background: var(--sage-soft);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--forest);
  cursor: pointer;
  z-index: 1;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  z-index: 150;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu a {
  font-size: 17px;
  font-weight: 600;
  color: var(--forest);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 140px;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--forest);
}

h1.hero-title {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 48ch;
  margin-bottom: 32px;
}

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

.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ribbon-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ribbon {
  width: 420px;
  height: 420px;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--forest) 40%,
    var(--olive) 100%
  );
  border-radius: 50% 50% / 45% 55%;
  box-shadow: 0 24px 48px rgba(38, 61, 49, 0.14);
  animation: ribbonFloat 10s ease-in-out infinite;
}

.hero-ribbon-inner {
  position: absolute;
  inset: 24px;
  border-radius: 50% 50% / 45% 55%;
  background: var(--surface);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.6),
    inset 0 -8px 20px rgba(38, 61, 49, 0.1);
}

.logo-badge {
  position: absolute;
  width: 110px;
  height: 110px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ribbonFloat 10s ease-in-out infinite reverse;
}

.logo-badge svg {
  width: 52px;
  height: 52px;
}

@keyframes ribbonFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-16px) rotate(1deg);
  }
  66% {
    transform: translateY(8px) rotate(-1deg);
  }
}

/* --- Section headings --- */
.section-head {
  max-width: 66ch;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.kicker-line {
  width: 28px;
  height: 1px;
  background: var(--olive);
}

.section-head h2 {
  font-size: 40px;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0;
}

/* --- About --- */
.about {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-ribbon {
  width: 380px;
  height: 380px;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--forest) 45%,
    var(--olive) 100%
  );
  border-radius: 55% 45% / 50% 60%;
  box-shadow: var(--shadow-md);
  animation: ribbonFloat 12s ease-in-out infinite;
}

.about-ribbon-inner {
  position: absolute;
  inset: 20px;
  border-radius: 55% 45% / 50% 60%;
  background: var(--surface);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.7),
    inset 0 -8px 20px rgba(38, 61, 49, 0.1);
}

.about p {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 22px;
}

.about p:last-child {
  margin-bottom: 0;
}

.vision-line {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-soft);
}

.vision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* --- What We're Building --- */
.building {
  position: relative;
  overflow: hidden;
}

.building-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.build-item {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth);
}

.build-item:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
}

.build-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.build-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--forest);
}

.build-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.build-item p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* --- Early Access --- */
.early-access {
  position: relative;
  overflow: hidden;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.access-copy h2 {
  font-size: 40px;
  line-height: 1.12;
  margin-bottom: 18px;
}

.access-copy p {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 8px;
}

.access-copy p:last-child {
  margin-bottom: 0;
}

.access-form-wrap {
  position: relative;
}

.access-card {
  position: relative;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}

.access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.field label .opt {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  transition: border-color 0.25s var(--ease-smooth),
    background 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.input-wrap input::placeholder {
  color: var(--muted-soft);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--sage);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--sage-soft);
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.field-help {
  font-size: 12px;
  color: var(--muted-soft);
  margin-top: 2px;
}

.btn-submit {
  background: var(--forest);
  color: #FFFFFF;
  padding: 16px 24px;
  font-size: 16px;
  margin-top: 8px;
}

.btn-submit:hover {
  background: #1F3428;
  box-shadow: var(--shadow-md);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.form-msg.ok {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--forest);
}

.form-msg.err {
  display: block;
  background: #FBEDEC;
  border: 1px solid #E2C7C2;
  color: #7A3E34;
}

.form-msg .ok-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--forest);
}

.form-msg .ok-text {
  color: var(--text-soft);
  font-size: 14px;
}

.visual-note {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Social Community --- */
.social {
  position: relative;
  overflow: hidden;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.social-copy h2 {
  font-size: 40px;
  line-height: 1.12;
  margin-bottom: 18px;
}

.social-copy p {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 26px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--forest);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--forest);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-ribbon {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    var(--forest) 45%,
    var(--olive) 100%
  );
  border-radius: 50% 50% / 55% 45%;
  box-shadow: var(--shadow-md);
  animation: ribbonFloat 11s ease-in-out infinite;
}

.social-ribbon-inner {
  position: absolute;
  inset: 22px;
  border-radius: 50% 50% / 55% 45%;
  background: var(--surface);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.7),
    inset 0 -8px 20px rgba(38, 61, 49, 0.1);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 40px;
  background: var(--surface-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  gap: 48px;
  align-items: top;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand .brand {
  font-size: 18px;
}

.footer-desc {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

.footer-nav h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}

.footer-nav a {
  font-size: 14.5px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease-smooth);
}

.footer-nav a:hover {
  color: var(--sage);
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-copy {
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-copy span {
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-tag {
  font-weight: 600;
  color: var(--sage);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .access-grid,
  .social-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  h1.hero-title {
    font-size: 42px;
  }

  .section-head h2,
  .access-copy h2,
  .social-copy h2 {
    font-size: 34px;
  }

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

  .access-card {
    padding: 36px 28px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

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

  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .nav-wrap {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .kicker {
    font-size: 11px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .access-card {
    padding: 30px 22px;
  }

  .social-link {
    justify-content: center;
  }
}
